|
| 1 | +// Template Source: BaseEntity.java.tt |
| 2 | +// ------------------------------------------------------------------------------ |
| 3 | +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. |
| 4 | +// ------------------------------------------------------------------------------ |
| 5 | + |
| 6 | +package com.microsoft.graph.ediscovery.models; |
| 7 | +import com.microsoft.graph.serializer.ISerializer; |
| 8 | +import com.microsoft.graph.serializer.IJsonBackedObject; |
| 9 | +import com.microsoft.graph.serializer.AdditionalDataManager; |
| 10 | +import java.util.EnumSet; |
| 11 | +import com.microsoft.graph.http.BaseCollectionPage; |
| 12 | +import com.microsoft.graph.models.IdentitySet; |
| 13 | +import com.microsoft.graph.ediscovery.models.CaseStatus; |
| 14 | +import com.microsoft.graph.ediscovery.models.Custodian; |
| 15 | +import com.microsoft.graph.ediscovery.models.LegalHold; |
| 16 | +import com.microsoft.graph.ediscovery.models.NoncustodialDataSource; |
| 17 | +import com.microsoft.graph.ediscovery.models.CaseOperation; |
| 18 | +import com.microsoft.graph.ediscovery.models.ReviewSet; |
| 19 | +import com.microsoft.graph.ediscovery.models.CaseSettings; |
| 20 | +import com.microsoft.graph.ediscovery.models.SourceCollection; |
| 21 | +import com.microsoft.graph.ediscovery.models.Tag; |
| 22 | +import com.microsoft.graph.models.Entity; |
| 23 | +import com.microsoft.graph.ediscovery.requests.CustodianCollectionPage; |
| 24 | +import com.microsoft.graph.ediscovery.requests.LegalHoldCollectionPage; |
| 25 | +import com.microsoft.graph.ediscovery.requests.NoncustodialDataSourceCollectionPage; |
| 26 | +import com.microsoft.graph.ediscovery.requests.CaseOperationCollectionPage; |
| 27 | +import com.microsoft.graph.ediscovery.requests.ReviewSetCollectionPage; |
| 28 | +import com.microsoft.graph.ediscovery.requests.SourceCollectionCollectionPage; |
| 29 | +import com.microsoft.graph.ediscovery.requests.TagCollectionPage; |
| 30 | + |
| 31 | + |
| 32 | +import com.google.gson.JsonObject; |
| 33 | +import com.google.gson.annotations.SerializedName; |
| 34 | +import com.google.gson.annotations.Expose; |
| 35 | +import javax.annotation.Nullable; |
| 36 | +import javax.annotation.Nonnull; |
| 37 | + |
| 38 | +// **NOTE** This file was generated by a tool and any changes will be overwritten. |
| 39 | + |
| 40 | +/** |
| 41 | + * The class for the Case. |
| 42 | + */ |
| 43 | +public class Case extends Entity implements IJsonBackedObject { |
| 44 | + |
| 45 | + |
| 46 | + /** |
| 47 | + * The Closed By. |
| 48 | + * The user who closed the case. |
| 49 | + */ |
| 50 | + @SerializedName(value = "closedBy", alternate = {"ClosedBy"}) |
| 51 | + @Expose |
| 52 | + @Nullable |
| 53 | + public IdentitySet closedBy; |
| 54 | + |
| 55 | + /** |
| 56 | + * The Closed Date Time. |
| 57 | + * The date and time when the case was closed. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z |
| 58 | + */ |
| 59 | + @SerializedName(value = "closedDateTime", alternate = {"ClosedDateTime"}) |
| 60 | + @Expose |
| 61 | + @Nullable |
| 62 | + public java.time.OffsetDateTime closedDateTime; |
| 63 | + |
| 64 | + /** |
| 65 | + * The Created Date Time. |
| 66 | + * The date and time when the entity was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z |
| 67 | + */ |
| 68 | + @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"}) |
| 69 | + @Expose |
| 70 | + @Nullable |
| 71 | + public java.time.OffsetDateTime createdDateTime; |
| 72 | + |
| 73 | + /** |
| 74 | + * The Description. |
| 75 | + * The case description. |
| 76 | + */ |
| 77 | + @SerializedName(value = "description", alternate = {"Description"}) |
| 78 | + @Expose |
| 79 | + @Nullable |
| 80 | + public String description; |
| 81 | + |
| 82 | + /** |
| 83 | + * The Display Name. |
| 84 | + * The case name. |
| 85 | + */ |
| 86 | + @SerializedName(value = "displayName", alternate = {"DisplayName"}) |
| 87 | + @Expose |
| 88 | + @Nullable |
| 89 | + public String displayName; |
| 90 | + |
| 91 | + /** |
| 92 | + * The External Id. |
| 93 | + * The external case number for customer reference. |
| 94 | + */ |
| 95 | + @SerializedName(value = "externalId", alternate = {"ExternalId"}) |
| 96 | + @Expose |
| 97 | + @Nullable |
| 98 | + public String externalId; |
| 99 | + |
| 100 | + /** |
| 101 | + * The Last Modified By. |
| 102 | + * The last user who modified the entity. |
| 103 | + */ |
| 104 | + @SerializedName(value = "lastModifiedBy", alternate = {"LastModifiedBy"}) |
| 105 | + @Expose |
| 106 | + @Nullable |
| 107 | + public IdentitySet lastModifiedBy; |
| 108 | + |
| 109 | + /** |
| 110 | + * The Last Modified Date Time. |
| 111 | + * The latest date and time when the case was modified. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z |
| 112 | + */ |
| 113 | + @SerializedName(value = "lastModifiedDateTime", alternate = {"LastModifiedDateTime"}) |
| 114 | + @Expose |
| 115 | + @Nullable |
| 116 | + public java.time.OffsetDateTime lastModifiedDateTime; |
| 117 | + |
| 118 | + /** |
| 119 | + * The Status. |
| 120 | + * The case status. Possible values are unknown, active, pendingDelete, closing, closed, and closedWithError. For details, see the following table. |
| 121 | + */ |
| 122 | + @SerializedName(value = "status", alternate = {"Status"}) |
| 123 | + @Expose |
| 124 | + @Nullable |
| 125 | + public CaseStatus status; |
| 126 | + |
| 127 | + /** |
| 128 | + * The Custodians. |
| 129 | + * Returns a list of case custodian objects for this case. Nullable. |
| 130 | + */ |
| 131 | + @SerializedName(value = "custodians", alternate = {"Custodians"}) |
| 132 | + @Expose |
| 133 | + @Nullable |
| 134 | + public CustodianCollectionPage custodians; |
| 135 | + |
| 136 | + /** |
| 137 | + * The Legal Holds. |
| 138 | + * Returns a list of case legalHold objects for this case. Nullable. |
| 139 | + */ |
| 140 | + @SerializedName(value = "legalHolds", alternate = {"LegalHolds"}) |
| 141 | + @Expose |
| 142 | + @Nullable |
| 143 | + public LegalHoldCollectionPage legalHolds; |
| 144 | + |
| 145 | + /** |
| 146 | + * The Noncustodial Data Sources. |
| 147 | + * Returns a list of case noncustodialDataSource objects for this case. Nullable. |
| 148 | + */ |
| 149 | + @SerializedName(value = "noncustodialDataSources", alternate = {"NoncustodialDataSources"}) |
| 150 | + @Expose |
| 151 | + @Nullable |
| 152 | + public NoncustodialDataSourceCollectionPage noncustodialDataSources; |
| 153 | + |
| 154 | + /** |
| 155 | + * The Operations. |
| 156 | + * Returns a list of case operation objects for this case. Nullable. |
| 157 | + */ |
| 158 | + @SerializedName(value = "operations", alternate = {"Operations"}) |
| 159 | + @Expose |
| 160 | + @Nullable |
| 161 | + public CaseOperationCollectionPage operations; |
| 162 | + |
| 163 | + /** |
| 164 | + * The Review Sets. |
| 165 | + * Returns a list of reviewSet objects in the case. Read-only. Nullable. |
| 166 | + */ |
| 167 | + @SerializedName(value = "reviewSets", alternate = {"ReviewSets"}) |
| 168 | + @Expose |
| 169 | + @Nullable |
| 170 | + public ReviewSetCollectionPage reviewSets; |
| 171 | + |
| 172 | + /** |
| 173 | + * The Settings. |
| 174 | + * |
| 175 | + */ |
| 176 | + @SerializedName(value = "settings", alternate = {"Settings"}) |
| 177 | + @Expose |
| 178 | + @Nullable |
| 179 | + public CaseSettings settings; |
| 180 | + |
| 181 | + /** |
| 182 | + * The Source Collections. |
| 183 | + * Returns a list of sourceCollection objects associated with this case. |
| 184 | + */ |
| 185 | + @SerializedName(value = "sourceCollections", alternate = {"SourceCollections"}) |
| 186 | + @Expose |
| 187 | + @Nullable |
| 188 | + public SourceCollectionCollectionPage sourceCollections; |
| 189 | + |
| 190 | + /** |
| 191 | + * The Tags. |
| 192 | + * Returns a list of tag objects associated to this case. |
| 193 | + */ |
| 194 | + @SerializedName(value = "tags", alternate = {"Tags"}) |
| 195 | + @Expose |
| 196 | + @Nullable |
| 197 | + public TagCollectionPage tags; |
| 198 | + |
| 199 | + |
| 200 | + /** |
| 201 | + * Sets the raw JSON object |
| 202 | + * |
| 203 | + * @param serializer the serializer |
| 204 | + * @param json the JSON object to set this object to |
| 205 | + */ |
| 206 | + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { |
| 207 | + |
| 208 | + |
| 209 | + if (json.has("custodians")) { |
| 210 | + custodians = serializer.deserializeObject(json.get("custodians"), CustodianCollectionPage.class); |
| 211 | + } |
| 212 | + |
| 213 | + if (json.has("legalHolds")) { |
| 214 | + legalHolds = serializer.deserializeObject(json.get("legalHolds"), LegalHoldCollectionPage.class); |
| 215 | + } |
| 216 | + |
| 217 | + if (json.has("noncustodialDataSources")) { |
| 218 | + noncustodialDataSources = serializer.deserializeObject(json.get("noncustodialDataSources"), NoncustodialDataSourceCollectionPage.class); |
| 219 | + } |
| 220 | + |
| 221 | + if (json.has("operations")) { |
| 222 | + operations = serializer.deserializeObject(json.get("operations"), CaseOperationCollectionPage.class); |
| 223 | + } |
| 224 | + |
| 225 | + if (json.has("reviewSets")) { |
| 226 | + reviewSets = serializer.deserializeObject(json.get("reviewSets"), ReviewSetCollectionPage.class); |
| 227 | + } |
| 228 | + |
| 229 | + if (json.has("sourceCollections")) { |
| 230 | + sourceCollections = serializer.deserializeObject(json.get("sourceCollections"), SourceCollectionCollectionPage.class); |
| 231 | + } |
| 232 | + |
| 233 | + if (json.has("tags")) { |
| 234 | + tags = serializer.deserializeObject(json.get("tags"), TagCollectionPage.class); |
| 235 | + } |
| 236 | + } |
| 237 | +} |
0 commit comments