Package com.microsoft.graph.models
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
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Agreement
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the acceptances property value.Gets the displayName property value.The deserialization information for the current modelgetFile()
Gets the file property value.getFiles()
Gets the files property value.Gets the isPerDeviceAcceptanceRequired property value.Gets the isViewingBeforeAcceptanceRequired property value.Gets the termsExpiration property value.com.microsoft.kiota.PeriodAndDuration
Gets the userReacceptRequiredFrequency property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setAcceptances
(List<AgreementAcceptance> value) Sets the acceptances property value.void
setDisplayName
(String value) Sets the displayName property value.void
setFile
(AgreementFile value) Sets the file property value.void
setFiles
(List<AgreementFileLocalization> value) Sets the files property value.void
Sets the isPerDeviceAcceptanceRequired property value.void
Sets the isViewingBeforeAcceptanceRequired property value.void
Sets the termsExpiration property value.void
setUserReacceptRequiredFrequency
(com.microsoft.kiota.PeriodAndDuration value) Sets the userReacceptRequiredFrequency property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
Agreement
public Agreement()Instantiates a newAgreement
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
Gets the acceptances property value. Read-only. Information about acceptances of this agreement.- Returns:
- a
List<AgreementAcceptance>
-
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 interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getFile
Gets the file property value. Default PDF linked to this agreement.- Returns:
- a
AgreementFile
-
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
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
Gets the isViewingBeforeAcceptanceRequired property value. Indicates whether the user has to expand the agreement before accepting. Supports $filter (eq).- Returns:
- a
Boolean
-
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 -
setAcceptances
Sets the acceptances property value. Read-only. Information about acceptances of this agreement.- Parameters:
value
- Value to set for the acceptances property.
-
setDisplayName
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
Sets the file property value. Default PDF linked to this agreement.- Parameters:
value
- Value to set for the file property.
-
setFiles
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
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
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
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.
-