WhatIfChange Class
- java.
lang. Object - com.
azure. resourcemanager. resources. models. WhatIfChange
- com.
Implements
public final class WhatIfChange
implements JsonSerializable<WhatIfChange>
Information about a single resource change predicted by What-If operation.
Constructor Summary
Constructor | Description |
---|---|
WhatIfChange() |
Creates an instance of What |
Method Summary
Modifier and Type | Method and Description |
---|---|
Object |
after()
Get the after property: The predicted snapshot of the resource after the deployment is executed. |
Object |
before()
Get the before property: The snapshot of the resource before the deployment is executed. |
Change |
changeType()
Get the change |
List<What |
delta()
Get the delta property: The predicted changes to resource properties. |
static
What |
fromJson(JsonReader jsonReader)
Reads an instance of What |
String |
resourceId()
Get the resource |
Json |
toJson(JsonWriter jsonWriter) |
String |
unsupportedReason()
Get the unsupported |
void |
validate()
Validates the instance. |
What |
withAfter(Object after)
Set the after property: The predicted snapshot of the resource after the deployment is executed. |
What |
withBefore(Object before)
Set the before property: The snapshot of the resource before the deployment is executed. |
What |
withChangeType(ChangeType changeType)
Set the change |
What |
withDelta(List<WhatIfPropertyChange> delta)
Set the delta property: The predicted changes to resource properties. |
What |
withResourceId(String resourceId)
Set the resource |
What |
withUnsupportedReason(String unsupportedReason)
Set the unsupported |
Methods inherited from java.lang.Object
Constructor Details
WhatIfChange
public WhatIfChange()
Creates an instance of WhatIfChange class.
Method Details
after
public Object after()
Get the after property: The predicted snapshot of the resource after the deployment is executed.
Returns:
before
public Object before()
Get the before property: The snapshot of the resource before the deployment is executed.
Returns:
changeType
public ChangeType changeType()
Get the changeType property: Type of change that will be made to the resource when the deployment is executed.
Returns:
delta
public List
Get the delta property: The predicted changes to resource properties.
Returns:
fromJson
public static WhatIfChange fromJson(JsonReader jsonReader)
Reads an instance of WhatIfChange from the JsonReader.
Parameters:
Returns:
Throws:
resourceId
public String resourceId()
Get the resourceId property: Resource ID.
Returns:
toJson
unsupportedReason
public String unsupportedReason()
Get the unsupportedReason property: The explanation about why the resource is unsupported by What-If.
Returns:
validate
public void validate()
Validates the instance.
withAfter
public WhatIfChange withAfter(Object after)
Set the after property: The predicted snapshot of the resource after the deployment is executed.
Parameters:
Returns:
withBefore
public WhatIfChange withBefore(Object before)
Set the before property: The snapshot of the resource before the deployment is executed.
Parameters:
Returns:
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:
Returns:
withDelta
public WhatIfChange withDelta(List
Set the delta property: The predicted changes to resource properties.
Parameters:
Returns:
withResourceId
public WhatIfChange withResourceId(String resourceId)
Set the resourceId property: Resource ID.
Parameters:
Returns:
withUnsupportedReason
public WhatIfChange withUnsupportedReason(String unsupportedReason)
Set the unsupportedReason property: The explanation about why the resource is unsupported by What-If.
Parameters:
Returns:
Applies to
Azure SDK for Java