DeploymentWhatIfSettings Class

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

Implements

public final class DeploymentWhatIfSettings
implements JsonSerializable<DeploymentWhatIfSettings>

Deployment What-If operation settings.

Constructor Summary

Constructor Description
DeploymentWhatIfSettings()

Creates an instance of DeploymentWhatIfSettings class.

Method Summary

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

Reads an instance of DeploymentWhatIfSettings from the JsonReader.

WhatIfResultFormat resultFormat()

Get the resultFormat property: The format of the What-If results.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DeploymentWhatIfSettings withResultFormat(WhatIfResultFormat resultFormat)

Set the resultFormat property: The format of the What-If results.

Methods inherited from java.lang.Object

Constructor Details

DeploymentWhatIfSettings

public DeploymentWhatIfSettings()

Creates an instance of DeploymentWhatIfSettings class.

Method Details

fromJson

public static DeploymentWhatIfSettings fromJson(JsonReader jsonReader)

Reads an instance of DeploymentWhatIfSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DeploymentWhatIfSettings if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the DeploymentWhatIfSettings.

resultFormat

public WhatIfResultFormat resultFormat()

Get the resultFormat property: The format of the What-If results.

Returns:

the resultFormat value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withResultFormat

public DeploymentWhatIfSettings withResultFormat(WhatIfResultFormat resultFormat)

Set the resultFormat property: The format of the What-If results.

Parameters:

resultFormat - the resultFormat value to set.

Returns:

the DeploymentWhatIfSettings object itself.

Applies to