|
| 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.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.models.IdentitySet; |
| 12 | +import com.microsoft.graph.models.RetentionLabelSettings; |
| 13 | +import com.microsoft.graph.models.Entity; |
| 14 | + |
| 15 | + |
| 16 | +import com.google.gson.JsonObject; |
| 17 | +import com.google.gson.annotations.SerializedName; |
| 18 | +import com.google.gson.annotations.Expose; |
| 19 | +import javax.annotation.Nullable; |
| 20 | +import javax.annotation.Nonnull; |
| 21 | + |
| 22 | +// **NOTE** This file was generated by a tool and any changes will be overwritten. |
| 23 | + |
| 24 | +/** |
| 25 | + * The class for the Item Retention Label. |
| 26 | + */ |
| 27 | +public class ItemRetentionLabel extends Entity implements IJsonBackedObject { |
| 28 | + |
| 29 | + |
| 30 | + /** |
| 31 | + * The Is Label Applied Explicitly. |
| 32 | + * Specifies whether the label is applied explicitly on the item. True indicates that the label is applied explicitly; otherwise, the label is inherited from its parent. Read-only. |
| 33 | + */ |
| 34 | + @SerializedName(value = "isLabelAppliedExplicitly", alternate = {"IsLabelAppliedExplicitly"}) |
| 35 | + @Expose |
| 36 | + @Nullable |
| 37 | + public Boolean isLabelAppliedExplicitly; |
| 38 | + |
| 39 | + /** |
| 40 | + * The Label Applied By. |
| 41 | + * Identity of the user who applied the label. Read-only. |
| 42 | + */ |
| 43 | + @SerializedName(value = "labelAppliedBy", alternate = {"LabelAppliedBy"}) |
| 44 | + @Expose |
| 45 | + @Nullable |
| 46 | + public IdentitySet labelAppliedBy; |
| 47 | + |
| 48 | + /** |
| 49 | + * The Label Applied Date Time. |
| 50 | + * The date and time when the label was applied on the item. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. |
| 51 | + */ |
| 52 | + @SerializedName(value = "labelAppliedDateTime", alternate = {"LabelAppliedDateTime"}) |
| 53 | + @Expose |
| 54 | + @Nullable |
| 55 | + public java.time.OffsetDateTime labelAppliedDateTime; |
| 56 | + |
| 57 | + /** |
| 58 | + * The Name. |
| 59 | + * The retention label on the document. Read-write. |
| 60 | + */ |
| 61 | + @SerializedName(value = "name", alternate = {"Name"}) |
| 62 | + @Expose |
| 63 | + @Nullable |
| 64 | + public String name; |
| 65 | + |
| 66 | + /** |
| 67 | + * The Retention Settings. |
| 68 | + * The retention settings enforced on the item. Read-write. |
| 69 | + */ |
| 70 | + @SerializedName(value = "retentionSettings", alternate = {"RetentionSettings"}) |
| 71 | + @Expose |
| 72 | + @Nullable |
| 73 | + public RetentionLabelSettings retentionSettings; |
| 74 | + |
| 75 | + |
| 76 | + /** |
| 77 | + * Sets the raw JSON object |
| 78 | + * |
| 79 | + * @param serializer the serializer |
| 80 | + * @param json the JSON object to set this object to |
| 81 | + */ |
| 82 | + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { |
| 83 | + |
| 84 | + } |
| 85 | +} |
0 commit comments