Package odata.msgraph.client.beta.entity
Class AndroidWorkProfileEasEmailProfileBase
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceConfiguration
-
- odata.msgraph.client.beta.entity.AndroidWorkProfileEasEmailProfileBase
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
AndroidWorkProfileGmailEasConfiguration,AndroidWorkProfileNineWorkEasConfiguration
public class AndroidWorkProfileEasEmailProfileBase extends DeviceConfiguration implements com.github.davidmoten.odata.client.ODataEntityType
“Base for Android Work Profile EAS Email profiles”
-
-
Field Summary
Fields Modifier and Type Field Description protected EasAuthenticationMethodauthenticationMethodprotected EmailSyncDurationdurationOfEmailToSyncprotected UserEmailSourceemailAddressSourceprotected StringhostNameprotected BooleanrequireSslprotected 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 protectedAndroidWorkProfileEasEmailProfileBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<EasAuthenticationMethod>getAuthenticationMethod()“Authentication method for Exchange ActiveSync.”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()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<String>getHostName()“Exchange location (URL) that the mail app connects to.”AndroidWorkProfileCertificateProfileBaseRequestgetIdentityCertificate()“Identity certificate.”Optional<Boolean>getRequireSsl()“Indicates whether or not to use SSL.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<AndroidUsernameSource>getUsernameSource()“Username attribute that is picked from AAD and injected into this profile before installing on the device.”StringodataTypeName()AndroidWorkProfileEasEmailProfileBasepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)AndroidWorkProfileEasEmailProfileBaseput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()AndroidWorkProfileEasEmailProfileBasewithAuthenticationMethod(EasAuthenticationMethod authenticationMethod)Returns an immutable copy ofthiswith just theauthenticationMethodfield changed.AndroidWorkProfileEasEmailProfileBasewithDurationOfEmailToSync(EmailSyncDuration durationOfEmailToSync)Returns an immutable copy ofthiswith just thedurationOfEmailToSyncfield changed.AndroidWorkProfileEasEmailProfileBasewithEmailAddressSource(UserEmailSource emailAddressSource)Returns an immutable copy ofthiswith just theemailAddressSourcefield changed.AndroidWorkProfileEasEmailProfileBasewithHostName(String hostName)Returns an immutable copy ofthiswith just thehostNamefield changed.AndroidWorkProfileEasEmailProfileBasewithRequireSsl(Boolean requireSsl)Returns an immutable copy ofthiswith just therequireSslfield changed.AndroidWorkProfileEasEmailProfileBasewithUnmappedField(String name, String value)AndroidWorkProfileEasEmailProfileBasewithUsernameSource(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
-
authenticationMethod
protected EasAuthenticationMethod authenticationMethod
-
durationOfEmailToSync
protected EmailSyncDuration durationOfEmailToSync
-
emailAddressSource
protected UserEmailSource emailAddressSource
-
hostName
protected String hostName
-
requireSsl
protected Boolean requireSsl
-
usernameSource
protected AndroidUsernameSource usernameSource
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classDeviceConfiguration
-
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
-
getAuthenticationMethod
public Optional<EasAuthenticationMethod> getAuthenticationMethod()
“Authentication method for Exchange ActiveSync.”- Returns:
- property authenticationMethod
-
withAuthenticationMethod
public AndroidWorkProfileEasEmailProfileBase 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
-
getDurationOfEmailToSync
public Optional<EmailSyncDuration> getDurationOfEmailToSync()
“Duration of time email should be synced to.”- Returns:
- property durationOfEmailToSync
-
withDurationOfEmailToSync
public AndroidWorkProfileEasEmailProfileBase 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 AndroidWorkProfileEasEmailProfileBase 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
-
getHostName
public Optional<String> getHostName()
“Exchange location (URL) that the mail app connects to.”- Returns:
- property hostName
-
withHostName
public AndroidWorkProfileEasEmailProfileBase 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 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 AndroidWorkProfileEasEmailProfileBase 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
-
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 AndroidWorkProfileEasEmailProfileBase 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 AndroidWorkProfileEasEmailProfileBase withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classDeviceConfiguration
-
getIdentityCertificate
public AndroidWorkProfileCertificateProfileBaseRequest getIdentityCertificate()
“Identity certificate.”- Returns:
- navigational property identityCertificate
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classDeviceConfiguration
-
patch
public AndroidWorkProfileEasEmailProfileBase 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 AndroidWorkProfileEasEmailProfileBase 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
-
-