Class WhatIfChange

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

public class WhatIfChange extends Object
Information about a single resource change predicted by What-If operation.
  • Constructor Details

    • WhatIfChange

      public WhatIfChange()
  • Method Details

    • resourceId

      public String resourceId()
      Get resource ID.
      Returns:
      the resourceId value
    • withResourceId

      public WhatIfChange withResourceId(String resourceId)
      Set resource ID.
      Parameters:
      resourceId - the resourceId value to set
      Returns:
      the WhatIfChange object itself.
    • 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
    • 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.
    • before

      public Object before()
      Get the snapshot of the resource before the deployment is executed.
      Returns:
      the before value
    • 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.
    • after

      public Object after()
      Get the predicted snapshot of the resource after the deployment is executed.
      Returns:
      the after 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.
    • delta

      public List<WhatIfPropertyChange> delta()
      Get the predicted changes to resource properties.
      Returns:
      the delta value
    • withDelta

      public WhatIfChange withDelta(List<WhatIfPropertyChange> delta)
      Set the predicted changes to resource properties.
      Parameters:
      delta - the delta value to set
      Returns:
      the WhatIfChange object itself.