Package com.microsoft.graph.models
Class AgreementFileProperties
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.AgreementFileProperties
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder,com.microsoft.kiota.serialization.Parsable,com.microsoft.kiota.store.BackedModel
- Direct Known Subclasses:
AgreementFile,AgreementFileLocalization,AgreementFileVersion
@Generated("com.microsoft.kiota")
public class AgreementFileProperties
extends Entity
implements com.microsoft.kiota.serialization.Parsable
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AgreementFilePropertiescreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the createdDateTime property value.Gets the displayName property value.The deserialization information for the current modelGets the fileData property value.Gets the fileName property value.Gets the isDefault property value.Gets the isMajorVersion property value.Gets the language property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetCreatedDateTime(OffsetDateTime value) Sets the createdDateTime property value.voidsetDisplayName(String value) Sets the displayName property value.voidsetFileData(AgreementFileData value) Sets the fileData property value.voidsetFileName(String value) Sets the fileName property value.voidsetIsDefault(Boolean value) Sets the isDefault property value.voidsetIsMajorVersion(Boolean value) Sets the isMajorVersion property value.voidsetLanguage(String value) Sets the language property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
AgreementFileProperties
public AgreementFileProperties()Instantiates a newAgreementFilePropertiesand sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static AgreementFileProperties createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator value- Parameters:
parseNode- The parse node to use to read the discriminator value and create the object- Returns:
- a
AgreementFileProperties
-
getCreatedDateTime
Gets the createdDateTime property value. 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.- Returns:
- a
OffsetDateTime
-
getDisplayName
Gets the displayName property value. Localized display name of the policy file of an agreement. The localized display name is shown to end users who view the agreement.- Returns:
- a
String
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin classEntity- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getFileData
Gets the fileData property value. Data that represents the terms of use PDF document. Read-only.- Returns:
- a
AgreementFileData
-
getFileName
Gets the fileName property value. Name of the agreement file (for example, TOU.pdf). Read-only.- Returns:
- a
String
-
getIsDefault
Gets the isDefault property value. 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.- Returns:
- a
Boolean
-
getIsMajorVersion
Gets the isMajorVersion property value. Indicates whether the agreement file is a major version update. Major version updates invalidate the agreement's acceptances on the corresponding language.- Returns:
- a
Boolean
-
getLanguage
Gets the language property value. 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.- Returns:
- a
String
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setCreatedDateTime
Sets the createdDateTime property value. 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.- Parameters:
value- Value to set for the createdDateTime property.
-
setDisplayName
Sets the displayName property value. Localized display name of the policy file of an agreement. The localized display name is shown to end users who view the agreement.- Parameters:
value- Value to set for the displayName property.
-
setFileData
Sets the fileData property value. Data that represents the terms of use PDF document. Read-only.- Parameters:
value- Value to set for the fileData property.
-
setFileName
Sets the fileName property value. Name of the agreement file (for example, TOU.pdf). Read-only.- Parameters:
value- Value to set for the fileName property.
-
setIsDefault
Sets the isDefault property value. 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.- Parameters:
value- Value to set for the isDefault property.
-
setIsMajorVersion
Sets the isMajorVersion property value. Indicates whether the agreement file is a major version update. Major version updates invalidate the agreement's acceptances on the corresponding language.- Parameters:
value- Value to set for the isMajorVersion property.
-
setLanguage
Sets the language property value. 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.- Parameters:
value- Value to set for the language property.
-