com.microsoft.graph.models.AgreementFileProperties Maven / Gradle / Ivy
// Template Source: BaseEntity.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
package com.microsoft.graph.models;
import com.microsoft.graph.serializer.ISerializer;
import com.microsoft.graph.serializer.IJsonBackedObject;
import com.microsoft.graph.serializer.AdditionalDataManager;
import java.util.EnumSet;
import com.microsoft.graph.models.AgreementFileData;
import com.microsoft.graph.models.Entity;
import com.google.gson.JsonObject;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import javax.annotation.Nullable;
import javax.annotation.Nonnull;
// **NOTE** This file was generated by a tool and any changes will be overwritten.
/**
* The class for the Agreement File Properties.
*/
public class AgreementFileProperties extends Entity implements IJsonBackedObject {
/**
* The Created Date Time.
* The date time representing when the file 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.
*/
@SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"})
@Expose
@Nullable
public java.time.OffsetDateTime createdDateTime;
/**
* The Display Name.
* Localized display name of the policy file of an agreement. The localized display name is shown to end users who view the agreement.
*/
@SerializedName(value = "displayName", alternate = {"DisplayName"})
@Expose
@Nullable
public String displayName;
/**
* The File Data.
* Data that represents the terms of use PDF document. Read-only.
*/
@SerializedName(value = "fileData", alternate = {"FileData"})
@Expose
@Nullable
public AgreementFileData fileData;
/**
* The File Name.
* Name of the agreement file (for example, TOU.pdf). Read-only.
*/
@SerializedName(value = "fileName", alternate = {"FileName"})
@Expose
@Nullable
public String fileName;
/**
* The Is Default.
* If none of the languages matches the client preference, indicates whether this is the default agreement file. If none of the files are marked as default, the first one is treated as the default. Read-only.
*/
@SerializedName(value = "isDefault", alternate = {"IsDefault"})
@Expose
@Nullable
public Boolean isDefault;
/**
* The Is Major Version.
* Indicates whether the agreement file is a major version update. Major version updates invalidate the agreement's acceptances on the corresponding language.
*/
@SerializedName(value = "isMajorVersion", alternate = {"IsMajorVersion"})
@Expose
@Nullable
public Boolean isMajorVersion;
/**
* The Language.
* The language of the agreement file in the format 'languagecode2-country/regioncode2'. 'languagecode2' is a lowercase two-letter code derived from ISO 639-1, while 'country/regioncode2' is derived from ISO 3166 and usually consists of two uppercase letters, or a BCP-47 language tag. For example, U.S. English is en-US. Read-only.
*/
@SerializedName(value = "language", alternate = {"Language"})
@Expose
@Nullable
public String language;
/**
* Sets the raw JSON object
*
* @param serializer the serializer
* @param json the JSON object to set this object to
*/
public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {
}
}