WhatIfOperationResultInner Class
- java.
lang. Object - com.
azure. resourcemanager. resources. fluent. models. WhatIfOperationResultInner
- com.
Implements
public final class WhatIfOperationResultInner
implements 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
Constructor | Description |
---|---|
WhatIfOperationResultInner() |
Creates an instance of What |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<What |
changes()
Get the changes property: List of resource changes predicted by What-If operation. |
Management |
error()
Get the error property: Error when What-If operation fails. |
static
What |
fromJson(JsonReader jsonReader)
Reads an instance of What |
String |
status()
Get the status property: Status of the What-If operation. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
What |
withChanges(List<WhatIfChange> changes)
Set the changes property: List of resource changes predicted by What-If operation. |
What |
withError(ManagementError error)
Set the error property: Error when What-If operation fails. |
What |
withStatus(String status)
Set the status property: Status of the What-If operation. |
Methods inherited from java.lang.Object
Constructor Details
WhatIfOperationResultInner
public WhatIfOperationResultInner()
Creates an instance of WhatIfOperationResultInner class.
Method Details
changes
public List
Get the changes property: List of resource changes predicted by What-If operation.
Returns:
error
public ManagementError error()
Get the error property: Error when What-If operation fails.
Returns:
fromJson
public static WhatIfOperationResultInner fromJson(JsonReader jsonReader)
Reads an instance of WhatIfOperationResultInner from the JsonReader.
Parameters:
Returns:
Throws:
status
public String status()
Get the status property: Status of the What-If operation.
Returns:
toJson
validate
public void validate()
Validates the instance.
withChanges
public WhatIfOperationResultInner withChanges(List
Set the changes property: List of resource changes predicted by What-If operation.
Parameters:
Returns:
withError
public WhatIfOperationResultInner withError(ManagementError error)
Set the error property: Error when What-If operation fails.
Parameters:
Returns:
withStatus
public WhatIfOperationResultInner withStatus(String status)
Set the status property: Status of the What-If operation.
Parameters:
Returns:
Applies to
Azure SDK for Java