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 Summary
ConstructorsConstructorDescriptionCreates an instance of ServiceGatewayAddressLocation class. -
Method Summary
Modifier and TypeMethodDescriptionGet the addresses property: An array of addresses to create or update in locations.Get the addressLocation property: Location to update.Get the addressUpdateAction property: Specifies the type of update operation to perform on addresses within the address location of service gatewayfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ServiceGatewayAddressLocation from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAddresses(List<ServiceGatewayAddress> addresses) Set the addresses property: An array of addresses to create or update in locations.withAddressLocation(String addressLocation) Set the addressLocation property: Location to update.withAddressUpdateAction(AddressUpdateAction addressUpdateAction) Set the addressUpdateAction property: Specifies the type of update operation to perform on addresses within the address location of service gatewayMethods 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
-
ServiceGatewayAddressLocation
public ServiceGatewayAddressLocation()Creates an instance of ServiceGatewayAddressLocation class.
-
-
Method Details
-
addressLocation
Get the addressLocation property: Location to update.- Returns:
- the addressLocation value.
-
withAddressLocation
Set the addressLocation property: Location to update.- Parameters:
addressLocation- the addressLocation value to set.- Returns:
- the ServiceGatewayAddressLocation object itself.
-
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
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 ServiceGatewayAddressLocation 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<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.
-