Class DeviceAppManagementTask

    • Constructor Detail

      • DeviceAppManagementTask

        protected DeviceAppManagementTask()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class Entity
      • builderDeviceAppManagementTask

        public static DeviceAppManagementTask.Builder builderDeviceAppManagementTask()
        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
      • getAssignedTo

        public Optional<String> getAssignedTo()
        “The name or email of the admin this task is assigned to.”
        Returns:
        property assignedTo
      • withAssignedTo

        public DeviceAppManagementTask withAssignedTo​(String assignedTo)
        Returns an immutable copy of this with just the assignedTo 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 name or email of the admin this task is assigned to.”

        Parameters:
        assignedTo - new value of assignedTo field (as defined in service metadata)
        Returns:
        immutable copy of this with just the assignedTo field changed
      • withCategory

        public DeviceAppManagementTask withCategory​(DeviceAppManagementTaskCategory category)
        Returns an immutable copy of this with just the category 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 category.”

        Parameters:
        category - new value of category field (as defined in service metadata)
        Returns:
        immutable copy of this with just the category field changed
      • getCreatedDateTime

        public Optional<OffsetDateTime> getCreatedDateTime()
        “The created date.”
        Returns:
        property createdDateTime
      • withCreatedDateTime

        public DeviceAppManagementTask 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.

        “The created date.”

        Parameters:
        createdDateTime - new value of createdDateTime field (as defined in service metadata)
        Returns:
        immutable copy of this with just the createdDateTime field changed
      • getCreator

        public Optional<String> getCreator()
        “The email address of the creator.”
        Returns:
        property creator
      • withCreator

        public DeviceAppManagementTask withCreator​(String creator)
        Returns an immutable copy of this with just the creator 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 email address of the creator.”

        Parameters:
        creator - new value of creator field (as defined in service metadata)
        Returns:
        immutable copy of this with just the creator field changed
      • getCreatorNotes

        public Optional<String> getCreatorNotes()
        “Notes from the creator.”
        Returns:
        property creatorNotes
      • withCreatorNotes

        public DeviceAppManagementTask withCreatorNotes​(String creatorNotes)
        Returns an immutable copy of this with just the creatorNotes 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.

        “Notes from the creator.”

        Parameters:
        creatorNotes - new value of creatorNotes field (as defined in service metadata)
        Returns:
        immutable copy of this with just the creatorNotes field changed
      • getDescription

        public Optional<String> getDescription()
        “The description.”
        Returns:
        property description
      • withDescription

        public DeviceAppManagementTask 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.

        “The description.”

        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()
        “The name.”
        Returns:
        property displayName
      • withDisplayName

        public DeviceAppManagementTask 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.

        “The name.”

        Parameters:
        displayName - new value of displayName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the displayName field changed
      • getDueDateTime

        public Optional<OffsetDateTime> getDueDateTime()
        “The due date.”
        Returns:
        property dueDateTime
      • withDueDateTime

        public DeviceAppManagementTask withDueDateTime​(OffsetDateTime dueDateTime)
        Returns an immutable copy of this with just the dueDateTime 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 due date.”

        Parameters:
        dueDateTime - new value of dueDateTime field (as defined in service metadata)
        Returns:
        immutable copy of this with just the dueDateTime field changed
      • withPriority

        public DeviceAppManagementTask withPriority​(DeviceAppManagementTaskPriority priority)
        Returns an immutable copy of this with just the priority 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 priority.”

        Parameters:
        priority - new value of priority field (as defined in service metadata)
        Returns:
        immutable copy of this with just the priority field changed
      • withStatus

        public DeviceAppManagementTask withStatus​(DeviceAppManagementTaskStatus status)
        Returns an immutable copy of this with just the status 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 status.”

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