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 Details

    • SharedKeyProperties

      public SharedKeyProperties()
      Creates an instance of SharedKeyProperties class.
  • Method Details

    • sharedKey

      public String sharedKey()
      Get the sharedKey property: The value of the shared key for the vpn link connection.
      Returns:
      the sharedKey value.
    • 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.
    • sharedKeyLength

      public Integer sharedKeyLength()
      Get the sharedKeyLength property: The length of the shared key for the vpn link connection.
      Returns:
      the sharedKeyLength value.
    • 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.
    • provisioningState

      public ProvisioningState 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<SharedKeyProperties>
      Throws:
      IOException
    • fromJson

      public static SharedKeyProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.