Class WhatIfChange
java.lang.Object
com.azure.resourcemanager.resources.models.WhatIfChange
- All Implemented Interfaces:
com.azure.json.JsonSerializable<WhatIfChange>
public final class WhatIfChange
extends Object
implements com.azure.json.JsonSerializable<WhatIfChange>
Information about a single resource change predicted by What-If operation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionafter()Get the after property: The predicted snapshot of the resource after the deployment is executed.before()Get the before property: The snapshot of the resource before the deployment is executed.Get the changeType property: Type of change that will be made to the resource when the deployment is executed.delta()Get the delta property: The predicted changes to resource properties.Get the deploymentId property: The resource id of the Deployment responsible for this change.static WhatIfChangefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WhatIfChange from the JsonReader.Get the identifiers property: A subset of properties that uniquely identify a Bicep extensible resource because it lacks a resource id like an Azure resource has.Get the resourceId property: Resource ID.Get the symbolicName property: The symbolic name of the resource responsible for this change.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the unsupportedReason property: The explanation about why the resource is unsupported by What-If.voidvalidate()Validates the instance.Set the after property: The predicted snapshot of the resource after the deployment is executed.withBefore(Object before) Set the before property: The snapshot of the resource before the deployment is executed.withChangeType(ChangeType changeType) Set the changeType property: Type of change that will be made to the resource when the deployment is executed.withDelta(List<WhatIfPropertyChange> delta) Set the delta property: The predicted changes to resource properties.withDeploymentId(String deploymentId) Set the deploymentId property: The resource id of the Deployment responsible for this change.withIdentifiers(Object identifiers) Set the identifiers property: A subset of properties that uniquely identify a Bicep extensible resource because it lacks a resource id like an Azure resource has.withResourceId(String resourceId) Set the resourceId property: Resource ID.withSymbolicName(String symbolicName) Set the symbolicName property: The symbolic name of the resource responsible for this change.withUnsupportedReason(String unsupportedReason) Set the unsupportedReason property: The explanation about why the resource is unsupported by What-If.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
-
WhatIfChange
public WhatIfChange()Creates an instance of WhatIfChange class.
-
-
Method Details
-
resourceId
Get the resourceId property: Resource ID.- Returns:
- the resourceId value.
-
withResourceId
Set the resourceId property: Resource ID.- Parameters:
resourceId- the resourceId value to set.- Returns:
- the WhatIfChange object itself.
-
deploymentId
Get the deploymentId property: The resource id of the Deployment responsible for this change.- Returns:
- the deploymentId value.
-
withDeploymentId
Set the deploymentId property: The resource id of the Deployment responsible for this change.- Parameters:
deploymentId- the deploymentId value to set.- Returns:
- the WhatIfChange object itself.
-
symbolicName
Get the symbolicName property: The symbolic name of the resource responsible for this change.- Returns:
- the symbolicName value.
-
withSymbolicName
Set the symbolicName property: The symbolic name of the resource responsible for this change.- Parameters:
symbolicName- the symbolicName value to set.- Returns:
- the WhatIfChange object itself.
-
identifiers
Get the identifiers property: A subset of properties that uniquely identify a Bicep extensible resource because it lacks a resource id like an Azure resource has.- Returns:
- the identifiers value.
-
withIdentifiers
Set the identifiers property: A subset of properties that uniquely identify a Bicep extensible resource because it lacks a resource id like an Azure resource has.- Parameters:
identifiers- the identifiers value to set.- Returns:
- the WhatIfChange object itself.
-
changeType
Get the changeType property: Type of change that will be made to the resource when the deployment is executed.- Returns:
- the changeType value.
-
withChangeType
Set the changeType property: Type of change that will be made to the resource when the deployment is executed.- Parameters:
changeType- the changeType value to set.- Returns:
- the WhatIfChange object itself.
-
unsupportedReason
Get the unsupportedReason property: The explanation about why the resource is unsupported by What-If.- Returns:
- the unsupportedReason value.
-
withUnsupportedReason
Set the unsupportedReason property: The explanation about why the resource is unsupported by What-If.- Parameters:
unsupportedReason- the unsupportedReason value to set.- Returns:
- the WhatIfChange object itself.
-
before
Get the before property: The snapshot of the resource before the deployment is executed.- Returns:
- the before value.
-
withBefore
Set the before property: The snapshot of the resource before the deployment is executed.- Parameters:
before- the before value to set.- Returns:
- the WhatIfChange object itself.
-
after
Get the after property: The predicted snapshot of the resource after the deployment is executed.- Returns:
- the after value.
-
withAfter
Set the after property: The predicted snapshot of the resource after the deployment is executed.- Parameters:
after- the after value to set.- Returns:
- the WhatIfChange object itself.
-
delta
Get the delta property: The predicted changes to resource properties.- Returns:
- the delta value.
-
withDelta
Set the delta property: The predicted changes to resource properties.- Parameters:
delta- the delta value to set.- Returns:
- the WhatIfChange 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<WhatIfChange>- Throws:
IOException
-
fromJson
Reads an instance of WhatIfChange from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of WhatIfChange 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 WhatIfChange.
-