Class WhatIfOperationResultInner
java.lang.Object
com.azure.resourcemanager.resources.fluent.models.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchanges()Get the changes property: List of resource changes predicted by What-If operation.com.azure.core.management.exception.ManagementErrorerror()Get the error property: Error Response Error when What-If operation fails.status()Get the status property: Status of the What-If operation.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 Response Error when What-If operation fails.withStatus(String status) Set the status property: Status of the What-If operation.
-
Constructor Details
-
WhatIfOperationResultInner
public WhatIfOperationResultInner()
-
-
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 Response 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 Response 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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-