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 Summary
ConstructorsConstructorDescriptionCreates an instance of ServiceGatewayAddressLocationResponseInner 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.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ServiceGatewayAddressLocationResponseInner 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.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
-
ServiceGatewayAddressLocationResponseInner
public ServiceGatewayAddressLocationResponseInner()Creates an instance of ServiceGatewayAddressLocationResponseInner 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 ServiceGatewayAddressLocationResponseInner object itself.
-
addresses
Get the addresses property: An array of addresses to create or update in locations.- Returns:
- the addresses value.
-
withAddresses
public ServiceGatewayAddressLocationResponseInner 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 ServiceGatewayAddressLocationResponseInner 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<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.
-