Class AndroidEasEmailProfileConfiguration
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceConfiguration
-
- odata.msgraph.client.beta.entity.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.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAndroidEasEmailProfileConfiguration.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringaccountNameprotected EasAuthenticationMethodauthenticationMethodprotected StringcustomDomainNameprotected EmailSyncDurationdurationOfEmailToSyncprotected UserEmailSourceemailAddressSourceprotected EmailSyncScheduleemailSyncScheduleprotected StringhostNameprotected BooleanrequireSmimeprotected BooleanrequireSslprotected BooleansyncCalendarprotected BooleansyncContactsprotected BooleansyncNotesprotected BooleansyncTasksprotected DomainNameSourceuserDomainNameSourceprotected AndroidUsernameSourceusernameSource-
Fields inherited from class odata.msgraph.client.beta.entity.DeviceConfiguration
createdDateTime, description, deviceManagementApplicabilityRuleDeviceMode, deviceManagementApplicabilityRuleOsEdition, deviceManagementApplicabilityRuleOsVersion, displayName, lastModifiedDateTime, roleScopeTagIds, roleScopeTagIdsNextLink, supportsScopeTags, version
-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAndroidEasEmailProfileConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AndroidEasEmailProfileConfiguration.BuilderbuilderAndroidEasEmailProfileConfiguration()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getAccountName()“Exchange ActiveSync account name, displayed to users as name of EAS (this) profile.”Optional<EasAuthenticationMethod>getAuthenticationMethod()“Authentication method for Exchange ActiveSync.”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<String>getCustomDomainName()“Custom domain name value used while generating an email profile before installing on the device.”Optional<EmailSyncDuration>getDurationOfEmailToSync()“Duration of time email should be synced to.”Optional<UserEmailSource>getEmailAddressSource()“Email attribute that is picked from AAD and injected into this profile before installing on the device.”Optional<EmailSyncSchedule>getEmailSyncSchedule()“Email sync schedule.”Optional<String>getHostName()“Exchange location (URL) that the native mail app connects to.”AndroidCertificateProfileBaseRequestgetIdentityCertificate()“Identity certificate.”Optional<Boolean>getRequireSmime()“Indicates whether or not to use S/MIME certificate.”Optional<Boolean>getRequireSsl()“Indicates whether or not to use SSL.”AndroidCertificateProfileBaseRequestgetSmimeSigningCertificate()“S/MIME signing certificate.”Optional<Boolean>getSyncCalendar()“Toggles syncing the calendar.Optional<Boolean>getSyncContacts()“Toggles syncing contacts.Optional<Boolean>getSyncNotes()“Toggles syncing notes.Optional<Boolean>getSyncTasks()“Toggles syncing tasks.com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<DomainNameSource>getUserDomainNameSource()“UserDomainname attribute that is picked from AAD and injected into this profile before installing on the device.”Optional<AndroidUsernameSource>getUsernameSource()“Username attribute that is picked from AAD and injected into this profile before installing on the device.”StringodataTypeName()AndroidEasEmailProfileConfigurationpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)AndroidEasEmailProfileConfigurationput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()AndroidEasEmailProfileConfigurationwithAccountName(String accountName)Returns an immutable copy ofthiswith just theaccountNamefield changed.AndroidEasEmailProfileConfigurationwithAuthenticationMethod(EasAuthenticationMethod authenticationMethod)Returns an immutable copy ofthiswith just theauthenticationMethodfield changed.AndroidEasEmailProfileConfigurationwithCustomDomainName(String customDomainName)Returns an immutable copy ofthiswith just thecustomDomainNamefield changed.AndroidEasEmailProfileConfigurationwithDurationOfEmailToSync(EmailSyncDuration durationOfEmailToSync)Returns an immutable copy ofthiswith just thedurationOfEmailToSyncfield changed.AndroidEasEmailProfileConfigurationwithEmailAddressSource(UserEmailSource emailAddressSource)Returns an immutable copy ofthiswith just theemailAddressSourcefield changed.AndroidEasEmailProfileConfigurationwithEmailSyncSchedule(EmailSyncSchedule emailSyncSchedule)Returns an immutable copy ofthiswith just theemailSyncSchedulefield changed.AndroidEasEmailProfileConfigurationwithHostName(String hostName)Returns an immutable copy ofthiswith just thehostNamefield changed.AndroidEasEmailProfileConfigurationwithRequireSmime(Boolean requireSmime)Returns an immutable copy ofthiswith just therequireSmimefield changed.AndroidEasEmailProfileConfigurationwithRequireSsl(Boolean requireSsl)Returns an immutable copy ofthiswith just therequireSslfield changed.AndroidEasEmailProfileConfigurationwithSyncCalendar(Boolean syncCalendar)Returns an immutable copy ofthiswith just thesyncCalendarfield changed.AndroidEasEmailProfileConfigurationwithSyncContacts(Boolean syncContacts)Returns an immutable copy ofthiswith just thesyncContactsfield changed.AndroidEasEmailProfileConfigurationwithSyncNotes(Boolean syncNotes)Returns an immutable copy ofthiswith just thesyncNotesfield changed.AndroidEasEmailProfileConfigurationwithSyncTasks(Boolean syncTasks)Returns an immutable copy ofthiswith just thesyncTasksfield changed.AndroidEasEmailProfileConfigurationwithUnmappedField(String name, String value)AndroidEasEmailProfileConfigurationwithUserDomainNameSource(DomainNameSource userDomainNameSource)Returns an immutable copy ofthiswith just theuserDomainNameSourcefield changed.AndroidEasEmailProfileConfigurationwithUsernameSource(AndroidUsernameSource usernameSource)Returns an immutable copy ofthiswith just theusernameSourcefield changed.-
Methods inherited from class odata.msgraph.client.beta.entity.DeviceConfiguration
assign, assignedAccessMultiModeProfiles, getAssignments, getCreatedDateTime, getDescription, getDeviceManagementApplicabilityRuleDeviceMode, getDeviceManagementApplicabilityRuleOsEdition, getDeviceManagementApplicabilityRuleOsVersion, getDeviceSettingStateSummaries, getDeviceStatuses, getDeviceStatusOverview, getDisplayName, getGroupAssignments, getLastModifiedDateTime, getOmaSettingPlainTextValue, getRoleScopeTagIds, getRoleScopeTagIds, getSupportsScopeTags, getUserStatuses, getUserStatusOverview, getVersion, windowsPrivacyAccessControls, withCreatedDateTime, withDescription, withDeviceManagementApplicabilityRuleDeviceMode, withDeviceManagementApplicabilityRuleOsEdition, withDeviceManagementApplicabilityRuleOsVersion, withDisplayName, withLastModifiedDateTime, withRoleScopeTagIds, withSupportsScopeTags, withVersion
-
-
-
-
Field Detail
-
accountName
protected String accountName
-
authenticationMethod
protected EasAuthenticationMethod authenticationMethod
-
customDomainName
protected String customDomainName
-
durationOfEmailToSync
protected EmailSyncDuration durationOfEmailToSync
-
emailAddressSource
protected UserEmailSource emailAddressSource
-
emailSyncSchedule
protected EmailSyncSchedule emailSyncSchedule
-
hostName
protected String hostName
-
requireSmime
protected Boolean requireSmime
-
requireSsl
protected Boolean requireSsl
-
syncCalendar
protected Boolean syncCalendar
-
syncContacts
protected Boolean syncContacts
-
syncNotes
protected Boolean syncNotes
-
syncTasks
protected Boolean syncTasks
-
userDomainNameSource
protected DomainNameSource userDomainNameSource
-
usernameSource
protected AndroidUsernameSource usernameSource
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classDeviceConfiguration
-
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:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classDeviceConfiguration
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classDeviceConfiguration
-
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 ofthiswith just theaccountNamefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. 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 ofaccountNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theaccountNamefield changed
-
getAuthenticationMethod
public Optional<EasAuthenticationMethod> getAuthenticationMethod()
“Authentication method for Exchange ActiveSync.”- Returns:
- property authenticationMethod
-
withAuthenticationMethod
public AndroidEasEmailProfileConfiguration withAuthenticationMethod(EasAuthenticationMethod authenticationMethod)
Returns an immutable copy ofthiswith just theauthenticationMethodfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Authentication method for Exchange ActiveSync.”
- Parameters:
authenticationMethod- new value ofauthenticationMethodfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theauthenticationMethodfield 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 ofthiswith just thecustomDomainNamefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. 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 ofcustomDomainNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecustomDomainNamefield 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 ofthiswith just thedurationOfEmailToSyncfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofdurationOfEmailToSyncfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedurationOfEmailToSyncfield 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 ofthiswith just theemailAddressSourcefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofemailAddressSourcefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theemailAddressSourcefield changed
-
getEmailSyncSchedule
public Optional<EmailSyncSchedule> getEmailSyncSchedule()
“Email sync schedule.”- Returns:
- property emailSyncSchedule
-
withEmailSyncSchedule
public AndroidEasEmailProfileConfiguration withEmailSyncSchedule(EmailSyncSchedule emailSyncSchedule)
Returns an immutable copy ofthiswith just theemailSyncSchedulefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“Email sync schedule.”
- Parameters:
emailSyncSchedule- new value ofemailSyncSchedulefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theemailSyncSchedulefield 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 ofthiswith just thehostNamefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofhostNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thehostNamefield 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 ofthiswith just therequireSmimefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. 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 ofrequireSmimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just therequireSmimefield 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 ofthiswith just therequireSslfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofrequireSslfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just therequireSslfield 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 ofthiswith just thesyncCalendarfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. 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 ofsyncCalendarfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesyncCalendarfield 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 ofthiswith just thesyncContactsfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. 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 ofsyncContactsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesyncContactsfield 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 ofthiswith just thesyncNotesfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofsyncNotesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesyncNotesfield 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 ofthiswith just thesyncTasksfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofsyncTasksfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesyncTasksfield 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 ofthiswith just theuserDomainNameSourcefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofuserDomainNameSourcefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserDomainNameSourcefield 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 ofthiswith just theusernameSourcefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. 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 ofusernameSourcefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theusernameSourcefield changed
-
withUnmappedField
public AndroidEasEmailProfileConfiguration withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classDeviceConfiguration
-
getIdentityCertificate
public AndroidCertificateProfileBaseRequest getIdentityCertificate()
“Identity certificate.”- Returns:
- navigational property identityCertificate
-
getSmimeSigningCertificate
public AndroidCertificateProfileBaseRequest getSmimeSigningCertificate()
“S/MIME signing certificate.”- Returns:
- navigational property smimeSigningCertificate
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classDeviceConfiguration
-
patch
public AndroidEasEmailProfileConfiguration patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classDeviceConfiguration- Returns:
- a copy of
thiswith 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 ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classDeviceConfiguration- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
toString
public String toString()
- Overrides:
toStringin classDeviceConfiguration
-
-