Class AndroidForWorkEasEmailProfileBase

    • Constructor Detail

      • AndroidForWorkEasEmailProfileBase

        protected AndroidForWorkEasEmailProfileBase()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class DeviceConfiguration
      • 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
      • getAuthenticationMethod

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

        public AndroidForWorkEasEmailProfileBase 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
      • getDurationOfEmailToSync

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

        public AndroidForWorkEasEmailProfileBase 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 AndroidForWorkEasEmailProfileBase 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
      • getHostName

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

        public AndroidForWorkEasEmailProfileBase 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 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 AndroidForWorkEasEmailProfileBase 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
      • 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 AndroidForWorkEasEmailProfileBase 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
      • 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 AndroidForWorkEasEmailProfileBase 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 AndroidForWorkEasEmailProfileBase 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