Package odata.msgraph.client.beta.entity
Class Windows10EasEmailProfileConfiguration
- 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.Windows10EasEmailProfileConfiguration
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class Windows10EasEmailProfileConfiguration extends EasEmailProfileConfigurationBase implements com.github.davidmoten.odata.client.ODataEntityType
“By providing configurations in this profile you can instruct the native email client (Outlook) on Windows 10 devices 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 classWindows10EasEmailProfileConfiguration.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringaccountNameprotected 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 protectedWindows10EasEmailProfileConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Windows10EasEmailProfileConfiguration.BuilderbuilderWindows10EasEmailProfileConfiguration()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.”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()Windows10EasEmailProfileConfigurationpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)Windows10EasEmailProfileConfigurationput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()Windows10EasEmailProfileConfigurationwithAccountName(String accountName)Returns an immutable copy ofthiswith just theaccountNamefield changed.Windows10EasEmailProfileConfigurationwithDurationOfEmailToSync(EmailSyncDuration durationOfEmailToSync)Returns an immutable copy ofthiswith just thedurationOfEmailToSyncfield changed.Windows10EasEmailProfileConfigurationwithEmailAddressSource(UserEmailSource emailAddressSource)Returns an immutable copy ofthiswith just theemailAddressSourcefield changed.Windows10EasEmailProfileConfigurationwithEmailSyncSchedule(EmailSyncSchedule emailSyncSchedule)Returns an immutable copy ofthiswith just theemailSyncSchedulefield changed.Windows10EasEmailProfileConfigurationwithHostName(String hostName)Returns an immutable copy ofthiswith just thehostNamefield changed.Windows10EasEmailProfileConfigurationwithRequireSsl(Boolean requireSsl)Returns an immutable copy ofthiswith just therequireSslfield changed.Windows10EasEmailProfileConfigurationwithSyncCalendar(Boolean syncCalendar)Returns an immutable copy ofthiswith just thesyncCalendarfield changed.Windows10EasEmailProfileConfigurationwithSyncContacts(Boolean syncContacts)Returns an immutable copy ofthiswith just thesyncContactsfield changed.Windows10EasEmailProfileConfigurationwithSyncTasks(Boolean syncTasks)Returns an immutable copy ofthiswith just thesyncTasksfield changed.Windows10EasEmailProfileConfigurationwithUnmappedField(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
-
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
-
builderWindows10EasEmailProfileConfiguration
public static Windows10EasEmailProfileConfiguration.Builder builderWindows10EasEmailProfileConfiguration()
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 Windows10EasEmailProfileConfiguration 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
-
getDurationOfEmailToSync
public Optional<EmailSyncDuration> getDurationOfEmailToSync()
“Duration of email to sync.”- Returns:
- property durationOfEmailToSync
-
withDurationOfEmailToSync
public Windows10EasEmailProfileConfiguration 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 Windows10EasEmailProfileConfiguration 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 Windows10EasEmailProfileConfiguration 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 Windows10EasEmailProfileConfiguration 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 Windows10EasEmailProfileConfiguration 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 Windows10EasEmailProfileConfiguration 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 Windows10EasEmailProfileConfiguration 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 Windows10EasEmailProfileConfiguration 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 Windows10EasEmailProfileConfiguration 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 Windows10EasEmailProfileConfiguration 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 Windows10EasEmailProfileConfiguration 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
-
-