Class ChangeAttributes
java.lang.Object
com.azure.resourcemanager.resources.models.ChangeAttributes
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ChangeAttributes>
public final class ChangeAttributes
extends Object
implements com.azure.json.JsonSerializable<ChangeAttributes>
Details about the change resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the changesCount property: The number of changes this resource captures.Get the correlationId property: The ARM correlation ID of the change resource.static ChangeAttributesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ChangeAttributes from the JsonReader.Get the newResourceSnapshotId property: The GUID of the new snapshot.Get the previousResourceSnapshotId property: The GUID of the previous snapshot.Get the timestamp property: The time the change(s) on the target resource ocurred.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.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
-
ChangeAttributes
public ChangeAttributes()Creates an instance of ChangeAttributes class.
-
-
Method Details
-
correlationId
Get the correlationId property: The ARM correlation ID of the change resource.- Returns:
- the correlationId value.
-
timestamp
Get the timestamp property: The time the change(s) on the target resource ocurred.- Returns:
- the timestamp value.
-
changesCount
Get the changesCount property: The number of changes this resource captures.- Returns:
- the changesCount value.
-
previousResourceSnapshotId
Get the previousResourceSnapshotId property: The GUID of the previous snapshot.- Returns:
- the previousResourceSnapshotId value.
-
newResourceSnapshotId
Get the newResourceSnapshotId property: The GUID of the new snapshot.- Returns:
- the newResourceSnapshotId value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ChangeAttributes>- Throws:
IOException
-
fromJson
Reads an instance of ChangeAttributes from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ChangeAttributes 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 ChangeAttributes.
-