Class WhatIfOperationResultInner
java.lang.Object
com.azure.resourcemanager.resources.fluent.models.WhatIfOperationResultInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<WhatIfOperationResultInner>
public final class WhatIfOperationResultInner
extends Object
implements com.azure.json.JsonSerializable<WhatIfOperationResultInner>
Result of the What-If operation. Contains a list of predicted changes and a URL link to get to the next set of
results.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of WhatIfOperationResultInner 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.com.azure.core.management.exception.ManagementErrorerror()Get the error property: Error when What-If operation fails.static WhatIfOperationResultInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WhatIfOperationResultInner from the JsonReader.Get the potentialChanges property: List of resource changes predicted by What-If operation.status()Get the status property: Status of the 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.withError(com.azure.core.management.exception.ManagementError error) Set the error property: Error when What-If operation fails.withPotentialChanges(List<WhatIfChange> potentialChanges) Set the potentialChanges property: List of resource changes predicted by What-If operation.withStatus(String status) Set the status property: Status of the 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
-
WhatIfOperationResultInner
public WhatIfOperationResultInner()Creates an instance of WhatIfOperationResultInner class.
-
-
Method Details
-
status
Get the status property: Status of the What-If operation.- Returns:
- the status value.
-
withStatus
Set the status property: Status of the What-If operation.- Parameters:
status- the status value to set.- Returns:
- the WhatIfOperationResultInner object itself.
-
error
public com.azure.core.management.exception.ManagementError error()Get the error property: Error when What-If operation fails.- Returns:
- the error value.
-
withError
public WhatIfOperationResultInner withError(com.azure.core.management.exception.ManagementError error) Set the error property: Error when What-If operation fails.- Parameters:
error- the error value to set.- Returns:
- the WhatIfOperationResultInner object itself.
-
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 WhatIfOperationResultInner 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 WhatIfOperationResultInner 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<WhatIfOperationResultInner>- Throws:
IOException
-
fromJson
public static WhatIfOperationResultInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of WhatIfOperationResultInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of WhatIfOperationResultInner 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 WhatIfOperationResultInner.
-