Package com.microsoft.graph.models
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.
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TermsAndConditions
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the acceptanceStatement property value.Gets the acceptanceStatuses property value.Gets the assignments property value.Gets the bodyText property value.Gets the createdDateTime property value.Gets the description property value.Gets the displayName property value.The deserialization information for the current modelGets the lastModifiedDateTime property value.getTitle()
Gets the title property value.Gets the version property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setAcceptanceStatement
(String value) Sets the acceptanceStatement property value.void
Sets the acceptanceStatuses property value.void
Sets the assignments property value.void
setBodyText
(String value) Sets the bodyText property value.void
setCreatedDateTime
(OffsetDateTime value) Sets the createdDateTime property value.void
setDescription
(String value) Sets the description property value.void
setDisplayName
(String value) Sets the displayName property value.void
Sets the lastModifiedDateTime property value.void
Sets the title property value.void
setVersion
(Integer value) Sets the version property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
TermsAndConditions
public TermsAndConditions()Instantiates a newTermsAndConditions
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
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
Gets the acceptanceStatuses property value. The list of acceptance statuses for this T&C policy.- Returns:
- a
List<TermsAndConditionsAcceptanceStatus>
-
getAssignments
Gets the assignments property value. The list of assignments for this T&C policy.- Returns:
- a
List<TermsAndConditionsAssignment>
-
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
Gets the createdDateTime property value. DateTime the object was created.- Returns:
- a
OffsetDateTime
-
getDescription
Gets the description property value. Administrator-supplied description of the T&C policy.- Returns:
- a
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 interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getLastModifiedDateTime
Gets the lastModifiedDateTime property value. DateTime the object was last modified.- Returns:
- a
OffsetDateTime
-
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
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 -
setAcceptanceStatement
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
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
Sets the assignments property value. The list of assignments for this T&C policy.- Parameters:
value
- Value to set for the assignments property.
-
setBodyText
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
Sets the createdDateTime property value. DateTime the object was created.- Parameters:
value
- Value to set for the createdDateTime property.
-
setDescription
Sets the description property value. Administrator-supplied description of the T&C policy.- Parameters:
value
- Value to set for the description property.
-
setDisplayName
Sets the displayName property value. Administrator-supplied name for the T&C policy.- Parameters:
value
- Value to set for the displayName property.
-
setLastModifiedDateTime
Sets the lastModifiedDateTime property value. DateTime the object was last modified.- Parameters:
value
- Value to set for the lastModifiedDateTime property.
-
setTitle
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
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.
-