Class DeploymentValidateResultInner
java.lang.Object
com.azure.resourcemanager.resources.fluent.models.DeploymentValidateResultInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DeploymentValidateResultInner>
public final class DeploymentValidateResultInner
extends Object
implements com.azure.json.JsonSerializable<DeploymentValidateResultInner>
Information from validate template deployment response.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DeploymentValidateResultInner class. -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.management.exception.ManagementErrorerror()Get the error property: The deployment validation error.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DeploymentValidateResultInner from the JsonReader.id()Get the id property: The ID of the deployment.name()Get the name property: The name of the deployment.Get the properties property: The template deployment properties.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the deployment.voidvalidate()Validates the instance.withProperties(DeploymentPropertiesExtended properties) Set the properties property: The template deployment properties.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
-
DeploymentValidateResultInner
public DeploymentValidateResultInner()Creates an instance of DeploymentValidateResultInner class.
-
-
Method Details
-
error
public com.azure.core.management.exception.ManagementError error()Get the error property: The deployment validation error.- Returns:
- the error value.
-
id
Get the id property: The ID of the deployment.- Returns:
- the id value.
-
name
Get the name property: The name of the deployment.- Returns:
- the name value.
-
type
Get the type property: The type of the deployment.- Returns:
- the type value.
-
properties
Get the properties property: The template deployment properties.- Returns:
- the properties value.
-
withProperties
Set the properties property: The template deployment properties.- Parameters:
properties- the properties value to set.- Returns:
- the DeploymentValidateResultInner 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<DeploymentValidateResultInner>- Throws:
IOException
-
fromJson
public static DeploymentValidateResultInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DeploymentValidateResultInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DeploymentValidateResultInner 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 DeploymentValidateResultInner.
-