Class Windows10EasEmailProfileConfiguration

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

    public class Windows10EasEmailProfileConfiguration
    extends EasEmailProfileConfigurationBase
    implements com.github.davidmoten.odata.client.ODataEntityType
    “By providing configurations in this profile you can instruct the native email client (Outlook) on Windows 10 devices to communicate with an Exchange server and get email, contacts, calendar, and tasks. Furthermore, you can also specify how much email to sync and how often the device should sync.”
    • Constructor Detail

      • Windows10EasEmailProfileConfiguration

        protected Windows10EasEmailProfileConfiguration()
    • Method Detail

      • builderWindows10EasEmailProfileConfiguration

        public static Windows10EasEmailProfileConfiguration.Builder builderWindows10EasEmailProfileConfiguration()
        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 EasEmailProfileConfigurationBase
      • postInject

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

        public Optional<String> getAccountName()
        “Account name.”
        Returns:
        property accountName
      • withAccountName

        public Windows10EasEmailProfileConfiguration withAccountName​(String accountName)
        Returns an immutable copy of this with just the accountName 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.

        “Account name.”

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

        public Optional<EmailSyncDuration> getDurationOfEmailToSync()
        “Duration of email to sync.”
        Returns:
        property durationOfEmailToSync
      • withDurationOfEmailToSync

        public Windows10EasEmailProfileConfiguration withDurationOfEmailToSync​(EmailSyncDuration durationOfEmailToSync)
        Returns an immutable copy of this with just the durationOfEmailToSync 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.

        “Duration of email to sync.”

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

        public Optional<UserEmailSource> getEmailAddressSource()
        “Email attribute that is picked from AAD and injected into this profile before installing on the device.”
        Returns:
        property emailAddressSource
      • withEmailAddressSource

        public Windows10EasEmailProfileConfiguration withEmailAddressSource​(UserEmailSource emailAddressSource)
        Returns an immutable copy of this with just the emailAddressSource 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.

        “Email attribute that is picked from AAD and injected into this profile before installing on the device.”

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

        public Optional<EmailSyncSchedule> getEmailSyncSchedule()
        “Email sync schedule.”
        Returns:
        property emailSyncSchedule
      • withEmailSyncSchedule

        public Windows10EasEmailProfileConfiguration withEmailSyncSchedule​(EmailSyncSchedule emailSyncSchedule)
        Returns an immutable copy of this with just the emailSyncSchedule 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.

        “Email sync schedule.”

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

        public Optional<String> getHostName()
        “Exchange location that (URL) that the native mail app connects to.”
        Returns:
        property hostName
      • withHostName

        public Windows10EasEmailProfileConfiguration withHostName​(String hostName)
        Returns an immutable copy of this with just the hostName 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.

        “Exchange location that (URL) that the native mail app connects to.”

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

        public Optional<Boolean> getRequireSsl()
        “Indicates whether or not to use SSL.”
        Returns:
        property requireSsl
      • withRequireSsl

        public Windows10EasEmailProfileConfiguration withRequireSsl​(Boolean requireSsl)
        Returns an immutable copy of this with just the requireSsl 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.

        “Indicates whether or not to use SSL.”

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

        public Optional<Boolean> getSyncCalendar()
        “Whether or not to sync the calendar.”
        Returns:
        property syncCalendar
      • withSyncCalendar

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

        “Whether or not to sync the calendar.”

        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()
        “Whether or not to sync contacts.”
        Returns:
        property syncContacts
      • withSyncContacts

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

        “Whether or not to sync contacts.”

        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()
        “Whether or not to sync tasks.”
        Returns:
        property syncTasks
      • withSyncTasks

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

        “Whether or not to sync tasks.”

        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 EasEmailProfileConfigurationBase
      • patch

        public Windows10EasEmailProfileConfiguration patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class EasEmailProfileConfigurationBase
        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 Windows10EasEmailProfileConfiguration 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 EasEmailProfileConfigurationBase
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected