|
| 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.extensions; |
| 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.generated.AgreementAcceptanceState; |
| 12 | +import com.microsoft.graph.models.extensions.Entity; |
| 13 | + |
| 14 | + |
| 15 | +import com.google.gson.JsonObject; |
| 16 | +import com.google.gson.annotations.SerializedName; |
| 17 | +import com.google.gson.annotations.Expose; |
| 18 | + |
| 19 | +// **NOTE** This file was generated by a tool and any changes will be overwritten. |
| 20 | + |
| 21 | +/** |
| 22 | + * The class for the Agreement Acceptance. |
| 23 | + */ |
| 24 | +public class AgreementAcceptance extends Entity implements IJsonBackedObject { |
| 25 | + |
| 26 | + |
| 27 | + /** |
| 28 | + * The Agreement File Id. |
| 29 | + * ID of the agreement file accepted by the user. |
| 30 | + */ |
| 31 | + @SerializedName(value = "agreementFileId", alternate = {"AgreementFileId"}) |
| 32 | + @Expose |
| 33 | + public String agreementFileId; |
| 34 | + |
| 35 | + /** |
| 36 | + * The Agreement Id. |
| 37 | + * ID of the agreement. |
| 38 | + */ |
| 39 | + @SerializedName(value = "agreementId", alternate = {"AgreementId"}) |
| 40 | + @Expose |
| 41 | + public String agreementId; |
| 42 | + |
| 43 | + /** |
| 44 | + * The Device Display Name. |
| 45 | + * The display name of the device used for accepting the agreement. |
| 46 | + */ |
| 47 | + @SerializedName(value = "deviceDisplayName", alternate = {"DeviceDisplayName"}) |
| 48 | + @Expose |
| 49 | + public String deviceDisplayName; |
| 50 | + |
| 51 | + /** |
| 52 | + * The Device Id. |
| 53 | + * The unique identifier of the device used for accepting the agreement. |
| 54 | + */ |
| 55 | + @SerializedName(value = "deviceId", alternate = {"DeviceId"}) |
| 56 | + @Expose |
| 57 | + public String deviceId; |
| 58 | + |
| 59 | + /** |
| 60 | + * The Device OSType. |
| 61 | + * The operating system used for accepting the agreement. |
| 62 | + */ |
| 63 | + @SerializedName(value = "deviceOSType", alternate = {"DeviceOSType"}) |
| 64 | + @Expose |
| 65 | + public String deviceOSType; |
| 66 | + |
| 67 | + /** |
| 68 | + * The Device OSVersion. |
| 69 | + * The operating system version of the device used for accepting the agreement. |
| 70 | + */ |
| 71 | + @SerializedName(value = "deviceOSVersion", alternate = {"DeviceOSVersion"}) |
| 72 | + @Expose |
| 73 | + public String deviceOSVersion; |
| 74 | + |
| 75 | + /** |
| 76 | + * The Expiration Date Time. |
| 77 | + * The expiration date time of the acceptance. 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 would look like this: '2014-01-01T00:00:00Z' |
| 78 | + */ |
| 79 | + @SerializedName(value = "expirationDateTime", alternate = {"ExpirationDateTime"}) |
| 80 | + @Expose |
| 81 | + public java.util.Calendar expirationDateTime; |
| 82 | + |
| 83 | + /** |
| 84 | + * The Recorded Date Time. |
| 85 | + * 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 would look like this: '2014-01-01T00:00:00Z' |
| 86 | + */ |
| 87 | + @SerializedName(value = "recordedDateTime", alternate = {"RecordedDateTime"}) |
| 88 | + @Expose |
| 89 | + public java.util.Calendar recordedDateTime; |
| 90 | + |
| 91 | + /** |
| 92 | + * The State. |
| 93 | + * Possible values are: accepted, declined. |
| 94 | + */ |
| 95 | + @SerializedName(value = "state", alternate = {"State"}) |
| 96 | + @Expose |
| 97 | + public AgreementAcceptanceState state; |
| 98 | + |
| 99 | + /** |
| 100 | + * The User Display Name. |
| 101 | + * Display name of the user when the acceptance was recorded. |
| 102 | + */ |
| 103 | + @SerializedName(value = "userDisplayName", alternate = {"UserDisplayName"}) |
| 104 | + @Expose |
| 105 | + public String userDisplayName; |
| 106 | + |
| 107 | + /** |
| 108 | + * The User Email. |
| 109 | + * Email of the user when the acceptance was recorded. |
| 110 | + */ |
| 111 | + @SerializedName(value = "userEmail", alternate = {"UserEmail"}) |
| 112 | + @Expose |
| 113 | + public String userEmail; |
| 114 | + |
| 115 | + /** |
| 116 | + * The User Id. |
| 117 | + * ID of the user who accepted the agreement. |
| 118 | + */ |
| 119 | + @SerializedName(value = "userId", alternate = {"UserId"}) |
| 120 | + @Expose |
| 121 | + public String userId; |
| 122 | + |
| 123 | + /** |
| 124 | + * The User Principal Name. |
| 125 | + * UPN of the user when the acceptance was recorded. |
| 126 | + */ |
| 127 | + @SerializedName(value = "userPrincipalName", alternate = {"UserPrincipalName"}) |
| 128 | + @Expose |
| 129 | + public String userPrincipalName; |
| 130 | + |
| 131 | + |
| 132 | + /** |
| 133 | + * The raw representation of this class |
| 134 | + */ |
| 135 | + private JsonObject rawObject; |
| 136 | + |
| 137 | + /** |
| 138 | + * The serializer |
| 139 | + */ |
| 140 | + private ISerializer serializer; |
| 141 | + |
| 142 | + /** |
| 143 | + * Gets the raw representation of this class |
| 144 | + * |
| 145 | + * @return the raw representation of this class |
| 146 | + */ |
| 147 | + public JsonObject getRawObject() { |
| 148 | + return rawObject; |
| 149 | + } |
| 150 | + |
| 151 | + /** |
| 152 | + * Gets serializer |
| 153 | + * |
| 154 | + * @return the serializer |
| 155 | + */ |
| 156 | + protected ISerializer getSerializer() { |
| 157 | + return serializer; |
| 158 | + } |
| 159 | + |
| 160 | + /** |
| 161 | + * Sets the raw JSON object |
| 162 | + * |
| 163 | + * @param serializer the serializer |
| 164 | + * @param json the JSON object to set this object to |
| 165 | + */ |
| 166 | + public void setRawObject(final ISerializer serializer, final JsonObject json) { |
| 167 | + this.serializer = serializer; |
| 168 | + rawObject = json; |
| 169 | + |
| 170 | + } |
| 171 | +} |
0 commit comments