Compartir a través de


SharedKeyProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.SharedKeyProperties

Implements

public final class SharedKeyProperties
implements JsonSerializable<SharedKeyProperties>

Parameters for SharedKey.

Constructor Summary

Constructor Description
SharedKeyProperties()

Creates an instance of SharedKeyProperties class.

Method Summary

Modifier and Type Method and Description
static SharedKeyProperties fromJson(JsonReader jsonReader)

Reads an instance of SharedKeyProperties from the JsonReader.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the SharedKey resource.

String sharedKey()

Get the sharedKey property: The value of the shared key for the vpn link connection.

Integer sharedKeyLength()

Get the sharedKeyLength property: The length of the shared key for the vpn link connection.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SharedKeyProperties withSharedKey(String sharedKey)

Set the sharedKey property: The value of the shared key for the vpn link connection.

SharedKeyProperties withSharedKeyLength(Integer sharedKeyLength)

Set the sharedKeyLength property: The length of the shared key for the vpn link connection.

Methods inherited from java.lang.Object

Constructor Details

SharedKeyProperties

public SharedKeyProperties()

Creates an instance of SharedKeyProperties class.

Method Details

fromJson

public static SharedKeyProperties fromJson(JsonReader jsonReader)

Reads an instance of SharedKeyProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the SharedKeyProperties.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the SharedKey resource.

Returns:

the provisioningState value.

sharedKey

public String sharedKey()

Get the sharedKey property: The value of the shared key for the vpn link connection.

Returns:

the sharedKey value.

sharedKeyLength

public Integer sharedKeyLength()

Get the sharedKeyLength property: The length of the shared key for the vpn link connection.

Returns:

the sharedKeyLength value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withSharedKey

public SharedKeyProperties withSharedKey(String sharedKey)

Set the sharedKey property: The value of the shared key for the vpn link connection.

Parameters:

sharedKey - the sharedKey value to set.

Returns:

the SharedKeyProperties object itself.

withSharedKeyLength

public SharedKeyProperties withSharedKeyLength(Integer sharedKeyLength)

Set the sharedKeyLength property: The length of the shared key for the vpn link connection.

Parameters:

sharedKeyLength - the sharedKeyLength value to set.

Returns:

the SharedKeyProperties object itself.

Applies to