Package odata.msgraph.client.beta.entity
Class AndroidWorkProfileNineWorkEasConfiguration
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceConfiguration
-
- odata.msgraph.client.beta.entity.AndroidWorkProfileEasEmailProfileBase
-
- odata.msgraph.client.beta.entity.AndroidWorkProfileNineWorkEasConfiguration
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class AndroidWorkProfileNineWorkEasConfiguration extends AndroidWorkProfileEasEmailProfileBase implements com.github.davidmoten.odata.client.ODataEntityType
“By providing configurations in this profile you can instruct the Nine Work email client on Android Work Profile 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 classAndroidWorkProfileNineWorkEasConfiguration.Builder
-
Field Summary
Fields Modifier and Type Field Description protected BooleansyncCalendarprotected BooleansyncContactsprotected BooleansyncTasks-
Fields inherited from class odata.msgraph.client.beta.entity.AndroidWorkProfileEasEmailProfileBase
authenticationMethod, durationOfEmailToSync, emailAddressSource, hostName, requireSsl, 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 protectedAndroidWorkProfileNineWorkEasConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AndroidWorkProfileNineWorkEasConfiguration.BuilderbuilderAndroidWorkProfileNineWorkEasConfiguration()Returns a builder which is used to create a new instance of this class (given that this class is immutable).com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<Boolean>getSyncCalendar()“Toggles syncing the calendar.Optional<Boolean>getSyncContacts()“Toggles syncing contacts.Optional<Boolean>getSyncTasks()“Toggles syncing tasks.com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()AndroidWorkProfileNineWorkEasConfigurationpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)AndroidWorkProfileNineWorkEasConfigurationput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()AndroidWorkProfileNineWorkEasConfigurationwithSyncCalendar(Boolean syncCalendar)Returns an immutable copy ofthiswith just thesyncCalendarfield changed.AndroidWorkProfileNineWorkEasConfigurationwithSyncContacts(Boolean syncContacts)Returns an immutable copy ofthiswith just thesyncContactsfield changed.AndroidWorkProfileNineWorkEasConfigurationwithSyncTasks(Boolean syncTasks)Returns an immutable copy ofthiswith just thesyncTasksfield changed.AndroidWorkProfileNineWorkEasConfigurationwithUnmappedField(String name, String value)-
Methods inherited from class odata.msgraph.client.beta.entity.AndroidWorkProfileEasEmailProfileBase
getAuthenticationMethod, getDurationOfEmailToSync, getEmailAddressSource, getHostName, getIdentityCertificate, getRequireSsl, getUsernameSource, withAuthenticationMethod, withDurationOfEmailToSync, withEmailAddressSource, withHostName, withRequireSsl, 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
-
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classAndroidWorkProfileEasEmailProfileBase
-
builderAndroidWorkProfileNineWorkEasConfiguration
public static AndroidWorkProfileNineWorkEasConfiguration.Builder builderAndroidWorkProfileNineWorkEasConfiguration()
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 classAndroidWorkProfileEasEmailProfileBase
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classAndroidWorkProfileEasEmailProfileBase
-
getSyncCalendar
public Optional<Boolean> getSyncCalendar()
“Toggles syncing the calendar. If set to false the calendar is turned off on the device.”- Returns:
- property syncCalendar
-
withSyncCalendar
public AndroidWorkProfileNineWorkEasConfiguration 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 the 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 AndroidWorkProfileNineWorkEasConfiguration 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
-
getSyncTasks
public Optional<Boolean> getSyncTasks()
“Toggles syncing tasks. If set to false tasks are turned off on the device.”- Returns:
- property syncTasks
-
withSyncTasks
public AndroidWorkProfileNineWorkEasConfiguration 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
-
withUnmappedField
public AndroidWorkProfileNineWorkEasConfiguration withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classAndroidWorkProfileEasEmailProfileBase
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classAndroidWorkProfileEasEmailProfileBase
-
patch
public AndroidWorkProfileNineWorkEasConfiguration patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classAndroidWorkProfileEasEmailProfileBase- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public AndroidWorkProfileNineWorkEasConfiguration put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classAndroidWorkProfileEasEmailProfileBase- 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 classAndroidWorkProfileEasEmailProfileBase
-
-