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

      • acceptanceStatement

        protected String acceptanceStatement
      • bodyText

        protected String bodyText
      • description

        protected String description
      • displayName

        protected String displayName
      • roleScopeTagIds

        protected List<String> roleScopeTagIds
      • roleScopeTagIdsNextLink

        protected String roleScopeTagIdsNextLink
      • title

        protected String title
      • version

        protected Integer version
    • Constructor Detail

      • TermsAndConditions

        protected TermsAndConditions()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class Entity
      • 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:
        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
      • 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 of this with just the acceptanceStatement 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.

        “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 of acceptanceStatement field (as defined in service metadata)
        Returns:
        immutable copy of this with just the acceptanceStatement field 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 of this with just the bodyText 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.

        “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 of bodyText field (as defined in service metadata)
        Returns:
        immutable copy of this with just the bodyText field changed
      • getCreatedDateTime

        public Optional<OffsetDateTime> getCreatedDateTime()
        “DateTime the object was created.”
        Returns:
        property createdDateTime
      • withCreatedDateTime

        public TermsAndConditions withCreatedDateTime​(OffsetDateTime createdDateTime)
        Returns an immutable copy of this with just the createdDateTime 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 the object was created.”

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

        “Administrator-supplied description of the T&C policy.”

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

        “Administrator-supplied name for the T&C policy.”

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

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

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

        “List of Scope Tags for this Entity instance.”

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

        “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 of title field (as defined in service metadata)
        Returns:
        immutable copy of this with just the title field 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 of this with just the version 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.

        “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 of version field (as defined in service metadata)
        Returns:
        immutable copy of this with just the version field changed
      • 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 TermsAndConditions 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 TermsAndConditions 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