Class TermsAndConditions

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

@Generated("com.microsoft.kiota") public class TermsAndConditions extends Entity implements com.microsoft.kiota.serialization.Parsable
A termsAndConditions entity represents the metadata and contents of a given Terms and Conditions (T&C) policy. T&C policies contents are presented to users upon their first attempt to enroll into Intune and subsequently upon edits where an administrator has required re-acceptance. They enable administrators to communicate the provisions to which a user must agree in order to have devices enrolled into Intune.
  • Constructor Details

    • TermsAndConditions

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

    • createFromDiscriminatorValue

      @Nonnull public static TermsAndConditions 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 TermsAndConditions
    • getAcceptanceStatement

      @Nullable public String getAcceptanceStatement()
      Gets the acceptanceStatement property value. Administrator-supplied explanation of the terms and conditions, typically describing what it means to accept the terms and conditions set out in the T&C policy. This is shown to the user on prompts to accept the T&C policy.
      Returns:
      a String
    • getAcceptanceStatuses

      @Nullable public List<TermsAndConditionsAcceptanceStatus> getAcceptanceStatuses()
      Gets the acceptanceStatuses property value. The list of acceptance statuses for this T&C policy.
      Returns:
      a List<TermsAndConditionsAcceptanceStatus>
    • getAssignments

      @Nullable public List<TermsAndConditionsAssignment> getAssignments()
      Gets the assignments property value. The list of assignments for this T&C policy.
      Returns:
      a List<TermsAndConditionsAssignment>
    • getBodyText

      @Nullable public String getBodyText()
      Gets the bodyText property value. Administrator-supplied body text of the terms and conditions, typically the terms themselves. This is shown to the user on prompts to accept the T&C policy.
      Returns:
      a String
    • getCreatedDateTime

      @Nullable public OffsetDateTime getCreatedDateTime()
      Gets the createdDateTime property value. DateTime the object was created.
      Returns:
      a OffsetDateTime
    • getDescription

      @Nullable public String getDescription()
      Gets the description property value. Administrator-supplied description of the T&C policy.
      Returns:
      a String
    • getDisplayName

      @Nullable public String getDisplayName()
      Gets the displayName property value. Administrator-supplied name for the T&C policy.
      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>>
    • getLastModifiedDateTime

      @Nullable public OffsetDateTime getLastModifiedDateTime()
      Gets the lastModifiedDateTime property value. DateTime the object was last modified.
      Returns:
      a OffsetDateTime
    • getTitle

      @Nullable public String getTitle()
      Gets the title property value. Administrator-supplied title of the terms and conditions. This is shown to the user on prompts to accept the T&C policy.
      Returns:
      a String
    • getVersion

      @Nullable public Integer getVersion()
      Gets the version property value. Integer indicating the current version of the terms. Incremented when an administrator makes a change to the terms and wishes to require users to re-accept the modified T&C policy.
      Returns:
      a Integer
    • 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
    • setAcceptanceStatement

      public void setAcceptanceStatement(@Nullable String value)
      Sets the acceptanceStatement property value. Administrator-supplied explanation of the terms and conditions, typically describing what it means to accept the terms and conditions set out in the T&C policy. This is shown to the user on prompts to accept the T&C policy.
      Parameters:
      value - Value to set for the acceptanceStatement property.
    • setAcceptanceStatuses

      public void setAcceptanceStatuses(@Nullable List<TermsAndConditionsAcceptanceStatus> value)
      Sets the acceptanceStatuses property value. The list of acceptance statuses for this T&C policy.
      Parameters:
      value - Value to set for the acceptanceStatuses property.
    • setAssignments

      public void setAssignments(@Nullable List<TermsAndConditionsAssignment> value)
      Sets the assignments property value. The list of assignments for this T&C policy.
      Parameters:
      value - Value to set for the assignments property.
    • setBodyText

      public void setBodyText(@Nullable String value)
      Sets the bodyText property value. Administrator-supplied body text of the terms and conditions, typically the terms themselves. This is shown to the user on prompts to accept the T&C policy.
      Parameters:
      value - Value to set for the bodyText property.
    • setCreatedDateTime

      public void setCreatedDateTime(@Nullable OffsetDateTime value)
      Sets the createdDateTime property value. DateTime the object was created.
      Parameters:
      value - Value to set for the createdDateTime property.
    • setDescription

      public void setDescription(@Nullable String value)
      Sets the description property value. Administrator-supplied description of the T&C policy.
      Parameters:
      value - Value to set for the description property.
    • setDisplayName

      public void setDisplayName(@Nullable String value)
      Sets the displayName property value. Administrator-supplied name for the T&C policy.
      Parameters:
      value - Value to set for the displayName property.
    • setLastModifiedDateTime

      public void setLastModifiedDateTime(@Nullable OffsetDateTime value)
      Sets the lastModifiedDateTime property value. DateTime the object was last modified.
      Parameters:
      value - Value to set for the lastModifiedDateTime property.
    • setTitle

      public void setTitle(@Nullable String value)
      Sets the title property value. Administrator-supplied title of the terms and conditions. This is shown to the user on prompts to accept the T&C policy.
      Parameters:
      value - Value to set for the title property.
    • setVersion

      public void setVersion(@Nullable Integer value)
      Sets the version property value. Integer indicating the current version of the terms. Incremented when an administrator makes a change to the terms and wishes to require users to re-accept the modified T&C policy.
      Parameters:
      value - Value to set for the version property.