Class NetworkManagerConnectionProperties
java.lang.Object
com.azure.resourcemanager.network.fluent.models.NetworkManagerConnectionProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<NetworkManagerConnectionProperties>
public final class NetworkManagerConnectionProperties
extends Object
implements com.azure.json.JsonSerializable<NetworkManagerConnectionProperties>
Information about the network manager connection.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of NetworkManagerConnectionProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the connectionState property: Connection state.Get the description property: A description of the network manager connection.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NetworkManagerConnectionProperties from the JsonReader.Get the networkManagerId property: Network Manager Id.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDescription(String description) Set the description property: A description of the network manager connection.withNetworkManagerId(String networkManagerId) Set the networkManagerId property: Network Manager Id.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
-
NetworkManagerConnectionProperties
public NetworkManagerConnectionProperties()Creates an instance of NetworkManagerConnectionProperties class.
-
-
Method Details
-
networkManagerId
Get the networkManagerId property: Network Manager Id.- Returns:
- the networkManagerId value.
-
withNetworkManagerId
Set the networkManagerId property: Network Manager Id.- Parameters:
networkManagerId- the networkManagerId value to set.- Returns:
- the NetworkManagerConnectionProperties object itself.
-
connectionState
Get the connectionState property: Connection state.- Returns:
- the connectionState value.
-
description
Get the description property: A description of the network manager connection.- Returns:
- the description value.
-
withDescription
Set the description property: A description of the network manager connection.- Parameters:
description- the description value to set.- Returns:
- the NetworkManagerConnectionProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<NetworkManagerConnectionProperties>- Throws:
IOException
-
fromJson
public static NetworkManagerConnectionProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of NetworkManagerConnectionProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of NetworkManagerConnectionProperties 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 NetworkManagerConnectionProperties.
-