Class ServiceGatewayAddressLocationResponseInner

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

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

    • ServiceGatewayAddressLocationResponseInner

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

    • addressLocation

      public String addressLocation()
      Get the addressLocation property: Location to update.
      Returns:
      the addressLocation value.
    • withAddressLocation

      public ServiceGatewayAddressLocationResponseInner withAddressLocation(String addressLocation)
      Set the addressLocation property: Location to update.
      Parameters:
      addressLocation - the addressLocation value to set.
      Returns:
      the ServiceGatewayAddressLocationResponseInner object itself.
    • addresses

      public List<ServiceGatewayAddress> addresses()
      Get the addresses property: An array of addresses to create or update in locations.
      Returns:
      the addresses value.
    • withAddresses

      Set the addresses property: An array of addresses to create or update in locations.
      Parameters:
      addresses - the addresses value to set.
      Returns:
      the ServiceGatewayAddressLocationResponseInner 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<ServiceGatewayAddressLocationResponseInner>
      Throws:
      IOException
    • fromJson

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