Package com.microsoft.graph.models
Class TermsAndConditionsAcceptanceStatus
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.TermsAndConditionsAcceptanceStatus
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class TermsAndConditionsAcceptanceStatus
extends Entity
implements com.microsoft.kiota.serialization.Parsable
A termsAndConditionsAcceptanceStatus entity represents the acceptance status of a given Terms and Conditions (T&C) policy by a given user. Users must accept the most up-to-date version of the terms in order to retain access to the Company Portal.
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a newTermsAndConditionsAcceptanceStatus
and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptioncreateFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the acceptedDateTime property value.Gets the acceptedVersion property value.The deserialization information for the current modelGets the termsAndConditions property value.Gets the userDisplayName property value.Gets the userPrincipalName property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
Sets the acceptedDateTime property value.void
setAcceptedVersion
(Integer value) Sets the acceptedVersion property value.void
Sets the termsAndConditions property value.void
setUserDisplayName
(String value) Sets the userDisplayName property value.void
setUserPrincipalName
(String value) Sets the userPrincipalName property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
TermsAndConditionsAcceptanceStatus
public TermsAndConditionsAcceptanceStatus()Instantiates a newTermsAndConditionsAcceptanceStatus
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static TermsAndConditionsAcceptanceStatus 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
TermsAndConditionsAcceptanceStatus
-
getAcceptedDateTime
Gets the acceptedDateTime property value. DateTime when the terms were last accepted by the user.- Returns:
- a
OffsetDateTime
-
getAcceptedVersion
Gets the acceptedVersion property value. Most recent version number of the T&C accepted by the user.- Returns:
- a
Integer
-
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>>
-
getTermsAndConditions
Gets the termsAndConditions property value. Navigation link to the terms and conditions that are assigned.- Returns:
- a
TermsAndConditions
-
getUserDisplayName
Gets the userDisplayName property value. Display name of the user whose acceptance the entity represents.- Returns:
- a
String
-
getUserPrincipalName
Gets the userPrincipalName property value. The userPrincipalName of the User that accepted the term.- Returns:
- a
String
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setAcceptedDateTime
Sets the acceptedDateTime property value. DateTime when the terms were last accepted by the user.- Parameters:
value
- Value to set for the acceptedDateTime property.
-
setAcceptedVersion
Sets the acceptedVersion property value. Most recent version number of the T&C accepted by the user.- Parameters:
value
- Value to set for the acceptedVersion property.
-
setTermsAndConditions
Sets the termsAndConditions property value. Navigation link to the terms and conditions that are assigned.- Parameters:
value
- Value to set for the termsAndConditions property.
-
setUserDisplayName
Sets the userDisplayName property value. Display name of the user whose acceptance the entity represents.- Parameters:
value
- Value to set for the userDisplayName property.
-
setUserPrincipalName
Sets the userPrincipalName property value. The userPrincipalName of the User that accepted the term.- Parameters:
value
- Value to set for the userPrincipalName property.
-