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

  • 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

      @Nullable public OffsetDateTime getAcceptedDateTime()
      Gets the acceptedDateTime property value. DateTime when the terms were last accepted by the user.
      Returns:
      a OffsetDateTime
    • getAcceptedVersion

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

      @Nullable public TermsAndConditions getTermsAndConditions()
      Gets the termsAndConditions property value. Navigation link to the terms and conditions that are assigned.
      Returns:
      a TermsAndConditions
    • getUserDisplayName

      @Nullable public String getUserDisplayName()
      Gets the userDisplayName property value. Display name of the user whose acceptance the entity represents.
      Returns:
      a String
    • getUserPrincipalName

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

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

      public void setAcceptedVersion(@Nullable Integer value)
      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

      public void setTermsAndConditions(@Nullable TermsAndConditions value)
      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

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

      public void setUserPrincipalName(@Nullable String value)
      Sets the userPrincipalName property value. The userPrincipalName of the User that accepted the term.
      Parameters:
      value - Value to set for the userPrincipalName property.