Package odata.msgraph.client.beta.entity
Class AndroidForWorkEasEmailProfileBase
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceConfiguration
-
- odata.msgraph.client.beta.entity.AndroidForWorkEasEmailProfileBase
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
AndroidForWorkGmailEasConfiguration,AndroidForWorkNineWorkEasConfiguration
public class AndroidForWorkEasEmailProfileBase extends DeviceConfiguration implements com.github.davidmoten.odata.client.ODataEntityType
“Base for Android For Work 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 protectedAndroidForWorkEasEmailProfileBase()
-
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.”AndroidForWorkCertificateProfileBaseRequestgetIdentityCertificate()“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()AndroidForWorkEasEmailProfileBasepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)AndroidForWorkEasEmailProfileBaseput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()AndroidForWorkEasEmailProfileBasewithAuthenticationMethod(EasAuthenticationMethod authenticationMethod)Returns an immutable copy ofthiswith just theauthenticationMethodfield changed.AndroidForWorkEasEmailProfileBasewithDurationOfEmailToSync(EmailSyncDuration durationOfEmailToSync)Returns an immutable copy ofthiswith just thedurationOfEmailToSyncfield changed.AndroidForWorkEasEmailProfileBasewithEmailAddressSource(UserEmailSource emailAddressSource)Returns an immutable copy ofthiswith just theemailAddressSourcefield changed.AndroidForWorkEasEmailProfileBasewithHostName(String hostName)Returns an immutable copy ofthiswith just thehostNamefield changed.AndroidForWorkEasEmailProfileBasewithRequireSsl(Boolean requireSsl)Returns an immutable copy ofthiswith just therequireSslfield changed.AndroidForWorkEasEmailProfileBasewithUnmappedField(String name, String value)AndroidForWorkEasEmailProfileBasewithUsernameSource(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 AndroidForWorkEasEmailProfileBase 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 AndroidForWorkEasEmailProfileBase 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 AndroidForWorkEasEmailProfileBase 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 AndroidForWorkEasEmailProfileBase 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 AndroidForWorkEasEmailProfileBase 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 AndroidForWorkEasEmailProfileBase 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 AndroidForWorkEasEmailProfileBase withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classDeviceConfiguration
-
getIdentityCertificate
public AndroidForWorkCertificateProfileBaseRequest 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 AndroidForWorkEasEmailProfileBase 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 AndroidForWorkEasEmailProfileBase 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
-
-