WhatIfChange Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.models.WhatIfChange

Implements

public final class WhatIfChange
implements JsonSerializable<WhatIfChange>

Information about a single resource change predicted by What-If operation.

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.

ChangeType changeType()

Get the changeType property: Type of change that will be made to the resource when the deployment is executed.

List<WhatIfPropertyChange> delta()

Get the delta property: The predicted changes to resource properties.

String deploymentId()

Get the deploymentId property: The resource id of the Deployment responsible for this change.

DeploymentExtensionDefinition extension()

Get the extension property: The extension the resource was deployed with.

static WhatIfChange fromJson(JsonReader jsonReader)

Reads an instance of WhatIfChange from the JsonReader.

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 resourceId property: Resource ID.

String symbolicName()

Get the symbolicName property: The symbolic name of the resource responsible for this change.

JsonWriter toJson(JsonWriter jsonWriter)
String unsupportedReason()

Get the unsupportedReason property: The explanation about why the resource is unsupported by What-If.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

after

public Object after()

Get the after property: The predicted snapshot of the resource after the deployment is executed.

Returns:

the after value.

before

public Object before()

Get the before property: The snapshot of the resource before the deployment is executed.

Returns:

the before value.

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.

delta

public List<WhatIfPropertyChange> delta()

Get the delta property: The predicted changes to resource properties.

Returns:

the delta value.

deploymentId

public String deploymentId()

Get the deploymentId property: The resource id of the Deployment responsible for this change.

Returns:

the deploymentId value.

extension

public DeploymentExtensionDefinition extension()

Get the extension property: The extension the resource was deployed with.

Returns:

the extension value.

fromJson

public static WhatIfChange fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

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.

resourceId

public String resourceId()

Get the resourceId property: Resource ID.

Returns:

the resourceId value.

symbolicName

public String symbolicName()

Get the symbolicName property: The symbolic name of the resource responsible for this change.

Returns:

the symbolicName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

unsupportedReason

public String unsupportedReason()

Get the unsupportedReason property: The explanation about why the resource is unsupported by What-If.

Returns:

the unsupportedReason value.

validate

public void validate()

Validates the instance.

Applies to