Class 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.”
    • Constructor Detail

      • AndroidForWorkSettings

        protected AndroidForWorkSettings()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class Entity
      • 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:
        getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityType
        Overrides:
        getChangedFields in class Entity
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class Entity
      • 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 of this with just the bindStatus field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.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 of bindStatus field (as defined in service metadata)
        Returns:
        immutable copy of this with just the bindStatus field 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 of this with just the deviceOwnerManagementEnabled field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.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 of deviceOwnerManagementEnabled field (as defined in service metadata)
        Returns:
        immutable copy of this with just the deviceOwnerManagementEnabled field 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 of this with just the enrollmentTarget field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. 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 of enrollmentTarget field (as defined in service metadata)
        Returns:
        immutable copy of this with just the enrollmentTarget field 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 of this with just the lastAppSyncDateTime field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.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 of lastAppSyncDateTime field (as defined in service metadata)
        Returns:
        immutable copy of this with just the lastAppSyncDateTime field changed
      • getLastAppSyncStatus

        public Optional<AndroidForWorkSyncStatus> getLastAppSyncStatus()
        “Last application sync result”
        Returns:
        property lastAppSyncStatus
      • withLastAppSyncStatus

        public AndroidForWorkSettings withLastAppSyncStatus​(AndroidForWorkSyncStatus lastAppSyncStatus)
        Returns an immutable copy of this with just the lastAppSyncStatus field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “Last application sync result”

        Parameters:
        lastAppSyncStatus - new value of lastAppSyncStatus field (as defined in service metadata)
        Returns:
        immutable copy of this with just the lastAppSyncStatus field 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 of this with just the lastModifiedDateTime field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.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 of lastModifiedDateTime field (as defined in service metadata)
        Returns:
        immutable copy of this with just the lastModifiedDateTime field 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 of this with just the ownerOrganizationName field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.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 of ownerOrganizationName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the ownerOrganizationName field 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 of this with just the ownerUserPrincipalName field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.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 of ownerUserPrincipalName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the ownerUserPrincipalName field 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 of this with just the targetGroupIds field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. 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 of targetGroupIds field (as defined in service metadata)
        Returns:
        immutable copy of this with just the targetGroupIds field 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
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class Entity
      • patch

        public AndroidForWorkSettings patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • put

        public AndroidForWorkSettings put()
        Submits all fields for update and returns an immutable copy of this with changed fields reset (they were ignored anyway).
        Overrides:
        put in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • 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()