Class WhatIfOperationProperties
java.lang.Object
com.azure.resourcemanager.resources.fluent.models.WhatIfOperationProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<WhatIfOperationProperties>
public final class WhatIfOperationProperties
extends Object
implements com.azure.json.JsonSerializable<WhatIfOperationProperties>
Deployment operation properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of WhatIfOperationProperties class. -
Method Summary
Modifier and TypeMethodDescriptionchanges()Get the changes property: List of resource changes predicted by What-If operation.Get the diagnostics property: List of resource diagnostics detected by What-If operation.static WhatIfOperationPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WhatIfOperationProperties from the JsonReader.Get the potentialChanges property: List of resource changes predicted by What-If operation.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withChanges(List<WhatIfChange> changes) Set the changes property: List of resource changes predicted by What-If operation.withPotentialChanges(List<WhatIfChange> potentialChanges) Set the potentialChanges property: List of resource changes predicted by What-If operation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
WhatIfOperationProperties
public WhatIfOperationProperties()Creates an instance of WhatIfOperationProperties class.
-
-
Method Details
-
changes
Get the changes property: List of resource changes predicted by What-If operation.- Returns:
- the changes value.
-
withChanges
Set the changes property: List of resource changes predicted by What-If operation.- Parameters:
changes- the changes value to set.- Returns:
- the WhatIfOperationProperties object itself.
-
potentialChanges
Get the potentialChanges property: List of resource changes predicted by What-If operation.- Returns:
- the potentialChanges value.
-
withPotentialChanges
Set the potentialChanges property: List of resource changes predicted by What-If operation.- Parameters:
potentialChanges- the potentialChanges value to set.- Returns:
- the WhatIfOperationProperties object itself.
-
diagnostics
Get the diagnostics property: List of resource diagnostics detected by What-If operation.- Returns:
- the diagnostics value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<WhatIfOperationProperties>- Throws:
IOException
-
fromJson
public static WhatIfOperationProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of WhatIfOperationProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of WhatIfOperationProperties 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 WhatIfOperationProperties.
-