Class ServiceGatewayAddressLocation

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

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

    • ServiceGatewayAddressLocation

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

    • addressLocation

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

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

      public AddressUpdateAction addressUpdateAction()
      Get the addressUpdateAction property: Specifies the type of update operation to perform on addresses within the address location of service gateway. - FullUpdate: Replaces all existing address data with the new list provided in the request. Any previously defined addresses not included will be removed. - PartialUpdate: Updates only the specified addresses.
      Returns:
      the addressUpdateAction value.
    • withAddressUpdateAction

      public ServiceGatewayAddressLocation withAddressUpdateAction(AddressUpdateAction addressUpdateAction)
      Set the addressUpdateAction property: Specifies the type of update operation to perform on addresses within the address location of service gateway. - FullUpdate: Replaces all existing address data with the new list provided in the request. Any previously defined addresses not included will be removed. - PartialUpdate: Updates only the specified addresses.
      Parameters:
      addressUpdateAction - the addressUpdateAction value to set.
      Returns:
      the ServiceGatewayAddressLocation 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

      public ServiceGatewayAddressLocation withAddresses(List<ServiceGatewayAddress> addresses)
      Set the addresses property: An array of addresses to create or update in locations.
      Parameters:
      addresses - the addresses value to set.
      Returns:
      the ServiceGatewayAddressLocation 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<ServiceGatewayAddressLocation>
      Throws:
      IOException
    • fromJson

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