다음을 통해 공유


WhatIfChange Class

  • java.lang.Object
    • com.microsoft.azure.management.resources.WhatIfChange

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.

ChangeType changeType()

Get type of change that will be made to the resource when the deployment is executed.

java.util.List<WhatIfPropertyChange> delta()

Get the predicted changes to resource properties.

java.lang.String resourceId()

Get resource ID.

WhatIfChange withAfter(Object after)

Set the predicted snapshot of the resource after the deployment is executed.

WhatIfChange withBefore(Object before)

Set the snapshot of the resource before the deployment is executed.

WhatIfChange withChangeType(ChangeType changeType)

Set type of change that will be made to the resource when the deployment is executed.

WhatIfChange withDelta(List<WhatIfPropertyChange> delta)

Set the predicted changes to resource properties.

WhatIfChange withResourceId(String resourceId)

Set resource ID.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

WhatIfChange

public WhatIfChange()

Method Details

after

public Object after()

Get the predicted snapshot of the resource after the deployment is executed.

Returns:

the after value

before

public Object before()

Get the snapshot of the resource before the deployment is executed.

Returns:

the before value

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:

the changeType value

delta

public List delta()

Get the predicted changes to resource properties.

Returns:

the delta value

resourceId

public String resourceId()

Get resource ID.

Returns:

the resourceId value

withAfter

public WhatIfChange withAfter(Object after)

Set the predicted snapshot of the resource after the deployment is executed.

Parameters:

after - the after value to set

Returns:

the WhatIfChange object itself.

withBefore

public WhatIfChange withBefore(Object before)

Set the snapshot of the resource before the deployment is executed.

Parameters:

before - the before value to set

Returns:

the WhatIfChange object itself.

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:

changeType - the changeType value to set

Returns:

the WhatIfChange object itself.

withDelta

public WhatIfChange withDelta(List delta)

Set the predicted changes to resource properties.

Parameters:

delta - the delta value to set

Returns:

the WhatIfChange object itself.

withResourceId

public WhatIfChange withResourceId(String resourceId)

Set resource ID.

Parameters:

resourceId - the resourceId value to set

Returns:

the WhatIfChange object itself.

Applies to