Class ChangeNotification

java.lang.Object
com.microsoft.graph.models.ChangeNotification
All Implemented Interfaces:
com.microsoft.graph.serializer.IJsonBackedObject

public class ChangeNotification extends Object implements com.microsoft.graph.serializer.IJsonBackedObject
The class for the Change Notification.
  • Field Details

    • oDataType

      @SerializedName("@odata.type") @Expose @Nullable public String oDataType
      the OData type of the object as returned by the service
    • changeType

      @SerializedName(value="changeType", alternate="ChangeType") @Expose @Nullable public ChangeType changeType
      The Change Type. Indicates the type of change that will raise the change notification. The supported values are: created, updated, deleted. Required.
    • clientState

      @SerializedName(value="clientState", alternate="ClientState") @Expose @Nullable public String clientState
      The Client State. Value of the clientState property sent in the subscription request (if any). The maximum length is 255 characters. The client can check whether the change notification came from the service by comparing the values of the clientState property. The value of the clientState property sent with the subscription is compared with the value of the clientState property received with each change notification. Optional.
    • encryptedContent

      @SerializedName(value="encryptedContent", alternate="EncryptedContent") @Expose @Nullable public ChangeNotificationEncryptedContent encryptedContent
      The Encrypted Content. (Preview) Encrypted content attached with the change notification. Only provided if encryptionCertificate and includeResourceData were defined during the subscription request and if the resource supports it. Optional.
    • id

      @SerializedName(value="id", alternate="Id") @Expose @Nullable public String id
      The Id. Unique ID for the notification. Optional.
    • lifecycleEvent

      @SerializedName(value="lifecycleEvent", alternate="LifecycleEvent") @Expose @Nullable public LifecycleEventType lifecycleEvent
      The Lifecycle Event. The type of lifecycle notification if the current notification is a lifecycle notification. Optional. Supported values are missed, subscriptionRemoved, reauthorizationRequired. Optional.
    • resource

      @SerializedName(value="resource", alternate="Resource") @Expose @Nullable public String resource
      The Resource. The URI of the resource that emitted the change notification relative to https://graph.microsoft.com. Required.
    • resourceData

      @SerializedName(value="resourceData", alternate="ResourceData") @Expose @Nullable public ResourceData resourceData
      The Resource Data. The content of this property depends on the type of resource being subscribed to. Optional.
    • subscriptionExpirationDateTime

      @SerializedName(value="subscriptionExpirationDateTime", alternate="SubscriptionExpirationDateTime") @Expose @Nullable public OffsetDateTime subscriptionExpirationDateTime
      The Subscription Expiration Date Time. The expiration time for the subscription. Required.
    • subscriptionId

      @SerializedName(value="subscriptionId", alternate="SubscriptionId") @Expose @Nullable public UUID subscriptionId
      The Subscription Id. The unique identifier of the subscription that generated the notification.Required.
    • tenantId

      @SerializedName(value="tenantId", alternate="TenantId") @Expose @Nullable public UUID tenantId
      The Tenant Id. The unique identifier of the tenant from which the change notification originated. Required.
  • Constructor Details

    • ChangeNotification

      public ChangeNotification()
  • Method Details

    • additionalDataManager

      @Nonnull public final com.microsoft.graph.serializer.AdditionalDataManager additionalDataManager()
      Specified by:
      additionalDataManager in interface com.microsoft.graph.serializer.IJsonBackedObject
    • setRawObject

      public void setRawObject(@Nonnull com.microsoft.graph.serializer.ISerializer serializer, @Nonnull com.google.gson.JsonObject json)
      Sets the raw JSON object
      Specified by:
      setRawObject in interface com.microsoft.graph.serializer.IJsonBackedObject
      Parameters:
      serializer - the serializer
      json - the JSON object to set this object to