Package odata.msgraph.client.beta.entity
Class WindowsPhoneEASEmailProfileConfiguration
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceConfiguration
-
- odata.msgraph.client.beta.entity.EasEmailProfileConfigurationBase
-
- odata.msgraph.client.beta.entity.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.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWindowsPhoneEASEmailProfileConfiguration.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringaccountNameprotected BooleanapplyOnlyToWindowsPhone81protected EmailSyncDurationdurationOfEmailToSyncprotected UserEmailSourceemailAddressSourceprotected EmailSyncScheduleemailSyncScheduleprotected StringhostNameprotected BooleanrequireSslprotected BooleansyncCalendarprotected BooleansyncContactsprotected BooleansyncTasks-
Fields inherited from class odata.msgraph.client.beta.entity.EasEmailProfileConfigurationBase
customDomainName, userDomainNameSource, usernameAADSource, usernameSource
-
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 protectedWindowsPhoneEASEmailProfileConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WindowsPhoneEASEmailProfileConfiguration.BuilderbuilderWindowsPhoneEASEmailProfileConfiguration()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getAccountName()“Account name.”Optional<Boolean>getApplyOnlyToWindowsPhone81()“Value indicating whether this policy only applies to Windows 8.1.com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<EmailSyncDuration>getDurationOfEmailToSync()“Duration of email to sync.”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 that (URL) that the native mail app connects to.”Optional<Boolean>getRequireSsl()“Indicates whether or not to use SSL.”Optional<Boolean>getSyncCalendar()“Whether or not to sync the calendar.”Optional<Boolean>getSyncContacts()“Whether or not to sync contacts.”Optional<Boolean>getSyncTasks()“Whether or not to sync tasks.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()WindowsPhoneEASEmailProfileConfigurationpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)WindowsPhoneEASEmailProfileConfigurationput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()WindowsPhoneEASEmailProfileConfigurationwithAccountName(String accountName)Returns an immutable copy ofthiswith just theaccountNamefield changed.WindowsPhoneEASEmailProfileConfigurationwithApplyOnlyToWindowsPhone81(Boolean applyOnlyToWindowsPhone81)Returns an immutable copy ofthiswith just theapplyOnlyToWindowsPhone81field changed.WindowsPhoneEASEmailProfileConfigurationwithDurationOfEmailToSync(EmailSyncDuration durationOfEmailToSync)Returns an immutable copy ofthiswith just thedurationOfEmailToSyncfield changed.WindowsPhoneEASEmailProfileConfigurationwithEmailAddressSource(UserEmailSource emailAddressSource)Returns an immutable copy ofthiswith just theemailAddressSourcefield changed.WindowsPhoneEASEmailProfileConfigurationwithEmailSyncSchedule(EmailSyncSchedule emailSyncSchedule)Returns an immutable copy ofthiswith just theemailSyncSchedulefield changed.WindowsPhoneEASEmailProfileConfigurationwithHostName(String hostName)Returns an immutable copy ofthiswith just thehostNamefield changed.WindowsPhoneEASEmailProfileConfigurationwithRequireSsl(Boolean requireSsl)Returns an immutable copy ofthiswith just therequireSslfield changed.WindowsPhoneEASEmailProfileConfigurationwithSyncCalendar(Boolean syncCalendar)Returns an immutable copy ofthiswith just thesyncCalendarfield changed.WindowsPhoneEASEmailProfileConfigurationwithSyncContacts(Boolean syncContacts)Returns an immutable copy ofthiswith just thesyncContactsfield changed.WindowsPhoneEASEmailProfileConfigurationwithSyncTasks(Boolean syncTasks)Returns an immutable copy ofthiswith just thesyncTasksfield changed.WindowsPhoneEASEmailProfileConfigurationwithUnmappedField(String name, String value)-
Methods inherited from class odata.msgraph.client.beta.entity.EasEmailProfileConfigurationBase
getCustomDomainName, getUserDomainNameSource, getUsernameAADSource, getUsernameSource, withCustomDomainName, withUserDomainNameSource, withUsernameAADSource, withUsernameSource
-
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
-
applyOnlyToWindowsPhone81
protected Boolean applyOnlyToWindowsPhone81
-
durationOfEmailToSync
protected EmailSyncDuration durationOfEmailToSync
-
emailAddressSource
protected UserEmailSource emailAddressSource
-
emailSyncSchedule
protected EmailSyncSchedule emailSyncSchedule
-
hostName
protected String hostName
-
requireSsl
protected Boolean requireSsl
-
syncCalendar
protected Boolean syncCalendar
-
syncContacts
protected Boolean syncContacts
-
syncTasks
protected Boolean syncTasks
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEasEmailProfileConfigurationBase
-
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:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classEasEmailProfileConfigurationBase
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEasEmailProfileConfigurationBase
-
getAccountName
public Optional<String> getAccountName()
“Account name.”- Returns:
- property accountName
-
withAccountName
public WindowsPhoneEASEmailProfileConfiguration 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.“Account name.”
- Parameters:
accountName- new value ofaccountNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theaccountNamefield 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 ofthiswith just theapplyOnlyToWindowsPhone81field 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.“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 ofapplyOnlyToWindowsPhone81field (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theapplyOnlyToWindowsPhone81field changed
-
getDurationOfEmailToSync
public Optional<EmailSyncDuration> getDurationOfEmailToSync()
“Duration of email to sync.”- Returns:
- property durationOfEmailToSync
-
withDurationOfEmailToSync
public WindowsPhoneEASEmailProfileConfiguration 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 email to sync.”
- 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 WindowsPhoneEASEmailProfileConfiguration 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 WindowsPhoneEASEmailProfileConfiguration 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 that (URL) that the native mail app connects to.”- Returns:
- property hostName
-
withHostName
public WindowsPhoneEASEmailProfileConfiguration 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 that (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
-
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 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()
“Whether or not to sync the calendar.”- Returns:
- property syncCalendar
-
withSyncCalendar
public WindowsPhoneEASEmailProfileConfiguration 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.“Whether or not to sync the calendar.”
- Parameters:
syncCalendar- new value ofsyncCalendarfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesyncCalendarfield 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 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.“Whether or not to sync contacts.”
- Parameters:
syncContacts- new value ofsyncContactsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesyncContactsfield 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 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.“Whether or not to sync tasks.”
- Parameters:
syncTasks- new value ofsyncTasksfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesyncTasksfield changed
-
withUnmappedField
public WindowsPhoneEASEmailProfileConfiguration withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEasEmailProfileConfigurationBase
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEasEmailProfileConfigurationBase
-
patch
public WindowsPhoneEASEmailProfileConfiguration patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classEasEmailProfileConfigurationBase- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public WindowsPhoneEASEmailProfileConfiguration put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classEasEmailProfileConfigurationBase- 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 classEasEmailProfileConfigurationBase
-
-