WhatIfChange Class
- java.
lang. Object - com.
microsoft. azure. management. resources. WhatIfChange
- com.
public class WhatIfChange
Information about a single resource change predicted by What-If operation.
Constructor Summary
Constructor | Description | |
---|---|---|
WhatIfChange() |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
after()
Get the predicted snapshot of the resource after the deployment is executed. |
java.lang.Object |
before()
Get the snapshot of the resource before the deployment is executed. |
Change |
changeType()
Get type of change that will be made to the resource when the deployment is executed. |
java.util.List<What |
delta()
Get the predicted changes to resource properties. |
java.lang.String |
resourceId()
Get resource ID. |
What |
withAfter(Object after)
Set the predicted snapshot of the resource after the deployment is executed. |
What |
withBefore(Object before)
Set the snapshot of the resource before the deployment is executed. |
What |
withChangeType(ChangeType changeType)
Set type of change that will be made to the resource when the deployment is executed. |
What |
withDelta(List<WhatIfPropertyChange> delta)
Set the predicted changes to resource properties. |
What |
withResourceId(String resourceId)
Set resource ID. |
Methods inherited from java.lang.Object
Constructor Details
WhatIfChange
public WhatIfChange()
Method Details
after
public Object after()
Get the predicted snapshot of the resource after the deployment is executed.
Returns:
before
public Object before()
Get the snapshot of the resource before the deployment is executed.
Returns:
changeType
public ChangeType changeType()
Get type of change that will be made to the resource when the deployment is executed. Possible values include: 'Create', 'Delete', 'Ignore', 'Deploy', 'NoChange', 'Modify'.
Returns:
delta
public List
Get the predicted changes to resource properties.
Returns:
resourceId
public String resourceId()
Get resource ID.
Returns:
withAfter
public WhatIfChange withAfter(Object after)
Set the predicted snapshot of the resource after the deployment is executed.
Parameters:
Returns:
withBefore
public WhatIfChange withBefore(Object before)
Set the snapshot of the resource before the deployment is executed.
Parameters:
Returns:
withChangeType
public WhatIfChange withChangeType(ChangeType changeType)
Set type of change that will be made to the resource when the deployment is executed. Possible values include: 'Create', 'Delete', 'Ignore', 'Deploy', 'NoChange', 'Modify'.
Parameters:
Returns:
withDelta
public WhatIfChange withDelta(List
Set the predicted changes to resource properties.
Parameters:
Returns:
withResourceId
public WhatIfChange withResourceId(String resourceId)
Set resource ID.
Parameters:
Returns:
Applies to
Azure SDK for Java