Class DeploymentLocationsInner
java.lang.Object
com.azure.resourcemanager.appservice.fluent.models.DeploymentLocationsInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DeploymentLocationsInner>
public final class DeploymentLocationsInner
extends Object
implements com.azure.json.JsonSerializable<DeploymentLocationsInner>
List of available locations (regions or App Service Environments) for
deployment of App Service resources.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DeploymentLocationsInner class. -
Method Summary
Modifier and TypeMethodDescriptionstatic DeploymentLocationsInner
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of DeploymentLocationsInner from the JsonReader.Get the hostingEnvironmentDeploymentInfos property: Available App Service Environments with basic information.Get the hostingEnvironments property: Available App Service Environments with full descriptions of the environments.Get the locations property: Available regions.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withHostingEnvironmentDeploymentInfos
(List<HostingEnvironmentDeploymentInfo> hostingEnvironmentDeploymentInfos) Set the hostingEnvironmentDeploymentInfos property: Available App Service Environments with basic information.withHostingEnvironments
(List<AppServiceEnvironmentInner> hostingEnvironments) Set the hostingEnvironments property: Available App Service Environments with full descriptions of the environments.withLocations
(List<GeoRegionInner> locations) Set the locations property: Available regions.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DeploymentLocationsInner
public DeploymentLocationsInner()Creates an instance of DeploymentLocationsInner class.
-
-
Method Details
-
locations
Get the locations property: Available regions.- Returns:
- the locations value.
-
withLocations
Set the locations property: Available regions.- Parameters:
locations
- the locations value to set.- Returns:
- the DeploymentLocationsInner object itself.
-
hostingEnvironments
Get the hostingEnvironments property: Available App Service Environments with full descriptions of the environments.- Returns:
- the hostingEnvironments value.
-
withHostingEnvironments
public DeploymentLocationsInner withHostingEnvironments(List<AppServiceEnvironmentInner> hostingEnvironments) Set the hostingEnvironments property: Available App Service Environments with full descriptions of the environments.- Parameters:
hostingEnvironments
- the hostingEnvironments value to set.- Returns:
- the DeploymentLocationsInner object itself.
-
hostingEnvironmentDeploymentInfos
Get the hostingEnvironmentDeploymentInfos property: Available App Service Environments with basic information.- Returns:
- the hostingEnvironmentDeploymentInfos value.
-
withHostingEnvironmentDeploymentInfos
public DeploymentLocationsInner withHostingEnvironmentDeploymentInfos(List<HostingEnvironmentDeploymentInfo> hostingEnvironmentDeploymentInfos) Set the hostingEnvironmentDeploymentInfos property: Available App Service Environments with basic information.- Parameters:
hostingEnvironmentDeploymentInfos
- the hostingEnvironmentDeploymentInfos value to set.- Returns:
- the DeploymentLocationsInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<DeploymentLocationsInner>
- Throws:
IOException
-
fromJson
public static DeploymentLocationsInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DeploymentLocationsInner from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of DeploymentLocationsInner 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 DeploymentLocationsInner.
-