Class ServiceGatewayAddress

java.lang.Object
com.azure.resourcemanager.network.models.ServiceGatewayAddress
All Implemented Interfaces:
com.azure.json.JsonSerializable<ServiceGatewayAddress>

public final class ServiceGatewayAddress extends Object implements com.azure.json.JsonSerializable<ServiceGatewayAddress>
Properties of the service gateway address.
  • Constructor Details

    • ServiceGatewayAddress

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

    • address

      public String address()
      Get the address property: Address to update.
      Returns:
      the address value.
    • withAddress

      public ServiceGatewayAddress withAddress(String address)
      Set the address property: Address to update.
      Parameters:
      address - the address value to set.
      Returns:
      the ServiceGatewayAddress object itself.
    • services

      public List<String> services()
      Get the services property: Collection of services in address.
      Returns:
      the services value.
    • withServices

      public ServiceGatewayAddress withServices(List<String> services)
      Set the services property: Collection of services in address.
      Parameters:
      services - the services value to set.
      Returns:
      the ServiceGatewayAddress 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<ServiceGatewayAddress>
      Throws:
      IOException
    • fromJson

      public static ServiceGatewayAddress fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ServiceGatewayAddress from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ServiceGatewayAddress 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 ServiceGatewayAddress.