Class TermsAndConditions
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.TermsAndConditions
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class TermsAndConditions extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“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.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTermsAndConditions.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringacceptanceStatementprotected StringbodyTextprotected OffsetDateTimecreatedDateTimeprotected Stringdescriptionprotected StringdisplayNameprotected OffsetDateTimelastModifiedDateTimeprotected OffsetDateTimemodifiedDateTimeprotected List<String>roleScopeTagIdsprotected StringroleScopeTagIdsNextLinkprotected Stringtitleprotected Integerversion-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTermsAndConditions()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TermsAndConditions.BuilderbuilderTermsAndConditions()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getAcceptanceStatement()“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.TermsAndConditionsAcceptanceStatusCollectionRequestgetAcceptanceStatuses()“The list of acceptance statuses for this T&C policy.”TermsAndConditionsAssignmentCollectionRequestgetAssignments()“The list of assignments for this T&C policy.”Optional<String>getBodyText()“Administrator-supplied body text of the terms and conditions, typically the terms themselves.com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<OffsetDateTime>getCreatedDateTime()“DateTime the object was created.”Optional<String>getDescription()“Administrator-supplied description of the T&C policy.”Optional<String>getDisplayName()“Administrator-supplied name for the T&C policy.”TermsAndConditionsGroupAssignmentCollectionRequestgetGroupAssignments()“The list of group assignments for this T&C policy.”Optional<OffsetDateTime>getLastModifiedDateTime()“DateTime the object was last modified.”Optional<OffsetDateTime>getModifiedDateTime()“DateTime the object was last modified.”com.github.davidmoten.odata.client.CollectionPage<String>getRoleScopeTagIds()“List of Scope Tags for this Entity instance.”com.github.davidmoten.odata.client.CollectionPage<String>getRoleScopeTagIds(com.github.davidmoten.odata.client.HttpRequestOptions options)“List of Scope Tags for this Entity instance.”Optional<String>getTitle()“Administrator-supplied title of the terms and conditions.com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<Integer>getVersion()“Integer indicating the current version of the terms.StringodataTypeName()TermsAndConditionspatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)TermsAndConditionsput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()TermsAndConditionswithAcceptanceStatement(String acceptanceStatement)Returns an immutable copy ofthiswith just theacceptanceStatementfield changed.TermsAndConditionswithBodyText(String bodyText)Returns an immutable copy ofthiswith just thebodyTextfield changed.TermsAndConditionswithCreatedDateTime(OffsetDateTime createdDateTime)Returns an immutable copy ofthiswith just thecreatedDateTimefield changed.TermsAndConditionswithDescription(String description)Returns an immutable copy ofthiswith just thedescriptionfield changed.TermsAndConditionswithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.TermsAndConditionswithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Returns an immutable copy ofthiswith just thelastModifiedDateTimefield changed.TermsAndConditionswithModifiedDateTime(OffsetDateTime modifiedDateTime)Returns an immutable copy ofthiswith just themodifiedDateTimefield changed.TermsAndConditionswithRoleScopeTagIds(List<String> roleScopeTagIds)Returns an immutable copy ofthiswith just theroleScopeTagIdsfield changed.TermsAndConditionswithTitle(String title)Returns an immutable copy ofthiswith just thetitlefield changed.TermsAndConditionswithUnmappedField(String name, String value)TermsAndConditionswithVersion(Integer version)Returns an immutable copy ofthiswith just theversionfield changed.
-
-
-
Field Detail
-
acceptanceStatement
protected String acceptanceStatement
-
bodyText
protected String bodyText
-
createdDateTime
protected OffsetDateTime createdDateTime
-
description
protected String description
-
displayName
protected String displayName
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
modifiedDateTime
protected OffsetDateTime modifiedDateTime
-
roleScopeTagIdsNextLink
protected String roleScopeTagIdsNextLink
-
title
protected String title
-
version
protected Integer version
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderTermsAndConditions
public static TermsAndConditions.Builder builderTermsAndConditions()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
getAcceptanceStatement
public Optional<String> getAcceptanceStatement()
“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:
- property acceptanceStatement
-
withAcceptanceStatement
public TermsAndConditions withAcceptanceStatement(String acceptanceStatement)
Returns an immutable copy ofthiswith just theacceptanceStatementfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“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:
acceptanceStatement- new value ofacceptanceStatementfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theacceptanceStatementfield changed
-
getBodyText
public Optional<String> getBodyText()
“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:
- property bodyText
-
withBodyText
public TermsAndConditions withBodyText(String bodyText)
Returns an immutable copy ofthiswith just thebodyTextfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“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:
bodyText- new value ofbodyTextfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thebodyTextfield changed
-
getCreatedDateTime
public Optional<OffsetDateTime> getCreatedDateTime()
“DateTime the object was created.”- Returns:
- property createdDateTime
-
withCreatedDateTime
public TermsAndConditions withCreatedDateTime(OffsetDateTime createdDateTime)
Returns an immutable copy ofthiswith just thecreatedDateTimefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“DateTime the object was created.”
- Parameters:
createdDateTime- new value ofcreatedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecreatedDateTimefield changed
-
getDescription
public Optional<String> getDescription()
“Administrator-supplied description of the T&C policy.”- Returns:
- property description
-
withDescription
public TermsAndConditions withDescription(String description)
Returns an immutable copy ofthiswith just thedescriptionfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“Administrator-supplied description of the T&C policy.”
- Parameters:
description- new value ofdescriptionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedescriptionfield changed
-
getDisplayName
public Optional<String> getDisplayName()
“Administrator-supplied name for the T&C policy.”- Returns:
- property displayName
-
withDisplayName
public TermsAndConditions withDisplayName(String displayName)
Returns an immutable copy ofthiswith just thedisplayNamefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“Administrator-supplied name for the T&C policy.”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
“DateTime the object was last modified.”- Returns:
- property lastModifiedDateTime
-
withLastModifiedDateTime
public TermsAndConditions withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
Returns an immutable copy ofthiswith just thelastModifiedDateTimefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“DateTime the object was last modified.”
- Parameters:
lastModifiedDateTime- new value oflastModifiedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastModifiedDateTimefield changed
-
getModifiedDateTime
public Optional<OffsetDateTime> getModifiedDateTime()
“DateTime the object was last modified.”- Returns:
- property modifiedDateTime
-
withModifiedDateTime
public TermsAndConditions withModifiedDateTime(OffsetDateTime modifiedDateTime)
Returns an immutable copy ofthiswith just themodifiedDateTimefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“DateTime the object was last modified.”
- Parameters:
modifiedDateTime- new value ofmodifiedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themodifiedDateTimefield changed
-
getRoleScopeTagIds
public com.github.davidmoten.odata.client.CollectionPage<String> getRoleScopeTagIds()
“List of Scope Tags for this Entity instance.”- Returns:
- property roleScopeTagIds
-
withRoleScopeTagIds
public TermsAndConditions withRoleScopeTagIds(List<String> roleScopeTagIds)
Returns an immutable copy ofthiswith just theroleScopeTagIdsfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“List of Scope Tags for this Entity instance.”
- Parameters:
roleScopeTagIds- new value ofroleScopeTagIdsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theroleScopeTagIdsfield changed
-
getRoleScopeTagIds
public com.github.davidmoten.odata.client.CollectionPage<String> getRoleScopeTagIds(com.github.davidmoten.odata.client.HttpRequestOptions options)
“List of Scope Tags for this Entity instance.”- Parameters:
options- specify connect and read timeouts- Returns:
- property roleScopeTagIds
-
getTitle
public Optional<String> getTitle()
“Administrator-supplied title of the terms and conditions. This is shown to the user on prompts to accept the T&C policy.”- Returns:
- property title
-
withTitle
public TermsAndConditions withTitle(String title)
Returns an immutable copy ofthiswith just thetitlefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Administrator-supplied title of the terms and conditions. This is shown to the user on prompts to accept the T&C policy.”
- Parameters:
title- new value oftitlefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thetitlefield changed
-
getVersion
public Optional<Integer> getVersion()
“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:
- property version
-
withVersion
public TermsAndConditions withVersion(Integer version)
Returns an immutable copy ofthiswith just theversionfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“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:
version- new value ofversionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theversionfield changed
-
withUnmappedField
public TermsAndConditions withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getAcceptanceStatuses
public TermsAndConditionsAcceptanceStatusCollectionRequest getAcceptanceStatuses()
“The list of acceptance statuses for this T&C policy.”- Returns:
- navigational property acceptanceStatuses
-
getAssignments
public TermsAndConditionsAssignmentCollectionRequest getAssignments()
“The list of assignments for this T&C policy.”- Returns:
- navigational property assignments
-
getGroupAssignments
public TermsAndConditionsGroupAssignmentCollectionRequest getGroupAssignments()
“The list of group assignments for this T&C policy.”- Returns:
- navigational property groupAssignments
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public TermsAndConditions patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public TermsAndConditions put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-