Class ScopedDeployment
java.lang.Object
com.azure.resourcemanager.resources.models.ScopedDeployment
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ScopedDeployment>
public final class ScopedDeployment
extends Object
implements com.azure.json.JsonSerializable<ScopedDeployment>
Deployment operation parameters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ScopedDeploymentfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ScopedDeployment from the JsonReader.location()Get the location property: The location to store the deployment data.Get the properties property: The deployment properties.tags()Get the tags property: Deployment tags.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withLocation(String location) Set the location property: The location to store the deployment data.withProperties(DeploymentProperties properties) Set the properties property: The deployment properties.Set the tags property: Deployment tags.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
-
ScopedDeployment
public ScopedDeployment()Creates an instance of ScopedDeployment class.
-
-
Method Details
-
location
Get the location property: The location to store the deployment data.- Returns:
- the location value.
-
withLocation
Set the location property: The location to store the deployment data.- Parameters:
location- the location value to set.- Returns:
- the ScopedDeployment object itself.
-
properties
Get the properties property: The deployment properties.- Returns:
- the properties value.
-
withProperties
Set the properties property: The deployment properties.- Parameters:
properties- the properties value to set.- Returns:
- the ScopedDeployment object itself.
-
tags
Get the tags property: Deployment tags.- Returns:
- the tags value.
-
withTags
Set the tags property: Deployment tags.- Parameters:
tags- the tags value to set.- Returns:
- the ScopedDeployment 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<ScopedDeployment>- Throws:
IOException
-
fromJson
Reads an instance of ScopedDeployment from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ScopedDeployment if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the ScopedDeployment.
-