Package odata.msgraph.client.beta.entity
Class AndroidForWorkNineWorkEasConfiguration
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceConfiguration
-
- odata.msgraph.client.beta.entity.AndroidForWorkEasEmailProfileBase
-
- odata.msgraph.client.beta.entity.AndroidForWorkNineWorkEasConfiguration
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class AndroidForWorkNineWorkEasConfiguration extends AndroidForWorkEasEmailProfileBase implements com.github.davidmoten.odata.client.ODataEntityType
“By providing configurations in this profile you can instruct the Nine Work email client on Android For Work 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 classAndroidForWorkNineWorkEasConfiguration.Builder
-
Field Summary
Fields Modifier and Type Field Description protected BooleansyncCalendarprotected BooleansyncContactsprotected BooleansyncTasks-
Fields inherited from class odata.msgraph.client.beta.entity.AndroidForWorkEasEmailProfileBase
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 protectedAndroidForWorkNineWorkEasConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AndroidForWorkNineWorkEasConfiguration.BuilderbuilderAndroidForWorkNineWorkEasConfiguration()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()AndroidForWorkNineWorkEasConfigurationpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)AndroidForWorkNineWorkEasConfigurationput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()AndroidForWorkNineWorkEasConfigurationwithSyncCalendar(Boolean syncCalendar)Returns an immutable copy ofthiswith just thesyncCalendarfield changed.AndroidForWorkNineWorkEasConfigurationwithSyncContacts(Boolean syncContacts)Returns an immutable copy ofthiswith just thesyncContactsfield changed.AndroidForWorkNineWorkEasConfigurationwithSyncTasks(Boolean syncTasks)Returns an immutable copy ofthiswith just thesyncTasksfield changed.AndroidForWorkNineWorkEasConfigurationwithUnmappedField(String name, String value)-
Methods inherited from class odata.msgraph.client.beta.entity.AndroidForWorkEasEmailProfileBase
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 classAndroidForWorkEasEmailProfileBase
-
builderAndroidForWorkNineWorkEasConfiguration
public static AndroidForWorkNineWorkEasConfiguration.Builder builderAndroidForWorkNineWorkEasConfiguration()
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 classAndroidForWorkEasEmailProfileBase
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classAndroidForWorkEasEmailProfileBase
-
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 AndroidForWorkNineWorkEasConfiguration 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 AndroidForWorkNineWorkEasConfiguration 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 AndroidForWorkNineWorkEasConfiguration 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 AndroidForWorkNineWorkEasConfiguration withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classAndroidForWorkEasEmailProfileBase
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classAndroidForWorkEasEmailProfileBase
-
patch
public AndroidForWorkNineWorkEasConfiguration patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classAndroidForWorkEasEmailProfileBase- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public AndroidForWorkNineWorkEasConfiguration put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classAndroidForWorkEasEmailProfileBase- 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 classAndroidForWorkEasEmailProfileBase
-
-