Class ConnectivityGroupItem
java.lang.Object
com.azure.resourcemanager.network.models.ConnectivityGroupItem
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ConnectivityGroupItem>
public final class ConnectivityGroupItem
extends Object
implements com.azure.json.JsonSerializable<ConnectivityGroupItem>
Connectivity group item.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectivityGroupItemfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ConnectivityGroupItem from the JsonReader.Get the groupConnectivity property: Group connectivity type.isGlobal()Get the isGlobal property: Flag if global is supported.Get the networkGroupId property: Network group Id.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the useHubGateway property: Flag if need to use hub gateway.voidvalidate()Validates the instance.withGroupConnectivity(GroupConnectivity groupConnectivity) Set the groupConnectivity property: Group connectivity type.withIsGlobal(IsGlobal isGlobal) Set the isGlobal property: Flag if global is supported.withNetworkGroupId(String networkGroupId) Set the networkGroupId property: Network group Id.withUseHubGateway(UseHubGateway useHubGateway) Set the useHubGateway property: Flag if need to use hub gateway.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
-
ConnectivityGroupItem
public ConnectivityGroupItem()Creates an instance of ConnectivityGroupItem class.
-
-
Method Details
-
networkGroupId
Get the networkGroupId property: Network group Id.- Returns:
- the networkGroupId value.
-
withNetworkGroupId
Set the networkGroupId property: Network group Id.- Parameters:
networkGroupId- the networkGroupId value to set.- Returns:
- the ConnectivityGroupItem object itself.
-
useHubGateway
Get the useHubGateway property: Flag if need to use hub gateway.- Returns:
- the useHubGateway value.
-
withUseHubGateway
Set the useHubGateway property: Flag if need to use hub gateway.- Parameters:
useHubGateway- the useHubGateway value to set.- Returns:
- the ConnectivityGroupItem object itself.
-
isGlobal
Get the isGlobal property: Flag if global is supported.- Returns:
- the isGlobal value.
-
withIsGlobal
Set the isGlobal property: Flag if global is supported.- Parameters:
isGlobal- the isGlobal value to set.- Returns:
- the ConnectivityGroupItem object itself.
-
groupConnectivity
Get the groupConnectivity property: Group connectivity type.- Returns:
- the groupConnectivity value.
-
withGroupConnectivity
Set the groupConnectivity property: Group connectivity type.- Parameters:
groupConnectivity- the groupConnectivity value to set.- Returns:
- the ConnectivityGroupItem 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<ConnectivityGroupItem>- Throws:
IOException
-
fromJson
public static ConnectivityGroupItem fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ConnectivityGroupItem from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ConnectivityGroupItem 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 ConnectivityGroupItem.
-