|
| 1 | +// ------------------------------------------------------------------------------ |
| 2 | +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. |
| 3 | +// ------------------------------------------------------------------------------ |
| 4 | + |
| 5 | +package com.microsoft.graph.models.extensions; |
| 6 | +import com.microsoft.graph.concurrency.*; |
| 7 | +import com.microsoft.graph.core.*; |
| 8 | +import com.microsoft.graph.http.*; |
| 9 | +import com.microsoft.graph.options.*; |
| 10 | +import com.microsoft.graph.serializer.*; |
| 11 | +import java.util.Arrays; |
| 12 | +import java.util.EnumSet; |
| 13 | +import com.microsoft.graph.models.generated.ChangeType; |
| 14 | +import com.microsoft.graph.models.extensions.ResourceData; |
| 15 | + |
| 16 | + |
| 17 | +import com.google.gson.JsonObject; |
| 18 | +import com.google.gson.JsonElement; |
| 19 | +import com.google.gson.annotations.*; |
| 20 | +import java.util.HashMap; |
| 21 | +import java.util.Map; |
| 22 | + |
| 23 | +// **NOTE** This file was generated by a tool and any changes will be overwritten. |
| 24 | + |
| 25 | +/** |
| 26 | + * The class for the Change Notification. |
| 27 | + */ |
| 28 | +public class ChangeNotification implements IJsonBackedObject { |
| 29 | + |
| 30 | + @SerializedName("@odata.type") |
| 31 | + @Expose |
| 32 | + public String oDataType; |
| 33 | + |
| 34 | + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); |
| 35 | + |
| 36 | + @Override |
| 37 | + public final AdditionalDataManager additionalDataManager() { |
| 38 | + return additionalDataManager; |
| 39 | + } |
| 40 | + |
| 41 | + /** |
| 42 | + * The Id. |
| 43 | + * Unique ID for the notification. Optional. |
| 44 | + */ |
| 45 | + @SerializedName("id") |
| 46 | + @Expose |
| 47 | + public String id; |
| 48 | + |
| 49 | + /** |
| 50 | + * The Subscription Id. |
| 51 | + * The unique identifier of the subscription that generated the notification. |
| 52 | + */ |
| 53 | + @SerializedName("subscriptionId") |
| 54 | + @Expose |
| 55 | + public java.util.UUID subscriptionId; |
| 56 | + |
| 57 | + /** |
| 58 | + * The Subscription Expiration Date Time. |
| 59 | + * The expiration time for the subscription. Required. |
| 60 | + */ |
| 61 | + @SerializedName("subscriptionExpirationDateTime") |
| 62 | + @Expose |
| 63 | + public java.util.Calendar subscriptionExpirationDateTime; |
| 64 | + |
| 65 | + /** |
| 66 | + * The Client State. |
| 67 | + * 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. |
| 68 | + */ |
| 69 | + @SerializedName("clientState") |
| 70 | + @Expose |
| 71 | + public String clientState; |
| 72 | + |
| 73 | + /** |
| 74 | + * The Change Type. |
| 75 | + * Indicates the type of change that will raise the change notification. The supported values are: created, updated, deleted. Required. |
| 76 | + */ |
| 77 | + @SerializedName("changeType") |
| 78 | + @Expose |
| 79 | + public ChangeType changeType; |
| 80 | + |
| 81 | + /** |
| 82 | + * The Resource. |
| 83 | + * The URI of the resource that emitted the change notification relative to https://graph.microsoft.com. Required. |
| 84 | + */ |
| 85 | + @SerializedName("resource") |
| 86 | + @Expose |
| 87 | + public String resource; |
| 88 | + |
| 89 | + /** |
| 90 | + * The Tenant Id. |
| 91 | + * The unique identifier of the tenant from which the change notification originated. |
| 92 | + */ |
| 93 | + @SerializedName("tenantId") |
| 94 | + @Expose |
| 95 | + public java.util.UUID tenantId; |
| 96 | + |
| 97 | + /** |
| 98 | + * The Resource Data. |
| 99 | + * The content of this property depends on the type of resource being subscribed to. Required. |
| 100 | + */ |
| 101 | + @SerializedName("resourceData") |
| 102 | + @Expose |
| 103 | + public ResourceData resourceData; |
| 104 | + |
| 105 | + |
| 106 | + /** |
| 107 | + * The raw representation of this class |
| 108 | + */ |
| 109 | + private JsonObject rawObject; |
| 110 | + |
| 111 | + /** |
| 112 | + * The serializer |
| 113 | + */ |
| 114 | + private ISerializer serializer; |
| 115 | + |
| 116 | + /** |
| 117 | + * Gets the raw representation of this class |
| 118 | + * |
| 119 | + * @return the raw representation of this class |
| 120 | + */ |
| 121 | + public JsonObject getRawObject() { |
| 122 | + return rawObject; |
| 123 | + } |
| 124 | + |
| 125 | + /** |
| 126 | + * Gets serializer |
| 127 | + * |
| 128 | + * @return the serializer |
| 129 | + */ |
| 130 | + protected ISerializer getSerializer() { |
| 131 | + return serializer; |
| 132 | + } |
| 133 | + |
| 134 | + /** |
| 135 | + * Sets the raw JSON object |
| 136 | + * |
| 137 | + * @param serializer the serializer |
| 138 | + * @param json the JSON object to set this object to |
| 139 | + */ |
| 140 | + public void setRawObject(final ISerializer serializer, final JsonObject json) { |
| 141 | + this.serializer = serializer; |
| 142 | + rawObject = json; |
| 143 | + |
| 144 | + } |
| 145 | +} |
0 commit comments