Class ConnectionSharedKeyInner

java.lang.Object
com.azure.core.management.SubResource
com.azure.resourcemanager.network.fluent.models.ConnectionSharedKeyInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.SubResource>

public final class ConnectionSharedKeyInner extends com.azure.core.management.SubResource
Response for GetConnectionSharedKey API service call.
  • Constructor Details

    • ConnectionSharedKeyInner

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

    • value

      public String value()
      Get the value property: The virtual network connection shared key value.
      Returns:
      the value value.
    • withValue

      public ConnectionSharedKeyInner withValue(String value)
      Set the value property: The virtual network connection shared key value.
      Parameters:
      value - the value value to set.
      Returns:
      the ConnectionSharedKeyInner object itself.
    • withId

      public ConnectionSharedKeyInner withId(String id)
      Overrides:
      withId in class com.azure.core.management.SubResource
    • 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<com.azure.core.management.SubResource>
      Overrides:
      toJson in class com.azure.core.management.SubResource
      Throws:
      IOException
    • fromJson

      public static ConnectionSharedKeyInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ConnectionSharedKeyInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ConnectionSharedKeyInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the ConnectionSharedKeyInner.