Package com.microsoft.graph.models
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 Summary
FieldsModifier and TypeFieldDescriptionThe Change Type.The Client State.The Encrypted Content.The Id.The Lifecycle Event.the OData type of the object as returned by the serviceThe Resource.The Resource Data.The Subscription Expiration Date Time.The Subscription Id.The Tenant Id. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal com.microsoft.graph.serializer.AdditionalDataManagervoidsetRawObject(com.microsoft.graph.serializer.ISerializer serializer, com.google.gson.JsonObject json) Sets the raw JSON object
-
Field Details
-
oDataType
the OData type of the object as returned by the service -
changeType
@SerializedName(value="changeType", alternate="ChangeType") @Expose @Nullable public ChangeType changeTypeThe 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 clientStateThe 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 encryptedContentThe 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
The Id. Unique ID for the notification. Optional. -
lifecycleEvent
@SerializedName(value="lifecycleEvent", alternate="LifecycleEvent") @Expose @Nullable public LifecycleEventType lifecycleEventThe Lifecycle Event. The type of lifecycle notification if the current notification is a lifecycle notification. Optional. Supported values are missed, subscriptionRemoved, reauthorizationRequired. Optional. -
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 resourceDataThe 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 subscriptionExpirationDateTimeThe Subscription Expiration Date Time. The expiration time for the subscription. Required. -
subscriptionId
@SerializedName(value="subscriptionId", alternate="SubscriptionId") @Expose @Nullable public UUID subscriptionIdThe Subscription Id. The unique identifier of the subscription that generated the notification.Required. -
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:
additionalDataManagerin interfacecom.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:
setRawObjectin interfacecom.microsoft.graph.serializer.IJsonBackedObject- Parameters:
serializer- the serializerjson- the JSON object to set this object to
-