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
  • Constructor Details

    • AgreementFileProperties

      public AgreementFileProperties()
      Instantiates a new AgreementFileProperties and 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

      @Nullable public OffsetDateTime 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

      @Nullable public String 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:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getFileData

      @Nullable public AgreementFileData getFileData()
      Gets the fileData property value. Data that represents the terms of use PDF document. Read-only.
      Returns:
      a AgreementFileData
    • getFileName

      @Nullable public String getFileName()
      Gets the fileName property value. Name of the agreement file (for example, TOU.pdf). Read-only.
      Returns:
      a String
    • getIsDefault

      @Nullable public Boolean 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

      @Nullable public 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

      @Nullable public String 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
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setCreatedDateTime

      public void setCreatedDateTime(@Nullable OffsetDateTime value)
      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

      public void setDisplayName(@Nullable String value)
      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

      public void setFileData(@Nullable AgreementFileData value)
      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

      public void setFileName(@Nullable String value)
      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

      public void setIsDefault(@Nullable Boolean value)
      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

      public void setIsMajorVersion(@Nullable Boolean value)
      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

      public void setLanguage(@Nullable String value)
      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.