Class ChangeProperties
java.lang.Object
com.azure.resourcemanager.resources.models.ChangeProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ChangeProperties>
public final class ChangeProperties
extends Object
implements com.azure.json.JsonSerializable<ChangeProperties>
The properties of a change.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the changeAttributes property: Details about the change resource.changes()Get the changes property: A dictionary with changed property name as a key and the change details as the value.Get the changeType property: The type of change that was captured in the resource.static ChangePropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ChangeProperties from the JsonReader.Get the targetResourceId property: The fully qualified ID of the target resource that was changed.Get the targetResourceType property: The namespace and type of the resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withChangeAttributes(ChangeAttributes changeAttributes) Set the changeAttributes property: Details about the change resource.withChanges(Map<String, ChangeBase> changes) Set the changes property: A dictionary with changed property name as a key and the change details as the value.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
-
ChangeProperties
public ChangeProperties()Creates an instance of ChangeProperties class.
-
-
Method Details
-
targetResourceId
Get the targetResourceId property: The fully qualified ID of the target resource that was changed.- Returns:
- the targetResourceId value.
-
targetResourceType
Get the targetResourceType property: The namespace and type of the resource.- Returns:
- the targetResourceType value.
-
changeType
Get the changeType property: The type of change that was captured in the resource.- Returns:
- the changeType value.
-
changeAttributes
Get the changeAttributes property: Details about the change resource.- Returns:
- the changeAttributes value.
-
withChangeAttributes
Set the changeAttributes property: Details about the change resource.- Parameters:
changeAttributes- the changeAttributes value to set.- Returns:
- the ChangeProperties object itself.
-
changes
Get the changes property: A dictionary with changed property name as a key and the change details as the value.- Returns:
- the changes value.
-
withChanges
Set the changes property: A dictionary with changed property name as a key and the change details as the value.- Parameters:
changes- the changes value to set.- Returns:
- the ChangeProperties 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<ChangeProperties>- Throws:
IOException
-
fromJson
Reads an instance of ChangeProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ChangeProperties 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 ChangeProperties.
-