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
    Constructor
    Description
    Creates an instance of ChangeAttributes class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the changesCount property: The number of changes this resource captures.
    Get the correlationId property: The ARM correlation ID of the change resource.
    fromJson(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.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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

      public String correlationId()
      Get the correlationId property: The ARM correlation ID of the change resource.
      Returns:
      the correlationId value.
    • timestamp

      public String timestamp()
      Get the timestamp property: The time the change(s) on the target resource ocurred.
      Returns:
      the timestamp value.
    • changesCount

      public Long changesCount()
      Get the changesCount property: The number of changes this resource captures.
      Returns:
      the changesCount value.
    • previousResourceSnapshotId

      public String previousResourceSnapshotId()
      Get the previousResourceSnapshotId property: The GUID of the previous snapshot.
      Returns:
      the previousResourceSnapshotId value.
    • newResourceSnapshotId

      public String 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ChangeAttributes>
      Throws:
      IOException
    • fromJson

      public static ChangeAttributes fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.