Class WhatIfChange
java.lang.Object
com.microsoft.azure.management.resources.WhatIfChange
Information about a single resource change predicted by What-If operation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionafter()
Get the predicted snapshot of the resource after the deployment is executed.before()
Get the snapshot of the resource before the deployment is executed.Get type of change that will be made to the resource when the deployment is executed.delta()
Get the predicted changes to resource properties.Get resource ID.Set the predicted snapshot of the resource after the deployment is executed.withBefore
(Object before) Set the snapshot of the resource before the deployment is executed.withChangeType
(ChangeType changeType) Set type of change that will be made to the resource when the deployment is executed.withDelta
(List<WhatIfPropertyChange> delta) Set the predicted changes to resource properties.withResourceId
(String resourceId) Set resource ID.
-
Constructor Details
-
WhatIfChange
public WhatIfChange()
-
-
Method Details
-
resourceId
Get resource ID.- Returns:
- the resourceId value
-
withResourceId
Set resource ID.- Parameters:
resourceId
- the resourceId value to set- Returns:
- the WhatIfChange object itself.
-
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:
- the changeType value
-
withChangeType
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:
changeType
- the changeType value to set- Returns:
- the WhatIfChange object itself.
-
before
Get the snapshot of the resource before the deployment is executed.- Returns:
- the before value
-
withBefore
Set 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 predicted snapshot of the resource after the deployment is executed.- Returns:
- the after value
-
withAfter
Set 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 predicted changes to resource properties.- Returns:
- the delta value
-
withDelta
Set the predicted changes to resource properties.- Parameters:
delta
- the delta value to set- Returns:
- the WhatIfChange object itself.
-