Class ServiceGatewayUpdateAddressLocationsRequest

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

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

    • ServiceGatewayUpdateAddressLocationsRequest

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

    • action

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

      Set the action property: Specifies the type of update operation to perform on address locations within the service gateway. - FullUpdate: Replaces all existing address location data with the new list provided in the request. Any previously defined locations not included will be removed. - PartialUpdate: Updates only the specified address locations.
      Parameters:
      action - the action value to set.
      Returns:
      the ServiceGatewayUpdateAddressLocationsRequest object itself.
    • addressLocations

      public List<ServiceGatewayAddressLocation> addressLocations()
      Get the addressLocations property: An array of address locations to create or update.
      Returns:
      the addressLocations value.
    • withAddressLocations

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

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