WhatIfOperationResultInner Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.fluent.models.WhatIfOperationResultInner

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 WhatIfOperationResultInner class.

Method Summary

Modifier and Type Method and Description
List<WhatIfChange> changes()

Get the changes property: List of resource changes predicted by What-If operation.

List<DeploymentDiagnosticsDefinition> diagnostics()

Get the diagnostics property: List of resource diagnostics detected by What-If operation.

ManagementError error()

Get the error property: Error when What-If operation fails.

static WhatIfOperationResultInner fromJson(JsonReader jsonReader)

Reads an instance of WhatIfOperationResultInner from the JsonReader.

List<WhatIfChange> potentialChanges()

Get the potentialChanges property: List of resource changes predicted by What-If operation.

String status()

Get the status property: Status of the What-If operation.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

WhatIfOperationResultInner withChanges(List<WhatIfChange> changes)

Set the changes property: List of resource changes predicted by What-If operation.

WhatIfOperationResultInner withError(ManagementError error)

Set the error property: Error when What-If operation fails.

WhatIfOperationResultInner withPotentialChanges(List<WhatIfChange> potentialChanges)

Set the potentialChanges property: List of resource changes predicted by What-If operation.

WhatIfOperationResultInner 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 changes()

Get the changes property: List of resource changes predicted by What-If operation.

Returns:

the changes value.

diagnostics

public List diagnostics()

Get the diagnostics property: List of resource diagnostics detected by What-If operation.

Returns:

the diagnostics value.

error

public ManagementError error()

Get the error property: Error when What-If operation fails.

Returns:

the error value.

fromJson

public static WhatIfOperationResultInner fromJson(JsonReader jsonReader)

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.

potentialChanges

public List potentialChanges()

Get the potentialChanges property: List of resource changes predicted by What-If operation.

Returns:

the potentialChanges value.

status

public String status()

Get the status property: Status of the What-If operation.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withChanges

public WhatIfOperationResultInner withChanges(List changes)

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.

withError

public WhatIfOperationResultInner withError(ManagementError error)

Set the error property: Error when What-If operation fails.

Parameters:

error - the error value to set.

Returns:

the WhatIfOperationResultInner object itself.

withPotentialChanges

public WhatIfOperationResultInner withPotentialChanges(List potentialChanges)

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.

withStatus

public WhatIfOperationResultInner withStatus(String status)

Set the status property: Status of the What-If operation.

Parameters:

status - the status value to set.

Returns:

the WhatIfOperationResultInner object itself.

Applies to

Azure SDK for Java

Latest