Class WhatIfChange

java.lang.Object
com.azure.resourcemanager.resources.models.WhatIfChange
All Implemented Interfaces:
com.azure.json.JsonSerializable<WhatIfChange>

public final class WhatIfChange extends Object implements com.azure.json.JsonSerializable<WhatIfChange>
Information about a single resource change predicted by What-If operation.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of WhatIfChange class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the after property: The predicted snapshot of the resource after the deployment is executed.
    Get the before property: The snapshot of the resource before the deployment is executed.
    Get the changeType property: Type of change that will be made to the resource when the deployment is executed.
    Get the delta property: The predicted changes to resource properties.
    Get the deploymentId property: The resource id of the Deployment responsible for this change.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of WhatIfChange from the JsonReader.
    Get the identifiers property: A subset of properties that uniquely identify a Bicep extensible resource because it lacks a resource id like an Azure resource has.
    Get the resourceId property: Resource ID.
    Get the symbolicName property: The symbolic name of the resource responsible for this change.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the unsupportedReason property: The explanation about why the resource is unsupported by What-If.
    void
    Validates the instance.
    Set the after property: The predicted snapshot of the resource after the deployment is executed.
    Set the before property: The snapshot of the resource before the deployment is executed.
    Set the changeType property: Type of change that will be made to the resource when the deployment is executed.
    Set the delta property: The predicted changes to resource properties.
    withDeploymentId(String deploymentId)
    Set the deploymentId property: The resource id of the Deployment responsible for this change.
    withIdentifiers(Object identifiers)
    Set the identifiers property: A subset of properties that uniquely identify a Bicep extensible resource because it lacks a resource id like an Azure resource has.
    withResourceId(String resourceId)
    Set the resourceId property: Resource ID.
    withSymbolicName(String symbolicName)
    Set the symbolicName property: The symbolic name of the resource responsible for this change.
    withUnsupportedReason(String unsupportedReason)
    Set the unsupportedReason property: The explanation about why the resource is unsupported by What-If.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • WhatIfChange

      public WhatIfChange()
      Creates an instance of WhatIfChange class.
  • Method Details

    • 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.
    • deploymentId

      public String deploymentId()
      Get the deploymentId property: The resource id of the Deployment responsible for this change.
      Returns:
      the deploymentId value.
    • withDeploymentId

      public WhatIfChange withDeploymentId(String deploymentId)
      Set the deploymentId property: The resource id of the Deployment responsible for this change.
      Parameters:
      deploymentId - the deploymentId value to set.
      Returns:
      the WhatIfChange object itself.
    • symbolicName

      public String symbolicName()
      Get the symbolicName property: The symbolic name of the resource responsible for this change.
      Returns:
      the symbolicName value.
    • withSymbolicName

      public WhatIfChange withSymbolicName(String symbolicName)
      Set the symbolicName property: The symbolic name of the resource responsible for this change.
      Parameters:
      symbolicName - the symbolicName value to set.
      Returns:
      the WhatIfChange object itself.
    • identifiers

      public Object identifiers()
      Get the identifiers property: A subset of properties that uniquely identify a Bicep extensible resource because it lacks a resource id like an Azure resource has.
      Returns:
      the identifiers value.
    • withIdentifiers

      public WhatIfChange withIdentifiers(Object identifiers)
      Set the identifiers property: A subset of properties that uniquely identify a Bicep extensible resource because it lacks a resource id like an Azure resource has.
      Parameters:
      identifiers - the identifiers 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.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<WhatIfChange>
      Throws:
      IOException
    • fromJson

      public static WhatIfChange fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of WhatIfChange from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of WhatIfChange if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the WhatIfChange.