public class TermsAndConditionsAcceptanceStatus extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
| Modifier and Type | Class and Description |
|---|---|
static class |
TermsAndConditionsAcceptanceStatus.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected OffsetDateTime |
acceptedDateTime |
protected Integer |
acceptedVersion |
protected String |
userDisplayName |
protected String |
userPrincipalName |
changedFields, contextPath, id, odataType, unmappedFields| Modifier | Constructor and Description |
|---|---|
protected |
TermsAndConditionsAcceptanceStatus() |
| Modifier and Type | Method and Description |
|---|---|
static TermsAndConditionsAcceptanceStatus.Builder |
builderTermsAndConditionsAcceptanceStatus()
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.ChangedFields |
getChangedFields() |
TermsAndConditionsRequest |
getTermsAndConditions()
“Navigation link to the terms and conditions that are assigned.”
|
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
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.”
|
String |
odataTypeName() |
TermsAndConditionsAcceptanceStatus |
patch()
Submits only changed fields for update and returns an
immutable copy of
this with changed fields reset. |
void |
postInject(boolean addKeysToContextPath) |
TermsAndConditionsAcceptanceStatus |
put()
Submits all fields for update and returns an immutable copy of
this
with changed fields reset (they were ignored anyway). |
String |
toString() |
TermsAndConditionsAcceptanceStatus |
withAcceptedDateTime(OffsetDateTime acceptedDateTime)
Returns an immutable copy of
this with just the acceptedDateTime
field changed. |
TermsAndConditionsAcceptanceStatus |
withAcceptedVersion(Integer acceptedVersion)
Returns an immutable copy of
this with just the acceptedVersion
field changed. |
TermsAndConditionsAcceptanceStatus |
withUserDisplayName(String userDisplayName)
Returns an immutable copy of
this with just the userDisplayName
field changed. |
TermsAndConditionsAcceptanceStatus |
withUserPrincipalName(String userPrincipalName)
Returns an immutable copy of
this with just the userPrincipalName
field changed. |
protected String userDisplayName
protected Integer acceptedVersion
protected OffsetDateTime acceptedDateTime
protected String userPrincipalName
protected TermsAndConditionsAcceptanceStatus()
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypeodataTypeName in class Entitypublic static TermsAndConditionsAcceptanceStatus.Builder builderTermsAndConditionsAcceptanceStatus()
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityTypegetChangedFields in class Entitypublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepostInject in class Entitypublic Optional<String> getUserDisplayName()
public TermsAndConditionsAcceptanceStatus withUserDisplayName(String userDisplayName)
this with just the userDisplayName
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
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.”
userDisplayName - new value of userDisplayName field (as defined in service metadata)this with just the userDisplayName field changedpublic Optional<Integer> getAcceptedVersion()
public TermsAndConditionsAcceptanceStatus withAcceptedVersion(Integer acceptedVersion)
this with just the acceptedVersion
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
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.”
acceptedVersion - new value of acceptedVersion field (as defined in service metadata)this with just the acceptedVersion field changedpublic Optional<OffsetDateTime> getAcceptedDateTime()
public TermsAndConditionsAcceptanceStatus withAcceptedDateTime(OffsetDateTime acceptedDateTime)
this with just the acceptedDateTime
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
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.”
acceptedDateTime - new value of acceptedDateTime field (as defined in service metadata)this with just the acceptedDateTime field changedpublic Optional<String> getUserPrincipalName()
public TermsAndConditionsAcceptanceStatus withUserPrincipalName(String userPrincipalName)
this with just the userPrincipalName
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
patch() is called (if available)on the returned object only the changed fields
are submitted.
“The userPrincipalName of the User that accepted the term.”
userPrincipalName - new value of userPrincipalName field (as defined in service metadata)this with just the userPrincipalName field changedpublic TermsAndConditionsRequest getTermsAndConditions()
public com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypegetUnmappedFields in class Entitypublic TermsAndConditionsAcceptanceStatus patch()
this with changed fields reset.public TermsAndConditionsAcceptanceStatus put()
this
with changed fields reset (they were ignored anyway).Copyright © 2018–2020. All rights reserved.