VpnClientRootCertificate Class

public final class VpnClientRootCertificate
extends SubResource

VPN client root certificate of virtual network gateway.

Constructor Summary

Constructor Description
VpnClientRootCertificate()

Creates an instance of VpnClientRootCertificate class.

Method Summary

Modifier and Type Method and Description
String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

static VpnClientRootCertificate fromJson(JsonReader jsonReader)

Reads an instance of VpnClientRootCertificate from the JsonReader.

String name()

Get the name property: The name of the resource that is unique within a resource group.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the VPN client root certificate resource.

String publicCertData()

Get the publicCertData property: The certificate public data.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VpnClientRootCertificate withId(String id)
VpnClientRootCertificate withName(String name)

Set the name property: The name of the resource that is unique within a resource group.

VpnClientRootCertificate withPublicCertData(String publicCertData)

Set the publicCertData property: The certificate public data.

Methods inherited from SubResource

Methods inherited from java.lang.Object

Constructor Details

VpnClientRootCertificate

public VpnClientRootCertificate()

Creates an instance of VpnClientRootCertificate class.

Method Details

etag

public String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

Returns:

the etag value.

fromJson

public static VpnClientRootCertificate fromJson(JsonReader jsonReader)

Reads an instance of VpnClientRootCertificate from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VpnClientRootCertificate if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

name

public String name()

Get the name property: The name of the resource that is unique within a resource group. This name can be used to access the resource.

Returns:

the name value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the VPN client root certificate resource.

Returns:

the provisioningState value.

publicCertData

public String publicCertData()

Get the publicCertData property: The certificate public data.

Returns:

the publicCertData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

VpnClientRootCertificate.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public VpnClientRootCertificate withId(String id)

Overrides:

VpnClientRootCertificate.withId(String id)

Parameters:

id

withName

public VpnClientRootCertificate withName(String name)

Set the name property: The name of the resource that is unique within a resource group. This name can be used to access the resource.

Parameters:

name - the name value to set.

Returns:

the VpnClientRootCertificate object itself.

withPublicCertData

public VpnClientRootCertificate withPublicCertData(String publicCertData)

Set the publicCertData property: The certificate public data.

Parameters:

publicCertData - the publicCertData value to set.

Returns:

the VpnClientRootCertificate object itself.

Applies to