Class SharedKeyProperties
java.lang.Object
com.azure.resourcemanager.network.models.SharedKeyProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SharedKeyProperties>
public final class SharedKeyProperties
extends Object
implements com.azure.json.JsonSerializable<SharedKeyProperties>
Parameters for SharedKey.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SharedKeyPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SharedKeyProperties from the JsonReader.Get the provisioningState property: The provisioning state of the SharedKey resource.Get the sharedKey property: The value of the shared key for the vpn link connection.Get the sharedKeyLength property: The length of the shared key for the vpn link connection.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withSharedKey(String sharedKey) Set the sharedKey property: The value of the shared key for the vpn link connection.withSharedKeyLength(Integer sharedKeyLength) Set the sharedKeyLength property: The length of the shared key for the vpn link connection.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SharedKeyProperties
public SharedKeyProperties()Creates an instance of SharedKeyProperties class.
-
-
Method Details
-
provisioningState
Get the provisioningState property: The provisioning state of the SharedKey resource.- Returns:
- the provisioningState value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SharedKeyProperties>- Throws:
IOException
-
fromJson
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.