Class AndroidEasEmailProfileConfiguration

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

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

      • AndroidEasEmailProfileConfiguration

        protected AndroidEasEmailProfileConfiguration()
    • Method Detail

      • odataTypeName

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

        public static AndroidEasEmailProfileConfiguration.Builder builderAndroidEasEmailProfileConfiguration()
        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 DeviceConfiguration
      • postInject

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

        public Optional<String> getAccountName()
        “Exchange ActiveSync account name, displayed to users as name of EAS (this) profile.”
        Returns:
        property accountName
      • withAccountName

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

        “Exchange ActiveSync account name, displayed to users as name of EAS (this) profile.”

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

        public Optional<EasAuthenticationMethod> getAuthenticationMethod()
        “Authentication method for Exchange ActiveSync.”
        Returns:
        property authenticationMethod
      • withAuthenticationMethod

        public AndroidEasEmailProfileConfiguration withAuthenticationMethod​(EasAuthenticationMethod authenticationMethod)
        Returns an immutable copy of this with just the authenticationMethod 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.

        “Authentication method for Exchange ActiveSync.”

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

        public Optional<String> getCustomDomainName()
        “Custom domain name value used while generating an email profile before installing on the device.”
        Returns:
        property customDomainName
      • withCustomDomainName

        public AndroidEasEmailProfileConfiguration withCustomDomainName​(String customDomainName)
        Returns an immutable copy of this with just the customDomainName 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.

        “Custom domain name value used while generating an email profile before installing on the device.”

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

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

        public AndroidEasEmailProfileConfiguration 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 time email should be synced to.”

        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 AndroidEasEmailProfileConfiguration 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 AndroidEasEmailProfileConfiguration 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 (URL) that the native mail app connects to.”
        Returns:
        property hostName
      • withHostName

        public AndroidEasEmailProfileConfiguration 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 (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
      • getRequireSmime

        public Optional<Boolean> getRequireSmime()
        “Indicates whether or not to use S/MIME certificate.”
        Returns:
        property requireSmime
      • withRequireSmime

        public AndroidEasEmailProfileConfiguration withRequireSmime​(Boolean requireSmime)
        Returns an immutable copy of this with just the requireSmime 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 S/MIME certificate.”

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

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

        public AndroidEasEmailProfileConfiguration 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()
        “Toggles syncing the calendar. If set to false calendar is turned off on the device.”
        Returns:
        property syncCalendar
      • withSyncCalendar

        public AndroidEasEmailProfileConfiguration 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 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 AndroidEasEmailProfileConfiguration 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
      • getSyncNotes

        public Optional<Boolean> getSyncNotes()
        “Toggles syncing notes. If set to false notes are turned off on the device.”
        Returns:
        property syncNotes
      • withSyncNotes

        public AndroidEasEmailProfileConfiguration withSyncNotes​(Boolean syncNotes)
        Returns an immutable copy of this with just the syncNotes 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 notes. If set to false notes are turned off on the device.”

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

        public Optional<DomainNameSource> getUserDomainNameSource()
        “UserDomainname attribute that is picked from AAD and injected into this profile before installing on the device.”
        Returns:
        property userDomainNameSource
      • withUserDomainNameSource

        public AndroidEasEmailProfileConfiguration withUserDomainNameSource​(DomainNameSource userDomainNameSource)
        Returns an immutable copy of this with just the userDomainNameSource 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.

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

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

        public Optional<AndroidUsernameSource> getUsernameSource()
        “Username attribute that is picked from AAD and injected into this profile before installing on the device.”
        Returns:
        property usernameSource
      • withUsernameSource

        public AndroidEasEmailProfileConfiguration withUsernameSource​(AndroidUsernameSource usernameSource)
        Returns an immutable copy of this with just the usernameSource 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.

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

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

        public AndroidCertificateProfileBaseRequest getSmimeSigningCertificate()
        “S/MIME signing certificate.”
        Returns:
        navigational property smimeSigningCertificate
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class DeviceConfiguration
      • patch

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