Class 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.”
    • Field Detail

      • acceptedVersion

        protected Integer acceptedVersion
      • userDisplayName

        protected String userDisplayName
      • userPrincipalName

        protected String userPrincipalName
    • Constructor Detail

      • TermsAndConditionsAcceptanceStatus

        protected TermsAndConditionsAcceptanceStatus()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class Entity
      • 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:
        getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityType
        Overrides:
        getChangedFields in class Entity
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class Entity
      • 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 of 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.”

        Parameters:
        acceptedDateTime - new value of acceptedDateTime field (as defined in service metadata)
        Returns:
        immutable copy of this with just the acceptedDateTime field 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 of 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.”

        Parameters:
        acceptedVersion - new value of acceptedVersion field (as defined in service metadata)
        Returns:
        immutable copy of this with just the acceptedVersion field 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 of 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.”

        Parameters:
        userDisplayName - new value of userDisplayName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the userDisplayName field 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 of 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.”

        Parameters:
        userPrincipalName - new value of userPrincipalName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the userPrincipalName field changed
      • 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:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class Entity
      • patch

        public TermsAndConditionsAcceptanceStatus patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • put

        public TermsAndConditionsAcceptanceStatus put()
        Submits all fields for update and returns an immutable copy of this with changed fields reset (they were ignored anyway).
        Overrides:
        put in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected