Package odata.msgraph.client.beta.entity
Class AndroidForWorkSettings
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.AndroidForWorkSettings
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class AndroidForWorkSettings extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Settings for Android For Work.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAndroidForWorkSettings.Builder
-
Field Summary
Fields Modifier and Type Field Description protected AndroidForWorkBindStatusbindStatusprotected BooleandeviceOwnerManagementEnabledprotected AndroidForWorkEnrollmentTargetenrollmentTargetprotected OffsetDateTimelastAppSyncDateTimeprotected AndroidForWorkSyncStatuslastAppSyncStatusprotected OffsetDateTimelastModifiedDateTimeprotected StringownerOrganizationNameprotected StringownerUserPrincipalNameprotected List<String>targetGroupIdsprotected StringtargetGroupIdsNextLink-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAndroidForWorkSettings()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AndroidForWorkSettings.BuilderbuilderAndroidForWorkSettings()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.ActionRequestNoReturncompleteSignup(String enterpriseToken)Optional<AndroidForWorkBindStatus>getBindStatus()“Bind status of the tenant with the Google EMM API”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<Boolean>getDeviceOwnerManagementEnabled()“Indicates if this account is flighting for Android Device Owner Management with CloudDPC.”Optional<AndroidForWorkEnrollmentTarget>getEnrollmentTarget()“Indicates which users can enroll devices in Android for Work device management”Optional<OffsetDateTime>getLastAppSyncDateTime()“Last completion time for app sync”Optional<AndroidForWorkSyncStatus>getLastAppSyncStatus()“Last application sync result”Optional<OffsetDateTime>getLastModifiedDateTime()“Last modification time for Android for Work settings”Optional<String>getOwnerOrganizationName()“Organization name used when onboarding Android for Work”Optional<String>getOwnerUserPrincipalName()“Owner UPN that created the enterprise”com.github.davidmoten.odata.client.CollectionPage<String>getTargetGroupIds()“Specifies which AAD groups can enroll devices in Android for Work device management if enrollmentTarget is set to 'Targeted'”com.github.davidmoten.odata.client.CollectionPage<String>getTargetGroupIds(com.github.davidmoten.odata.client.HttpRequestOptions options)“Specifies which AAD groups can enroll devices in Android for Work device management if enrollmentTarget is set to 'Targeted'”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()AndroidForWorkSettingspatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)AndroidForWorkSettingsput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).com.github.davidmoten.odata.client.ActionRequestReturningNonCollection<String>requestSignupUrl(String hostName)com.github.davidmoten.odata.client.ActionRequestNoReturnsyncApps()StringtoString()com.github.davidmoten.odata.client.ActionRequestNoReturnunbind()AndroidForWorkSettingswithBindStatus(AndroidForWorkBindStatus bindStatus)Returns an immutable copy ofthiswith just thebindStatusfield changed.AndroidForWorkSettingswithDeviceOwnerManagementEnabled(Boolean deviceOwnerManagementEnabled)Returns an immutable copy ofthiswith just thedeviceOwnerManagementEnabledfield changed.AndroidForWorkSettingswithEnrollmentTarget(AndroidForWorkEnrollmentTarget enrollmentTarget)Returns an immutable copy ofthiswith just theenrollmentTargetfield changed.AndroidForWorkSettingswithLastAppSyncDateTime(OffsetDateTime lastAppSyncDateTime)Returns an immutable copy ofthiswith just thelastAppSyncDateTimefield changed.AndroidForWorkSettingswithLastAppSyncStatus(AndroidForWorkSyncStatus lastAppSyncStatus)Returns an immutable copy ofthiswith just thelastAppSyncStatusfield changed.AndroidForWorkSettingswithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Returns an immutable copy ofthiswith just thelastModifiedDateTimefield changed.AndroidForWorkSettingswithOwnerOrganizationName(String ownerOrganizationName)Returns an immutable copy ofthiswith just theownerOrganizationNamefield changed.AndroidForWorkSettingswithOwnerUserPrincipalName(String ownerUserPrincipalName)Returns an immutable copy ofthiswith just theownerUserPrincipalNamefield changed.AndroidForWorkSettingswithTargetGroupIds(List<String> targetGroupIds)Returns an immutable copy ofthiswith just thetargetGroupIdsfield changed.AndroidForWorkSettingswithUnmappedField(String name, String value)
-
-
-
Field Detail
-
bindStatus
protected AndroidForWorkBindStatus bindStatus
-
deviceOwnerManagementEnabled
protected Boolean deviceOwnerManagementEnabled
-
enrollmentTarget
protected AndroidForWorkEnrollmentTarget enrollmentTarget
-
lastAppSyncDateTime
protected OffsetDateTime lastAppSyncDateTime
-
lastAppSyncStatus
protected AndroidForWorkSyncStatus lastAppSyncStatus
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
ownerOrganizationName
protected String ownerOrganizationName
-
ownerUserPrincipalName
protected String ownerUserPrincipalName
-
targetGroupIdsNextLink
protected String targetGroupIdsNextLink
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderAndroidForWorkSettings
public static AndroidForWorkSettings.Builder builderAndroidForWorkSettings()
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 classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
getBindStatus
public Optional<AndroidForWorkBindStatus> getBindStatus()
“Bind status of the tenant with the Google EMM API”- Returns:
- property bindStatus
-
withBindStatus
public AndroidForWorkSettings withBindStatus(AndroidForWorkBindStatus bindStatus)
Returns an immutable copy ofthiswith just thebindStatusfield 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.“Bind status of the tenant with the Google EMM API”
- Parameters:
bindStatus- new value ofbindStatusfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thebindStatusfield changed
-
getDeviceOwnerManagementEnabled
public Optional<Boolean> getDeviceOwnerManagementEnabled()
“Indicates if this account is flighting for Android Device Owner Management with CloudDPC.”- Returns:
- property deviceOwnerManagementEnabled
-
withDeviceOwnerManagementEnabled
public AndroidForWorkSettings withDeviceOwnerManagementEnabled(Boolean deviceOwnerManagementEnabled)
Returns an immutable copy ofthiswith just thedeviceOwnerManagementEnabledfield 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 if this account is flighting for Android Device Owner Management with CloudDPC.”
- Parameters:
deviceOwnerManagementEnabled- new value ofdeviceOwnerManagementEnabledfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceOwnerManagementEnabledfield changed
-
getEnrollmentTarget
public Optional<AndroidForWorkEnrollmentTarget> getEnrollmentTarget()
“Indicates which users can enroll devices in Android for Work device management”- Returns:
- property enrollmentTarget
-
withEnrollmentTarget
public AndroidForWorkSettings withEnrollmentTarget(AndroidForWorkEnrollmentTarget enrollmentTarget)
Returns an immutable copy ofthiswith just theenrollmentTargetfield 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 which users can enroll devices in Android for Work device management”
- Parameters:
enrollmentTarget- new value ofenrollmentTargetfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theenrollmentTargetfield changed
-
getLastAppSyncDateTime
public Optional<OffsetDateTime> getLastAppSyncDateTime()
“Last completion time for app sync”- Returns:
- property lastAppSyncDateTime
-
withLastAppSyncDateTime
public AndroidForWorkSettings withLastAppSyncDateTime(OffsetDateTime lastAppSyncDateTime)
Returns an immutable copy ofthiswith just thelastAppSyncDateTimefield 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.“Last completion time for app sync”
- Parameters:
lastAppSyncDateTime- new value oflastAppSyncDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastAppSyncDateTimefield changed
-
getLastAppSyncStatus
public Optional<AndroidForWorkSyncStatus> getLastAppSyncStatus()
“Last application sync result”- Returns:
- property lastAppSyncStatus
-
withLastAppSyncStatus
public AndroidForWorkSettings withLastAppSyncStatus(AndroidForWorkSyncStatus lastAppSyncStatus)
Returns an immutable copy ofthiswith just thelastAppSyncStatusfield 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.“Last application sync result”
- Parameters:
lastAppSyncStatus- new value oflastAppSyncStatusfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastAppSyncStatusfield changed
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
“Last modification time for Android for Work settings”- Returns:
- property lastModifiedDateTime
-
withLastModifiedDateTime
public AndroidForWorkSettings withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
Returns an immutable copy ofthiswith just thelastModifiedDateTimefield 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.“Last modification time for Android for Work settings”
- Parameters:
lastModifiedDateTime- new value oflastModifiedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastModifiedDateTimefield changed
-
getOwnerOrganizationName
public Optional<String> getOwnerOrganizationName()
“Organization name used when onboarding Android for Work”- Returns:
- property ownerOrganizationName
-
withOwnerOrganizationName
public AndroidForWorkSettings withOwnerOrganizationName(String ownerOrganizationName)
Returns an immutable copy ofthiswith just theownerOrganizationNamefield 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.“Organization name used when onboarding Android for Work”
- Parameters:
ownerOrganizationName- new value ofownerOrganizationNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theownerOrganizationNamefield changed
-
getOwnerUserPrincipalName
public Optional<String> getOwnerUserPrincipalName()
“Owner UPN that created the enterprise”- Returns:
- property ownerUserPrincipalName
-
withOwnerUserPrincipalName
public AndroidForWorkSettings withOwnerUserPrincipalName(String ownerUserPrincipalName)
Returns an immutable copy ofthiswith just theownerUserPrincipalNamefield 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.“Owner UPN that created the enterprise”
- Parameters:
ownerUserPrincipalName- new value ofownerUserPrincipalNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theownerUserPrincipalNamefield changed
-
getTargetGroupIds
public com.github.davidmoten.odata.client.CollectionPage<String> getTargetGroupIds()
“Specifies which AAD groups can enroll devices in Android for Work device management if enrollmentTarget is set to 'Targeted'”- Returns:
- property targetGroupIds
-
withTargetGroupIds
public AndroidForWorkSettings withTargetGroupIds(List<String> targetGroupIds)
Returns an immutable copy ofthiswith just thetargetGroupIdsfield 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.“Specifies which AAD groups can enroll devices in Android for Work device management if enrollmentTarget is set to 'Targeted'”
- Parameters:
targetGroupIds- new value oftargetGroupIdsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thetargetGroupIdsfield changed
-
getTargetGroupIds
public com.github.davidmoten.odata.client.CollectionPage<String> getTargetGroupIds(com.github.davidmoten.odata.client.HttpRequestOptions options)
“Specifies which AAD groups can enroll devices in Android for Work device management if enrollmentTarget is set to 'Targeted'”- Parameters:
options- specify connect and read timeouts- Returns:
- property targetGroupIds
-
withUnmappedField
public AndroidForWorkSettings withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public AndroidForWorkSettings patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public AndroidForWorkSettings put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
completeSignup
public com.github.davidmoten.odata.client.ActionRequestNoReturn completeSignup(String enterpriseToken)
-
requestSignupUrl
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollection<String> requestSignupUrl(String hostName)
-
syncApps
public com.github.davidmoten.odata.client.ActionRequestNoReturn syncApps()
-
unbind
public com.github.davidmoten.odata.client.ActionRequestNoReturn unbind()
-
-