Class DeploymentWhatIfSettings

java.lang.Object
com.azure.resourcemanager.resources.models.DeploymentWhatIfSettings
All Implemented Interfaces:
com.azure.json.JsonSerializable<DeploymentWhatIfSettings>

public final class DeploymentWhatIfSettings extends Object implements com.azure.json.JsonSerializable<DeploymentWhatIfSettings>
Deployment What-If operation settings.
  • Constructor Details

    • DeploymentWhatIfSettings

      public DeploymentWhatIfSettings()
      Creates an instance of DeploymentWhatIfSettings class.
  • Method Details

    • resultFormat

      public WhatIfResultFormat resultFormat()
      Get the resultFormat property: The format of the What-If results.
      Returns:
      the resultFormat value.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<DeploymentWhatIfSettings>
      Throws:
      IOException
    • fromJson

      public static DeploymentWhatIfSettings fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.