WhatIfPropertyChange Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.models.WhatIfPropertyChange

Implements

public final class WhatIfPropertyChange
implements JsonSerializable<WhatIfPropertyChange>

The predicted change to the resource property.

Constructor Summary

Constructor Description
WhatIfPropertyChange()

Creates an instance of WhatIfPropertyChange class.

Method Summary

Modifier and Type Method and Description
Object after()

Get the after property: The value of the property after the deployment is executed.

Object before()

Get the before property: The value of the property before the deployment is executed.

List<WhatIfPropertyChange> children()

Get the children property: Nested property changes.

static WhatIfPropertyChange fromJson(JsonReader jsonReader)

Reads an instance of WhatIfPropertyChange from the JsonReader.

String path()

Get the path property: The path of the property.

PropertyChangeType propertyChangeType()

Get the propertyChangeType property: The type of property change.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

WhatIfPropertyChange withAfter(Object after)

Set the after property: The value of the property after the deployment is executed.

WhatIfPropertyChange withBefore(Object before)

Set the before property: The value of the property before the deployment is executed.

WhatIfPropertyChange withChildren(List<WhatIfPropertyChange> children)

Set the children property: Nested property changes.

WhatIfPropertyChange withPath(String path)

Set the path property: The path of the property.

WhatIfPropertyChange withPropertyChangeType(PropertyChangeType propertyChangeType)

Set the propertyChangeType property: The type of property change.

Methods inherited from java.lang.Object

Constructor Details

WhatIfPropertyChange

public WhatIfPropertyChange()

Creates an instance of WhatIfPropertyChange class.

Method Details

after

public Object after()

Get the after property: The value of the property after the deployment is executed.

Returns:

the after value.

before

public Object before()

Get the before property: The value of the property before the deployment is executed.

Returns:

the before value.

children

public List children()

Get the children property: Nested property changes.

Returns:

the children value.

fromJson

public static WhatIfPropertyChange fromJson(JsonReader jsonReader)

Reads an instance of WhatIfPropertyChange from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of WhatIfPropertyChange if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

path

public String path()

Get the path property: The path of the property.

Returns:

the path value.

propertyChangeType

public PropertyChangeType propertyChangeType()

Get the propertyChangeType property: The type of property change.

Returns:

the propertyChangeType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAfter

public WhatIfPropertyChange withAfter(Object after)

Set the after property: The value of the property after the deployment is executed.

Parameters:

after - the after value to set.

Returns:

the WhatIfPropertyChange object itself.

withBefore

public WhatIfPropertyChange withBefore(Object before)

Set the before property: The value of the property before the deployment is executed.

Parameters:

before - the before value to set.

Returns:

the WhatIfPropertyChange object itself.

withChildren

public WhatIfPropertyChange withChildren(List children)

Set the children property: Nested property changes.

Parameters:

children - the children value to set.

Returns:

the WhatIfPropertyChange object itself.

withPath

public WhatIfPropertyChange withPath(String path)

Set the path property: The path of the property.

Parameters:

path - the path value to set.

Returns:

the WhatIfPropertyChange object itself.

withPropertyChangeType

public WhatIfPropertyChange withPropertyChangeType(PropertyChangeType propertyChangeType)

Set the propertyChangeType property: The type of property change.

Parameters:

propertyChangeType - the propertyChangeType value to set.

Returns:

the WhatIfPropertyChange object itself.

Applies to