Class WhatIfChange
java.lang.Object
com.azure.resourcemanager.resources.models.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 resourceId property: Resource ID.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.withResourceId(String resourceId) Set the resourceId property: Resource ID.withUnsupportedReason(String unsupportedReason) Set the unsupportedReason property: The explanation about why the resource is unsupported by What-If.
-
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.
-
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.
-