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 Summary
ConstructorsConstructorDescriptionCreates an instance of ServiceGatewayUpdateAddressLocationsRequest class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Get the action property: Specifies the type of update operation to perform on address locations within the service gatewayGet the addressLocations property: An array of address locations to create or update.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ServiceGatewayUpdateAddressLocationsRequest from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAction(UpdateAction action) Set the action property: Specifies the type of update operation to perform on address locations within the service gatewaywithAddressLocations(List<ServiceGatewayAddressLocation> addressLocations) Set the addressLocations property: An array of address locations to create or update.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ServiceGatewayUpdateAddressLocationsRequest
public ServiceGatewayUpdateAddressLocationsRequest()Creates an instance of ServiceGatewayUpdateAddressLocationsRequest class.
-
-
Method Details
-
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
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
- Specified by:
toJsonin interfacecom.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.
-