Class Agreement

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.Agreement
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class Agreement extends Entity implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

    • Agreement

      public Agreement()
      Instantiates a new Agreement and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static Agreement 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 Agreement
    • getAcceptances

      @Nullable public List<AgreementAcceptance> getAcceptances()
      Gets the acceptances property value. Read-only. Information about acceptances of this agreement.
      Returns:
      a List<AgreementAcceptance>
    • getDisplayName

      @Nullable public String getDisplayName()
      Gets the displayName property value. Display name of the agreement. The display name is used for internal tracking of the agreement but isn't shown to end users who view the agreement. Supports $filter (eq).
      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>>
    • getFile

      @Nullable public AgreementFile getFile()
      Gets the file property value. Default PDF linked to this agreement.
      Returns:
      a AgreementFile
    • getFiles

      @Nullable public List<AgreementFileLocalization> getFiles()
      Gets the files property value. PDFs linked to this agreement. This property is in the process of being deprecated. Use the file property instead. Supports $expand.
      Returns:
      a List<AgreementFileLocalization>
    • getIsPerDeviceAcceptanceRequired

      @Nullable public Boolean getIsPerDeviceAcceptanceRequired()
      Gets the isPerDeviceAcceptanceRequired property value. Indicates whether end users are required to accept this agreement on every device that they access it from. The end user is required to register their device in Microsoft Entra ID, if they haven't already done so. Supports $filter (eq).
      Returns:
      a Boolean
    • getIsViewingBeforeAcceptanceRequired

      @Nullable public Boolean getIsViewingBeforeAcceptanceRequired()
      Gets the isViewingBeforeAcceptanceRequired property value. Indicates whether the user has to expand the agreement before accepting. Supports $filter (eq).
      Returns:
      a Boolean
    • getTermsExpiration

      @Nullable public TermsExpiration getTermsExpiration()
      Gets the termsExpiration property value. Expiration schedule and frequency of agreement for all users. Supports $filter (eq).
      Returns:
      a TermsExpiration
    • getUserReacceptRequiredFrequency

      @Nullable public com.microsoft.kiota.PeriodAndDuration getUserReacceptRequiredFrequency()
      Gets the userReacceptRequiredFrequency property value. The duration after which the user must reaccept the terms of use. The value is represented in ISO 8601 format for durations. Supports $filter (eq).
      Returns:
      a PeriodAndDuration
    • 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
    • setAcceptances

      public void setAcceptances(@Nullable List<AgreementAcceptance> value)
      Sets the acceptances property value. Read-only. Information about acceptances of this agreement.
      Parameters:
      value - Value to set for the acceptances property.
    • setDisplayName

      public void setDisplayName(@Nullable String value)
      Sets the displayName property value. Display name of the agreement. The display name is used for internal tracking of the agreement but isn't shown to end users who view the agreement. Supports $filter (eq).
      Parameters:
      value - Value to set for the displayName property.
    • setFile

      public void setFile(@Nullable AgreementFile value)
      Sets the file property value. Default PDF linked to this agreement.
      Parameters:
      value - Value to set for the file property.
    • setFiles

      public void setFiles(@Nullable List<AgreementFileLocalization> value)
      Sets the files property value. PDFs linked to this agreement. This property is in the process of being deprecated. Use the file property instead. Supports $expand.
      Parameters:
      value - Value to set for the files property.
    • setIsPerDeviceAcceptanceRequired

      public void setIsPerDeviceAcceptanceRequired(@Nullable Boolean value)
      Sets the isPerDeviceAcceptanceRequired property value. Indicates whether end users are required to accept this agreement on every device that they access it from. The end user is required to register their device in Microsoft Entra ID, if they haven't already done so. Supports $filter (eq).
      Parameters:
      value - Value to set for the isPerDeviceAcceptanceRequired property.
    • setIsViewingBeforeAcceptanceRequired

      public void setIsViewingBeforeAcceptanceRequired(@Nullable Boolean value)
      Sets the isViewingBeforeAcceptanceRequired property value. Indicates whether the user has to expand the agreement before accepting. Supports $filter (eq).
      Parameters:
      value - Value to set for the isViewingBeforeAcceptanceRequired property.
    • setTermsExpiration

      public void setTermsExpiration(@Nullable TermsExpiration value)
      Sets the termsExpiration property value. Expiration schedule and frequency of agreement for all users. Supports $filter (eq).
      Parameters:
      value - Value to set for the termsExpiration property.
    • setUserReacceptRequiredFrequency

      public void setUserReacceptRequiredFrequency(@Nullable com.microsoft.kiota.PeriodAndDuration value)
      Sets the userReacceptRequiredFrequency property value. The duration after which the user must reaccept the terms of use. The value is represented in ISO 8601 format for durations. Supports $filter (eq).
      Parameters:
      value - Value to set for the userReacceptRequiredFrequency property.