Class AndroidWorkProfileCompliancePolicy

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataEntityType, com.github.davidmoten.odata.client.ODataType

    public class AndroidWorkProfileCompliancePolicy
    extends DeviceCompliancePolicy
    implements com.github.davidmoten.odata.client.ODataEntityType
    “This class contains compliance settings for Android Work Profile.”
    • Field Detail

      • deviceThreatProtectionEnabled

        protected Boolean deviceThreatProtectionEnabled
      • minAndroidSecurityPatchLevel

        protected String minAndroidSecurityPatchLevel
      • osMaximumVersion

        protected String osMaximumVersion
      • osMinimumVersion

        protected String osMinimumVersion
      • passwordExpirationDays

        protected Integer passwordExpirationDays
      • passwordMinimumLength

        protected Integer passwordMinimumLength
      • passwordMinutesOfInactivityBeforeLock

        protected Integer passwordMinutesOfInactivityBeforeLock
      • passwordPreviousPasswordBlockCount

        protected Integer passwordPreviousPasswordBlockCount
      • passwordRequired

        protected Boolean passwordRequired
      • securityBlockJailbrokenDevices

        protected Boolean securityBlockJailbrokenDevices
      • securityDisableUsbDebugging

        protected Boolean securityDisableUsbDebugging
      • securityPreventInstallAppsFromUnknownSources

        protected Boolean securityPreventInstallAppsFromUnknownSources
      • securityRequireCompanyPortalAppIntegrity

        protected Boolean securityRequireCompanyPortalAppIntegrity
      • securityRequireGooglePlayServices

        protected Boolean securityRequireGooglePlayServices
      • securityRequireSafetyNetAttestationBasicIntegrity

        protected Boolean securityRequireSafetyNetAttestationBasicIntegrity
      • securityRequireSafetyNetAttestationCertifiedDevice

        protected Boolean securityRequireSafetyNetAttestationCertifiedDevice
      • securityRequireUpToDateSecurityProviders

        protected Boolean securityRequireUpToDateSecurityProviders
      • securityRequireVerifyApps

        protected Boolean securityRequireVerifyApps
      • storageRequireEncryption

        protected Boolean storageRequireEncryption
    • Constructor Detail

      • AndroidWorkProfileCompliancePolicy

        protected AndroidWorkProfileCompliancePolicy()
    • Method Detail

      • builderAndroidWorkProfileCompliancePolicy

        public static AndroidWorkProfileCompliancePolicy.Builder builderAndroidWorkProfileCompliancePolicy()
        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 DeviceCompliancePolicy
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class DeviceCompliancePolicy
      • getDeviceThreatProtectionEnabled

        public Optional<Boolean> getDeviceThreatProtectionEnabled()
        “Require that devices have enabled device threat protection.”
        Returns:
        property deviceThreatProtectionEnabled
      • withDeviceThreatProtectionEnabled

        public AndroidWorkProfileCompliancePolicy withDeviceThreatProtectionEnabled​(Boolean deviceThreatProtectionEnabled)
        Returns an immutable copy of this with just the deviceThreatProtectionEnabled 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.

        “Require that devices have enabled device threat protection.”

        Parameters:
        deviceThreatProtectionEnabled - new value of deviceThreatProtectionEnabled field (as defined in service metadata)
        Returns:
        immutable copy of this with just the deviceThreatProtectionEnabled field changed
      • getDeviceThreatProtectionRequiredSecurityLevel

        public Optional<DeviceThreatProtectionLevel> getDeviceThreatProtectionRequiredSecurityLevel()
        “Require Mobile Threat Protection minimum risk level to report noncompliance.”
        Returns:
        property deviceThreatProtectionRequiredSecurityLevel
      • withDeviceThreatProtectionRequiredSecurityLevel

        public AndroidWorkProfileCompliancePolicy withDeviceThreatProtectionRequiredSecurityLevel​(DeviceThreatProtectionLevel deviceThreatProtectionRequiredSecurityLevel)
        Returns an immutable copy of this with just the deviceThreatProtectionRequiredSecurityLevel 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.

        “Require Mobile Threat Protection minimum risk level to report noncompliance.”

        Parameters:
        deviceThreatProtectionRequiredSecurityLevel - new value of deviceThreatProtectionRequiredSecurityLevel field (as defined in service metadata)
        Returns:
        immutable copy of this with just the deviceThreatProtectionRequiredSecurityLevel field changed
      • getMinAndroidSecurityPatchLevel

        public Optional<String> getMinAndroidSecurityPatchLevel()
        “Minimum Android security patch level.”
        Returns:
        property minAndroidSecurityPatchLevel
      • withMinAndroidSecurityPatchLevel

        public AndroidWorkProfileCompliancePolicy withMinAndroidSecurityPatchLevel​(String minAndroidSecurityPatchLevel)
        Returns an immutable copy of this with just the minAndroidSecurityPatchLevel 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.

        “Minimum Android security patch level.”

        Parameters:
        minAndroidSecurityPatchLevel - new value of minAndroidSecurityPatchLevel field (as defined in service metadata)
        Returns:
        immutable copy of this with just the minAndroidSecurityPatchLevel field changed
      • getOsMaximumVersion

        public Optional<String> getOsMaximumVersion()
        “Maximum Android version.”
        Returns:
        property osMaximumVersion
      • withOsMaximumVersion

        public AndroidWorkProfileCompliancePolicy withOsMaximumVersion​(String osMaximumVersion)
        Returns an immutable copy of this with just the osMaximumVersion 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.

        “Maximum Android version.”

        Parameters:
        osMaximumVersion - new value of osMaximumVersion field (as defined in service metadata)
        Returns:
        immutable copy of this with just the osMaximumVersion field changed
      • getOsMinimumVersion

        public Optional<String> getOsMinimumVersion()
        “Minimum Android version.”
        Returns:
        property osMinimumVersion
      • withOsMinimumVersion

        public AndroidWorkProfileCompliancePolicy withOsMinimumVersion​(String osMinimumVersion)
        Returns an immutable copy of this with just the osMinimumVersion 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.

        “Minimum Android version.”

        Parameters:
        osMinimumVersion - new value of osMinimumVersion field (as defined in service metadata)
        Returns:
        immutable copy of this with just the osMinimumVersion field changed
      • getPasswordExpirationDays

        public Optional<Integer> getPasswordExpirationDays()
        “Number of days before the password expires. Valid values 1 to 365”
        Returns:
        property passwordExpirationDays
      • withPasswordExpirationDays

        public AndroidWorkProfileCompliancePolicy withPasswordExpirationDays​(Integer passwordExpirationDays)
        Returns an immutable copy of this with just the passwordExpirationDays 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.

        “Number of days before the password expires. Valid values 1 to 365”

        Parameters:
        passwordExpirationDays - new value of passwordExpirationDays field (as defined in service metadata)
        Returns:
        immutable copy of this with just the passwordExpirationDays field changed
      • getPasswordMinimumLength

        public Optional<Integer> getPasswordMinimumLength()
        “Minimum password length. Valid values 4 to 16”
        Returns:
        property passwordMinimumLength
      • withPasswordMinimumLength

        public AndroidWorkProfileCompliancePolicy withPasswordMinimumLength​(Integer passwordMinimumLength)
        Returns an immutable copy of this with just the passwordMinimumLength 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.

        “Minimum password length. Valid values 4 to 16”

        Parameters:
        passwordMinimumLength - new value of passwordMinimumLength field (as defined in service metadata)
        Returns:
        immutable copy of this with just the passwordMinimumLength field changed
      • getPasswordMinutesOfInactivityBeforeLock

        public Optional<Integer> getPasswordMinutesOfInactivityBeforeLock()
        “Minutes of inactivity before a password is required.”
        Returns:
        property passwordMinutesOfInactivityBeforeLock
      • withPasswordMinutesOfInactivityBeforeLock

        public AndroidWorkProfileCompliancePolicy withPasswordMinutesOfInactivityBeforeLock​(Integer passwordMinutesOfInactivityBeforeLock)
        Returns an immutable copy of this with just the passwordMinutesOfInactivityBeforeLock 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.

        “Minutes of inactivity before a password is required.”

        Parameters:
        passwordMinutesOfInactivityBeforeLock - new value of passwordMinutesOfInactivityBeforeLock field (as defined in service metadata)
        Returns:
        immutable copy of this with just the passwordMinutesOfInactivityBeforeLock field changed
      • getPasswordPreviousPasswordBlockCount

        public Optional<Integer> getPasswordPreviousPasswordBlockCount()
        “Number of previous passwords to block. Valid values 1 to 24”
        Returns:
        property passwordPreviousPasswordBlockCount
      • withPasswordPreviousPasswordBlockCount

        public AndroidWorkProfileCompliancePolicy withPasswordPreviousPasswordBlockCount​(Integer passwordPreviousPasswordBlockCount)
        Returns an immutable copy of this with just the passwordPreviousPasswordBlockCount 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.

        “Number of previous passwords to block. Valid values 1 to 24”

        Parameters:
        passwordPreviousPasswordBlockCount - new value of passwordPreviousPasswordBlockCount field (as defined in service metadata)
        Returns:
        immutable copy of this with just the passwordPreviousPasswordBlockCount field changed
      • getPasswordRequired

        public Optional<Boolean> getPasswordRequired()
        “Require a password to unlock device.”
        Returns:
        property passwordRequired
      • withPasswordRequired

        public AndroidWorkProfileCompliancePolicy withPasswordRequired​(Boolean passwordRequired)
        Returns an immutable copy of this with just the passwordRequired 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.

        “Require a password to unlock device.”

        Parameters:
        passwordRequired - new value of passwordRequired field (as defined in service metadata)
        Returns:
        immutable copy of this with just the passwordRequired field changed
      • withPasswordRequiredType

        public AndroidWorkProfileCompliancePolicy withPasswordRequiredType​(AndroidRequiredPasswordType passwordRequiredType)
        Returns an immutable copy of this with just the passwordRequiredType 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.

        “Type of characters in password”

        Parameters:
        passwordRequiredType - new value of passwordRequiredType field (as defined in service metadata)
        Returns:
        immutable copy of this with just the passwordRequiredType field changed
      • getSecurityBlockJailbrokenDevices

        public Optional<Boolean> getSecurityBlockJailbrokenDevices()
        “Devices must not be jailbroken or rooted.”
        Returns:
        property securityBlockJailbrokenDevices
      • withSecurityBlockJailbrokenDevices

        public AndroidWorkProfileCompliancePolicy withSecurityBlockJailbrokenDevices​(Boolean securityBlockJailbrokenDevices)
        Returns an immutable copy of this with just the securityBlockJailbrokenDevices 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.

        “Devices must not be jailbroken or rooted.”

        Parameters:
        securityBlockJailbrokenDevices - new value of securityBlockJailbrokenDevices field (as defined in service metadata)
        Returns:
        immutable copy of this with just the securityBlockJailbrokenDevices field changed
      • getSecurityDisableUsbDebugging

        public Optional<Boolean> getSecurityDisableUsbDebugging()
        “Disable USB debugging on Android devices.”
        Returns:
        property securityDisableUsbDebugging
      • withSecurityDisableUsbDebugging

        public AndroidWorkProfileCompliancePolicy withSecurityDisableUsbDebugging​(Boolean securityDisableUsbDebugging)
        Returns an immutable copy of this with just the securityDisableUsbDebugging 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.

        “Disable USB debugging on Android devices.”

        Parameters:
        securityDisableUsbDebugging - new value of securityDisableUsbDebugging field (as defined in service metadata)
        Returns:
        immutable copy of this with just the securityDisableUsbDebugging field changed
      • getSecurityPreventInstallAppsFromUnknownSources

        public Optional<Boolean> getSecurityPreventInstallAppsFromUnknownSources()
        “Require that devices disallow installation of apps from unknown sources.”
        Returns:
        property securityPreventInstallAppsFromUnknownSources
      • withSecurityPreventInstallAppsFromUnknownSources

        public AndroidWorkProfileCompliancePolicy withSecurityPreventInstallAppsFromUnknownSources​(Boolean securityPreventInstallAppsFromUnknownSources)
        Returns an immutable copy of this with just the securityPreventInstallAppsFromUnknownSources 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.

        “Require that devices disallow installation of apps from unknown sources.”

        Parameters:
        securityPreventInstallAppsFromUnknownSources - new value of securityPreventInstallAppsFromUnknownSources field (as defined in service metadata)
        Returns:
        immutable copy of this with just the securityPreventInstallAppsFromUnknownSources field changed
      • getSecurityRequireCompanyPortalAppIntegrity

        public Optional<Boolean> getSecurityRequireCompanyPortalAppIntegrity()
        “Require the device to pass the Company Portal client app runtime integrity check .”
        Returns:
        property securityRequireCompanyPortalAppIntegrity
      • withSecurityRequireCompanyPortalAppIntegrity

        public AndroidWorkProfileCompliancePolicy withSecurityRequireCompanyPortalAppIntegrity​(Boolean securityRequireCompanyPortalAppIntegrity)
        Returns an immutable copy of this with just the securityRequireCompanyPortalAppIntegrity 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.

        “Require the device to pass the Company Portal client app runtime integrity check .”

        Parameters:
        securityRequireCompanyPortalAppIntegrity - new value of securityRequireCompanyPortalAppIntegrity field (as defined in service metadata)
        Returns:
        immutable copy of this with just the securityRequireCompanyPortalAppIntegrity field changed
      • getSecurityRequireGooglePlayServices

        public Optional<Boolean> getSecurityRequireGooglePlayServices()
        “Require Google Play Services to be installed and enabled on the device.”
        Returns:
        property securityRequireGooglePlayServices
      • withSecurityRequireGooglePlayServices

        public AndroidWorkProfileCompliancePolicy withSecurityRequireGooglePlayServices​(Boolean securityRequireGooglePlayServices)
        Returns an immutable copy of this with just the securityRequireGooglePlayServices 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.

        “Require Google Play Services to be installed and enabled on the device.”

        Parameters:
        securityRequireGooglePlayServices - new value of securityRequireGooglePlayServices field (as defined in service metadata)
        Returns:
        immutable copy of this with just the securityRequireGooglePlayServices field changed
      • getSecurityRequireSafetyNetAttestationBasicIntegrity

        public Optional<Boolean> getSecurityRequireSafetyNetAttestationBasicIntegrity()
        “Require the device to pass the Play Integrity basic integrity check.”
        Returns:
        property securityRequireSafetyNetAttestationBasicIntegrity
      • withSecurityRequireSafetyNetAttestationBasicIntegrity

        public AndroidWorkProfileCompliancePolicy withSecurityRequireSafetyNetAttestationBasicIntegrity​(Boolean securityRequireSafetyNetAttestationBasicIntegrity)
        Returns an immutable copy of this with just the securityRequireSafetyNetAttestationBasicIntegrity 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.

        “Require the device to pass the Play Integrity basic integrity check.”

        Parameters:
        securityRequireSafetyNetAttestationBasicIntegrity - new value of securityRequireSafetyNetAttestationBasicIntegrity field (as defined in service metadata)
        Returns:
        immutable copy of this with just the securityRequireSafetyNetAttestationBasicIntegrity field changed
      • getSecurityRequireSafetyNetAttestationCertifiedDevice

        public Optional<Boolean> getSecurityRequireSafetyNetAttestationCertifiedDevice()
        “Require the device to pass the Play Integrity device integrity check.”
        Returns:
        property securityRequireSafetyNetAttestationCertifiedDevice
      • withSecurityRequireSafetyNetAttestationCertifiedDevice

        public AndroidWorkProfileCompliancePolicy withSecurityRequireSafetyNetAttestationCertifiedDevice​(Boolean securityRequireSafetyNetAttestationCertifiedDevice)
        Returns an immutable copy of this with just the securityRequireSafetyNetAttestationCertifiedDevice 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.

        “Require the device to pass the Play Integrity device integrity check.”

        Parameters:
        securityRequireSafetyNetAttestationCertifiedDevice - new value of securityRequireSafetyNetAttestationCertifiedDevice field (as defined in service metadata)
        Returns:
        immutable copy of this with just the securityRequireSafetyNetAttestationCertifiedDevice field changed
      • getSecurityRequireUpToDateSecurityProviders

        public Optional<Boolean> getSecurityRequireUpToDateSecurityProviders()
        “Require the device to have up to date security providers. The device will require Google Play Services to be enabled and up to date.”
        Returns:
        property securityRequireUpToDateSecurityProviders
      • withSecurityRequireUpToDateSecurityProviders

        public AndroidWorkProfileCompliancePolicy withSecurityRequireUpToDateSecurityProviders​(Boolean securityRequireUpToDateSecurityProviders)
        Returns an immutable copy of this with just the securityRequireUpToDateSecurityProviders 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.

        “Require the device to have up to date security providers. The device will require Google Play Services to be enabled and up to date.”

        Parameters:
        securityRequireUpToDateSecurityProviders - new value of securityRequireUpToDateSecurityProviders field (as defined in service metadata)
        Returns:
        immutable copy of this with just the securityRequireUpToDateSecurityProviders field changed
      • getSecurityRequireVerifyApps

        public Optional<Boolean> getSecurityRequireVerifyApps()
        “Require the Android Verify apps feature is turned on.”
        Returns:
        property securityRequireVerifyApps
      • withSecurityRequireVerifyApps

        public AndroidWorkProfileCompliancePolicy withSecurityRequireVerifyApps​(Boolean securityRequireVerifyApps)
        Returns an immutable copy of this with just the securityRequireVerifyApps 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.

        “Require the Android Verify apps feature is turned on.”

        Parameters:
        securityRequireVerifyApps - new value of securityRequireVerifyApps field (as defined in service metadata)
        Returns:
        immutable copy of this with just the securityRequireVerifyApps field changed
      • getStorageRequireEncryption

        public Optional<Boolean> getStorageRequireEncryption()
        “Require encryption on Android devices.”
        Returns:
        property storageRequireEncryption
      • withStorageRequireEncryption

        public AndroidWorkProfileCompliancePolicy withStorageRequireEncryption​(Boolean storageRequireEncryption)
        Returns an immutable copy of this with just the storageRequireEncryption 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.

        “Require encryption on Android devices.”

        Parameters:
        storageRequireEncryption - new value of storageRequireEncryption field (as defined in service metadata)
        Returns:
        immutable copy of this with just the storageRequireEncryption field changed
      • getUnmappedFields

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

        public AndroidWorkProfileCompliancePolicy patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class DeviceCompliancePolicy
        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 AndroidWorkProfileCompliancePolicy 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 DeviceCompliancePolicy
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected