Class WhatIfPropertyChange
java.lang.Object
com.azure.resourcemanager.resources.models.WhatIfPropertyChange
- All Implemented Interfaces:
com.azure.json.JsonSerializable<WhatIfPropertyChange>
public final class WhatIfPropertyChange
extends Object
implements com.azure.json.JsonSerializable<WhatIfPropertyChange>
The predicted change to the resource property.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionafter()Get the after property: The value of the property after the deployment is executed.before()Get the before property: The value of the property before the deployment is executed.children()Get the children property: Nested property changes.static WhatIfPropertyChangefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WhatIfPropertyChange from the JsonReader.path()Get the path property: The path of the property.Get the propertyChangeType property: The type of property change.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the after property: The value of the property after the deployment is executed.withBefore(Object before) Set the before property: The value of the property before the deployment is executed.withChildren(List<WhatIfPropertyChange> children) Set the children property: Nested property changes.Set the path property: The path of the property.withPropertyChangeType(PropertyChangeType propertyChangeType) Set the propertyChangeType property: The type of property change.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
-
WhatIfPropertyChange
public WhatIfPropertyChange()Creates an instance of WhatIfPropertyChange class.
-
-
Method Details
-
path
Get the path property: The path of the property.- Returns:
- the path value.
-
withPath
Set the path property: The path of the property.- Parameters:
path- the path value to set.- Returns:
- the WhatIfPropertyChange object itself.
-
propertyChangeType
Get the propertyChangeType property: The type of property change.- Returns:
- the propertyChangeType value.
-
withPropertyChangeType
Set the propertyChangeType property: The type of property change.- Parameters:
propertyChangeType- the propertyChangeType value to set.- Returns:
- the WhatIfPropertyChange object itself.
-
before
Get the before property: The value of the property before the deployment is executed.- Returns:
- the before value.
-
withBefore
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.
-
after
Get the after property: The value of the property after the deployment is executed.- Returns:
- the after value.
-
withAfter
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.
-
children
Get the children property: Nested property changes.- Returns:
- the children value.
-
withChildren
Set the children property: Nested property changes.- Parameters:
children- the children value to set.- Returns:
- the WhatIfPropertyChange object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<WhatIfPropertyChange>- Throws:
IOException
-
fromJson
public static WhatIfPropertyChange fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the WhatIfPropertyChange.
-