다음을 통해 공유


DeploymentWhatIf Class

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

Implements

public final class DeploymentWhatIf
implements JsonSerializable<DeploymentWhatIf>

Deployment What-if operation parameters.

Constructor Summary

Constructor Description
DeploymentWhatIf()

Creates an instance of DeploymentWhatIf class.

Method Summary

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

Reads an instance of DeploymentWhatIf 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)
void validate()

Validates the instance.

DeploymentWhatIf withLocation(String location)

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

DeploymentWhatIf withProperties(DeploymentWhatIfProperties properties)

Set the properties property: The deployment properties.

Methods inherited from java.lang.Object

Constructor Details

DeploymentWhatIf

public DeploymentWhatIf()

Creates an instance of DeploymentWhatIf class.

Method Details

fromJson

public static DeploymentWhatIf fromJson(JsonReader jsonReader)

Reads an instance of DeploymentWhatIf from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DeploymentWhatIf 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:

validate

public void validate()

Validates the instance.

withLocation

public DeploymentWhatIf withLocation(String location)

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

Parameters:

location - the location value to set.

Returns:

the DeploymentWhatIf object itself.

withProperties

public DeploymentWhatIf withProperties(DeploymentWhatIfProperties properties)

Set the properties property: The deployment properties.

Parameters:

properties - the properties value to set.

Returns:

the DeploymentWhatIf object itself.

Applies to