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 Summary
ConstructorsConstructorDescriptionCreates an instance of ConnectionSharedKeyInner class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectionSharedKeyInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ConnectionSharedKeyInner from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.value()Get the value property: The virtual network connection shared key value.Set the value property: The virtual network connection shared key value.Methods inherited from class com.azure.core.management.SubResource
idMethods 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
-
ConnectionSharedKeyInner
public ConnectionSharedKeyInner()Creates an instance of ConnectionSharedKeyInner class.
-
-
Method Details
-
value
Get the value property: The virtual network connection shared key value.- Returns:
- the value value.
-
withValue
Set the value property: The virtual network connection shared key value.- Parameters:
value- the value value to set.- Returns:
- the ConnectionSharedKeyInner object itself.
-
withId
- Overrides:
withIdin classcom.azure.core.management.SubResource
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.SubResource>- Overrides:
toJsonin classcom.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.
-