你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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. |
String |
deploymentId()
Get the deployment |
static
What |
fromJson(JsonReader jsonReader)
Reads an instance of What |
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. |
String |
resourceId()
Get the resource |
String |
symbolicName()
Get the symbolic |
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 |
withDeploymentId(String deploymentId)
Set the deployment |
What |
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. |
What |
withResourceId(String resourceId)
Set the resource |
What |
withSymbolicName(String symbolicName)
Set the symbolic |
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:
deploymentId
public String deploymentId()
Get the deploymentId property: The resource id of the Deployment responsible for this change.
Returns:
fromJson
public static WhatIfChange fromJson(JsonReader jsonReader)
Reads an instance of WhatIfChange from the JsonReader.
Parameters:
Returns:
Throws:
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:
resourceId
public String resourceId()
Get the resourceId property: Resource ID.
Returns:
symbolicName
public String symbolicName()
Get the symbolicName property: The symbolic name of the resource responsible for this change.
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:
withDeploymentId
public WhatIfChange withDeploymentId(String deploymentId)
Set the deploymentId property: The resource id of the Deployment responsible for this change.
Parameters:
Returns:
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:
Returns:
withResourceId
public WhatIfChange withResourceId(String resourceId)
Set the resourceId property: Resource ID.
Parameters:
Returns:
withSymbolicName
public WhatIfChange withSymbolicName(String symbolicName)
Set the symbolicName property: The symbolic name of the resource responsible for this change.
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: