Class AndroidForWorkNineWorkEasConfiguration

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataEntityType, com.github.davidmoten.odata.client.ODataType

    public class AndroidForWorkNineWorkEasConfiguration
    extends AndroidForWorkEasEmailProfileBase
    implements com.github.davidmoten.odata.client.ODataEntityType
    “By providing configurations in this profile you can instruct the Nine Work email client on Android For Work devices to communicate with an Exchange server and get email, contacts, calendar, tasks, and notes. Furthermore, you can also specify how much email to sync and how often the device should sync.”
    • Field Detail

      • syncCalendar

        protected Boolean syncCalendar
      • syncContacts

        protected Boolean syncContacts
      • syncTasks

        protected Boolean syncTasks
    • Constructor Detail

      • AndroidForWorkNineWorkEasConfiguration

        protected AndroidForWorkNineWorkEasConfiguration()
    • Method Detail

      • builderAndroidForWorkNineWorkEasConfiguration

        public static AndroidForWorkNineWorkEasConfiguration.Builder builderAndroidForWorkNineWorkEasConfiguration()
        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 AndroidForWorkEasEmailProfileBase
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class AndroidForWorkEasEmailProfileBase
      • getSyncCalendar

        public Optional<Boolean> getSyncCalendar()
        “Toggles syncing the calendar. If set to false the calendar is turned off on the device.”
        Returns:
        property syncCalendar
      • withSyncCalendar

        public AndroidForWorkNineWorkEasConfiguration withSyncCalendar​(Boolean syncCalendar)
        Returns an immutable copy of this with just the syncCalendar 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.

        “Toggles syncing the calendar. If set to false the calendar is turned off on the device.”

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

        public Optional<Boolean> getSyncContacts()
        “Toggles syncing contacts. If set to false contacts are turned off on the device.”
        Returns:
        property syncContacts
      • withSyncContacts

        public AndroidForWorkNineWorkEasConfiguration withSyncContacts​(Boolean syncContacts)
        Returns an immutable copy of this with just the syncContacts 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.

        “Toggles syncing contacts. If set to false contacts are turned off on the device.”

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

        public Optional<Boolean> getSyncTasks()
        “Toggles syncing tasks. If set to false tasks are turned off on the device.”
        Returns:
        property syncTasks
      • withSyncTasks

        public AndroidForWorkNineWorkEasConfiguration withSyncTasks​(Boolean syncTasks)
        Returns an immutable copy of this with just the syncTasks 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.

        “Toggles syncing tasks. If set to false tasks are turned off on the device.”

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

        public AndroidForWorkNineWorkEasConfiguration 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 AndroidForWorkEasEmailProfileBase
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected