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 Details

    • ConnectivityGroupItem

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

    • networkGroupId

      public String networkGroupId()
      Get the networkGroupId property: Network group Id.
      Returns:
      the networkGroupId value.
    • withNetworkGroupId

      public ConnectivityGroupItem withNetworkGroupId(String networkGroupId)
      Set the networkGroupId property: Network group Id.
      Parameters:
      networkGroupId - the networkGroupId value to set.
      Returns:
      the ConnectivityGroupItem object itself.
    • useHubGateway

      public UseHubGateway useHubGateway()
      Get the useHubGateway property: Flag if need to use hub gateway.
      Returns:
      the useHubGateway value.
    • withUseHubGateway

      public ConnectivityGroupItem withUseHubGateway(UseHubGateway useHubGateway)
      Set the useHubGateway property: Flag if need to use hub gateway.
      Parameters:
      useHubGateway - the useHubGateway value to set.
      Returns:
      the ConnectivityGroupItem object itself.
    • isGlobal

      public IsGlobal isGlobal()
      Get the isGlobal property: Flag if global is supported.
      Returns:
      the isGlobal value.
    • withIsGlobal

      public ConnectivityGroupItem withIsGlobal(IsGlobal isGlobal)
      Set the isGlobal property: Flag if global is supported.
      Parameters:
      isGlobal - the isGlobal value to set.
      Returns:
      the ConnectivityGroupItem object itself.
    • groupConnectivity

      public GroupConnectivity groupConnectivity()
      Get the groupConnectivity property: Group connectivity type.
      Returns:
      the groupConnectivity value.
    • withGroupConnectivity

      public ConnectivityGroupItem withGroupConnectivity(GroupConnectivity groupConnectivity)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.