Class WindowsPhoneEASEmailProfileConfiguration

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

    public class WindowsPhoneEASEmailProfileConfiguration
    extends EasEmailProfileConfigurationBase
    implements com.github.davidmoten.odata.client.ODataEntityType
    “By providing configurations in this profile you can instruct the native email client on Windows Phone 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.”
    • Field Detail

      • accountName

        protected String accountName
      • applyOnlyToWindowsPhone81

        protected Boolean applyOnlyToWindowsPhone81
      • hostName

        protected String hostName
      • requireSsl

        protected Boolean requireSsl
      • syncCalendar

        protected Boolean syncCalendar
      • syncContacts

        protected Boolean syncContacts
      • syncTasks

        protected Boolean syncTasks
    • Constructor Detail

      • WindowsPhoneEASEmailProfileConfiguration

        protected WindowsPhoneEASEmailProfileConfiguration()
    • Method Detail

      • builderWindowsPhoneEASEmailProfileConfiguration

        public static WindowsPhoneEASEmailProfileConfiguration.Builder builderWindowsPhoneEASEmailProfileConfiguration()
        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 WindowsPhoneEASEmailProfileConfiguration 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
      • getApplyOnlyToWindowsPhone81

        public Optional<Boolean> getApplyOnlyToWindowsPhone81()
        “Value indicating whether this policy only applies to Windows 8.1. This property is read-only.”

        Org.OData.Core.V1.Computed

        true

        Org.OData.Core.V1.Permissions

        Returns:
        property applyOnlyToWindowsPhone81
      • withApplyOnlyToWindowsPhone81

        public WindowsPhoneEASEmailProfileConfiguration withApplyOnlyToWindowsPhone81​(Boolean applyOnlyToWindowsPhone81)
        Returns an immutable copy of this with just the applyOnlyToWindowsPhone81 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.

        “Value indicating whether this policy only applies to Windows 8.1. This property is read-only.”

        Org.OData.Core.V1.Computed

        true

        Org.OData.Core.V1.Permissions

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

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

        public WindowsPhoneEASEmailProfileConfiguration 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 WindowsPhoneEASEmailProfileConfiguration 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 WindowsPhoneEASEmailProfileConfiguration 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 WindowsPhoneEASEmailProfileConfiguration 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 WindowsPhoneEASEmailProfileConfiguration 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 WindowsPhoneEASEmailProfileConfiguration 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 WindowsPhoneEASEmailProfileConfiguration 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 WindowsPhoneEASEmailProfileConfiguration 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
      • put

        public WindowsPhoneEASEmailProfileConfiguration 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