ScopedDeploymentWhatIf Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.deployments.models.ScopedDeploymentWhatIf

Implements

public final class ScopedDeploymentWhatIf
implements JsonSerializable<ScopedDeploymentWhatIf>

Deployment What-if operation parameters.

Constructor Summary

Constructor Description
ScopedDeploymentWhatIf()

Creates an instance of ScopedDeploymentWhatIf class.

Method Summary

Modifier and Type Method and Description
static ScopedDeploymentWhatIf fromJson(JsonReader jsonReader)

Reads an instance of ScopedDeploymentWhatIf from the JsonReader.

String location()

Get the location property: The location to store the deployment data.

DeploymentWhatIfProperties properties()

Get the properties property: The deployment properties.

JsonWriter toJson(JsonWriter jsonWriter)
ScopedDeploymentWhatIf withLocation(String location)

Set the location property: The location to store the deployment data.

ScopedDeploymentWhatIf withProperties(DeploymentWhatIfProperties properties)

Set the properties property: The deployment properties.

Methods inherited from java.lang.Object

Constructor Details

ScopedDeploymentWhatIf

public ScopedDeploymentWhatIf()

Creates an instance of ScopedDeploymentWhatIf class.

Method Details

fromJson

public static ScopedDeploymentWhatIf fromJson(JsonReader jsonReader)

Reads an instance of ScopedDeploymentWhatIf from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ScopedDeploymentWhatIf 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.

location

public String location()

Get the location property: The location to store the deployment data.

Returns:

the location value.

properties

public DeploymentWhatIfProperties properties()

Get the properties property: The deployment properties.

Returns:

the properties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withLocation

public ScopedDeploymentWhatIf withLocation(String location)

Set the location property: The location to store the deployment data.

Parameters:

location - the location value to set.

Returns:

the ScopedDeploymentWhatIf object itself.

withProperties

public ScopedDeploymentWhatIf withProperties(DeploymentWhatIfProperties properties)

Set the properties property: The deployment properties.

Parameters:

properties - the properties value to set.

Returns:

the ScopedDeploymentWhatIf object itself.

Applies to