Package odata.msgraph.client.beta.entity
Class TermsAndConditionsAcceptanceStatus
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.TermsAndConditionsAcceptanceStatus
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class TermsAndConditionsAcceptanceStatus extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“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.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTermsAndConditionsAcceptanceStatus.Builder
-
Field Summary
Fields Modifier and Type Field Description protected OffsetDateTimeacceptedDateTimeprotected IntegeracceptedVersionprotected StringuserDisplayNameprotected StringuserPrincipalName-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTermsAndConditionsAcceptanceStatus()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TermsAndConditionsAcceptanceStatus.BuilderbuilderTermsAndConditionsAcceptanceStatus()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<OffsetDateTime>getAcceptedDateTime()“DateTime when the terms were last accepted by the user.”Optional<Integer>getAcceptedVersion()“Most recent version number of the T&C accepted by the user.”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()TermsAndConditionsRequestgetTermsAndConditions()“Navigation link to the terms and conditions that are assigned.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getUserDisplayName()“Display name of the user whose acceptance the entity represents.”Optional<String>getUserPrincipalName()“The userPrincipalName of the User that accepted the term.”StringodataTypeName()TermsAndConditionsAcceptanceStatuspatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)TermsAndConditionsAcceptanceStatusput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()TermsAndConditionsAcceptanceStatuswithAcceptedDateTime(OffsetDateTime acceptedDateTime)Returns an immutable copy ofthiswith just theacceptedDateTimefield changed.TermsAndConditionsAcceptanceStatuswithAcceptedVersion(Integer acceptedVersion)Returns an immutable copy ofthiswith just theacceptedVersionfield changed.TermsAndConditionsAcceptanceStatuswithUnmappedField(String name, String value)TermsAndConditionsAcceptanceStatuswithUserDisplayName(String userDisplayName)Returns an immutable copy ofthiswith just theuserDisplayNamefield changed.TermsAndConditionsAcceptanceStatuswithUserPrincipalName(String userPrincipalName)Returns an immutable copy ofthiswith just theuserPrincipalNamefield changed.
-
-
-
Field Detail
-
acceptedDateTime
protected OffsetDateTime acceptedDateTime
-
acceptedVersion
protected Integer acceptedVersion
-
userDisplayName
protected String userDisplayName
-
userPrincipalName
protected String userPrincipalName
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderTermsAndConditionsAcceptanceStatus
public static TermsAndConditionsAcceptanceStatus.Builder builderTermsAndConditionsAcceptanceStatus()
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
-
getAcceptedDateTime
public Optional<OffsetDateTime> getAcceptedDateTime()
“DateTime when the terms were last accepted by the user.”- Returns:
- property acceptedDateTime
-
withAcceptedDateTime
public TermsAndConditionsAcceptanceStatus withAcceptedDateTime(OffsetDateTime acceptedDateTime)
Returns an immutable copy ofthiswith just theacceptedDateTimefield 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 when the terms were last accepted by the user.”
- Parameters:
acceptedDateTime- new value ofacceptedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theacceptedDateTimefield changed
-
getAcceptedVersion
public Optional<Integer> getAcceptedVersion()
“Most recent version number of the T&C accepted by the user.”- Returns:
- property acceptedVersion
-
withAcceptedVersion
public TermsAndConditionsAcceptanceStatus withAcceptedVersion(Integer acceptedVersion)
Returns an immutable copy ofthiswith just theacceptedVersionfield 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.“Most recent version number of the T&C accepted by the user.”
- Parameters:
acceptedVersion- new value ofacceptedVersionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theacceptedVersionfield changed
-
getUserDisplayName
public Optional<String> getUserDisplayName()
“Display name of the user whose acceptance the entity represents.”- Returns:
- property userDisplayName
-
withUserDisplayName
public TermsAndConditionsAcceptanceStatus withUserDisplayName(String userDisplayName)
Returns an immutable copy ofthiswith just theuserDisplayNamefield 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.“Display name of the user whose acceptance the entity represents.”
- Parameters:
userDisplayName- new value ofuserDisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserDisplayNamefield changed
-
getUserPrincipalName
public Optional<String> getUserPrincipalName()
“The userPrincipalName of the User that accepted the term.”- Returns:
- property userPrincipalName
-
withUserPrincipalName
public TermsAndConditionsAcceptanceStatus withUserPrincipalName(String userPrincipalName)
Returns an immutable copy ofthiswith just theuserPrincipalNamefield 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.“The userPrincipalName of the User that accepted the term.”
- Parameters:
userPrincipalName- new value ofuserPrincipalNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserPrincipalNamefield changed
-
withUnmappedField
public TermsAndConditionsAcceptanceStatus withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getTermsAndConditions
public TermsAndConditionsRequest getTermsAndConditions()
“Navigation link to the terms and conditions that are assigned.”- Returns:
- navigational property termsAndConditions
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public TermsAndConditionsAcceptanceStatus patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public TermsAndConditionsAcceptanceStatus put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-