Class WhatIfChange
- java.lang.Object
-
- com.azure.resourcemanager.resources.models.WhatIfChange
-
public final class WhatIfChange extends Object
Information about a single resource change predicted by What-If operation.
-
-
Constructor Summary
Constructors Constructor Description WhatIfChange()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectafter()Get the after property: The predicted snapshot of the resource after the deployment is executed.Objectbefore()Get the before property: The snapshot of the resource before the deployment is executed.ChangeTypechangeType()Get the changeType property: Type of change that will be made to the resource when the deployment is executed.List<WhatIfPropertyChange>delta()Get the delta property: The predicted changes to resource properties.StringresourceId()Get the resourceId property: Resource ID.StringunsupportedReason()Get the unsupportedReason property: The explanation about why the resource is unsupported by What-If.voidvalidate()Validates the instance.WhatIfChangewithAfter(Object after)Set the after property: The predicted snapshot of the resource after the deployment is executed.WhatIfChangewithBefore(Object before)Set the before property: The snapshot of the resource before the deployment is executed.WhatIfChangewithChangeType(ChangeType changeType)Set the changeType property: Type of change that will be made to the resource when the deployment is executed.WhatIfChangewithDelta(List<WhatIfPropertyChange> delta)Set the delta property: The predicted changes to resource properties.WhatIfChangewithResourceId(String resourceId)Set the resourceId property: Resource ID.WhatIfChangewithUnsupportedReason(String unsupportedReason)Set the unsupportedReason property: The explanation about why the resource is unsupported by What-If.
-
-
-
Method Detail
-
resourceId
public String resourceId()
Get the resourceId property: Resource ID.- Returns:
- the resourceId value.
-
withResourceId
public WhatIfChange withResourceId(String resourceId)
Set the resourceId property: Resource ID.- Parameters:
resourceId- the resourceId value to set.- Returns:
- the WhatIfChange object itself.
-
changeType
public ChangeType 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
public WhatIfChange withChangeType(ChangeType changeType)
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
public String unsupportedReason()
Get the unsupportedReason property: The explanation about why the resource is unsupported by What-If.- Returns:
- the unsupportedReason value.
-
withUnsupportedReason
public WhatIfChange withUnsupportedReason(String unsupportedReason)
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
public Object before()
Get the before property: The snapshot of the resource before the deployment is executed.- Returns:
- the before value.
-
withBefore
public WhatIfChange withBefore(Object before)
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
public Object after()
Get the after property: The predicted snapshot of the resource after the deployment is executed.- Returns:
- the after value.
-
withAfter
public WhatIfChange withAfter(Object after)
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
public List<WhatIfPropertyChange> delta()
Get the delta property: The predicted changes to resource properties.- Returns:
- the delta value.
-
withDelta
public WhatIfChange withDelta(List<WhatIfPropertyChange> delta)
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.
-
-