Class ProviderExtendedLocation
java.lang.Object
com.azure.resourcemanager.resources.models.ProviderExtendedLocation
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ProviderExtendedLocation>
public final class ProviderExtendedLocation
extends Object
implements com.azure.json.JsonSerializable<ProviderExtendedLocation>
The provider extended location.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ProviderExtendedLocation class. -
Method Summary
Modifier and TypeMethodDescriptionGet the extendedLocations property: The extended locations for the azure location.static ProviderExtendedLocationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ProviderExtendedLocation from the JsonReader.location()Get the location property: The azure location.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The extended location type.voidvalidate()Validates the instance.withExtendedLocations(List<String> extendedLocations) Set the extendedLocations property: The extended locations for the azure location.withLocation(String location) Set the location property: The azure location.Set the type property: The extended location type.Methods inherited from class java.lang.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
-
ProviderExtendedLocation
public ProviderExtendedLocation()Creates an instance of ProviderExtendedLocation class.
-
-
Method Details
-
location
Get the location property: The azure location.- Returns:
- the location value.
-
withLocation
Set the location property: The azure location.- Parameters:
location- the location value to set.- Returns:
- the ProviderExtendedLocation object itself.
-
type
Get the type property: The extended location type.- Returns:
- the type value.
-
withType
Set the type property: The extended location type.- Parameters:
type- the type value to set.- Returns:
- the ProviderExtendedLocation object itself.
-
extendedLocations
Get the extendedLocations property: The extended locations for the azure location.- Returns:
- the extendedLocations value.
-
withExtendedLocations
Set the extendedLocations property: The extended locations for the azure location.- Parameters:
extendedLocations- the extendedLocations value to set.- Returns:
- the ProviderExtendedLocation 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<ProviderExtendedLocation>- Throws:
IOException
-
fromJson
public static ProviderExtendedLocation fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ProviderExtendedLocation from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ProviderExtendedLocation 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 ProviderExtendedLocation.
-