Class AndroidDeviceOwnerCompliancePolicy

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

    public class AndroidDeviceOwnerCompliancePolicy
    extends DeviceCompliancePolicy
    implements com.github.davidmoten.odata.client.ODataEntityType
    “This topic provides descriptions of the declared methods, properties and relationships exposed by the AndroidDeviceOwnerCompliancePolicy resource.”
    • 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
      • passwordMinimumLetterCharacters

        protected Integer passwordMinimumLetterCharacters
      • passwordMinimumLowerCaseCharacters

        protected Integer passwordMinimumLowerCaseCharacters
      • passwordMinimumNonLetterCharacters

        protected Integer passwordMinimumNonLetterCharacters
      • passwordMinimumNumericCharacters

        protected Integer passwordMinimumNumericCharacters
      • passwordMinimumSymbolCharacters

        protected Integer passwordMinimumSymbolCharacters
      • passwordMinimumUpperCaseCharacters

        protected Integer passwordMinimumUpperCaseCharacters
      • passwordMinutesOfInactivityBeforeLock

        protected Integer passwordMinutesOfInactivityBeforeLock
      • passwordPreviousPasswordCountToBlock

        protected Integer passwordPreviousPasswordCountToBlock
      • passwordRequired

        protected Boolean passwordRequired
      • securityRequireIntuneAppIntegrity

        protected Boolean securityRequireIntuneAppIntegrity
      • securityRequireSafetyNetAttestationBasicIntegrity

        protected Boolean securityRequireSafetyNetAttestationBasicIntegrity
      • securityRequireSafetyNetAttestationCertifiedDevice

        protected Boolean securityRequireSafetyNetAttestationCertifiedDevice
      • storageRequireEncryption

        protected Boolean storageRequireEncryption
    • Constructor Detail

      • AndroidDeviceOwnerCompliancePolicy

        protected AndroidDeviceOwnerCompliancePolicy()
    • Method Detail

      • builderAndroidDeviceOwnerCompliancePolicy

        public static AndroidDeviceOwnerCompliancePolicy.Builder builderAndroidDeviceOwnerCompliancePolicy()
        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
      • getAdvancedThreatProtectionRequiredSecurityLevel

        public Optional<DeviceThreatProtectionLevel> getAdvancedThreatProtectionRequiredSecurityLevel()
        “MDATP Require Mobile Threat Protection minimum risk level to report noncompliance.”
        Returns:
        property advancedThreatProtectionRequiredSecurityLevel
      • withAdvancedThreatProtectionRequiredSecurityLevel

        public AndroidDeviceOwnerCompliancePolicy withAdvancedThreatProtectionRequiredSecurityLevel​(DeviceThreatProtectionLevel advancedThreatProtectionRequiredSecurityLevel)
        Returns an immutable copy of this with just the advancedThreatProtectionRequiredSecurityLevel 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.

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

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

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

        public AndroidDeviceOwnerCompliancePolicy 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 AndroidDeviceOwnerCompliancePolicy 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 AndroidDeviceOwnerCompliancePolicy 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 AndroidDeviceOwnerCompliancePolicy 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 AndroidDeviceOwnerCompliancePolicy 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 AndroidDeviceOwnerCompliancePolicy 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 AndroidDeviceOwnerCompliancePolicy 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
      • getPasswordMinimumLetterCharacters

        public Optional<Integer> getPasswordMinimumLetterCharacters()
        “Indicates the minimum number of letter characters required for device password. Valid values 1 to 16”
        Returns:
        property passwordMinimumLetterCharacters
      • withPasswordMinimumLetterCharacters

        public AndroidDeviceOwnerCompliancePolicy withPasswordMinimumLetterCharacters​(Integer passwordMinimumLetterCharacters)
        Returns an immutable copy of this with just the passwordMinimumLetterCharacters 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 the minimum number of letter characters required for device password. Valid values 1 to 16”

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

        public Optional<Integer> getPasswordMinimumLowerCaseCharacters()
        “Indicates the minimum number of lower case characters required for device password. Valid values 1 to 16”
        Returns:
        property passwordMinimumLowerCaseCharacters
      • withPasswordMinimumLowerCaseCharacters

        public AndroidDeviceOwnerCompliancePolicy withPasswordMinimumLowerCaseCharacters​(Integer passwordMinimumLowerCaseCharacters)
        Returns an immutable copy of this with just the passwordMinimumLowerCaseCharacters 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 the minimum number of lower case characters required for device password. Valid values 1 to 16”

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

        public Optional<Integer> getPasswordMinimumNonLetterCharacters()
        “Indicates the minimum number of non-letter characters required for device password. Valid values 1 to 16”
        Returns:
        property passwordMinimumNonLetterCharacters
      • withPasswordMinimumNonLetterCharacters

        public AndroidDeviceOwnerCompliancePolicy withPasswordMinimumNonLetterCharacters​(Integer passwordMinimumNonLetterCharacters)
        Returns an immutable copy of this with just the passwordMinimumNonLetterCharacters 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 the minimum number of non-letter characters required for device password. Valid values 1 to 16”

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

        public Optional<Integer> getPasswordMinimumNumericCharacters()
        “Indicates the minimum number of numeric characters required for device password. Valid values 1 to 16”
        Returns:
        property passwordMinimumNumericCharacters
      • withPasswordMinimumNumericCharacters

        public AndroidDeviceOwnerCompliancePolicy withPasswordMinimumNumericCharacters​(Integer passwordMinimumNumericCharacters)
        Returns an immutable copy of this with just the passwordMinimumNumericCharacters 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 the minimum number of numeric characters required for device password. Valid values 1 to 16”

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

        public Optional<Integer> getPasswordMinimumSymbolCharacters()
        “Indicates the minimum number of symbol characters required for device password. Valid values 1 to 16”
        Returns:
        property passwordMinimumSymbolCharacters
      • withPasswordMinimumSymbolCharacters

        public AndroidDeviceOwnerCompliancePolicy withPasswordMinimumSymbolCharacters​(Integer passwordMinimumSymbolCharacters)
        Returns an immutable copy of this with just the passwordMinimumSymbolCharacters 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 the minimum number of symbol characters required for device password. Valid values 1 to 16”

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

        public Optional<Integer> getPasswordMinimumUpperCaseCharacters()
        “Indicates the minimum number of upper case letter characters required for device password. Valid values 1 to 16”
        Returns:
        property passwordMinimumUpperCaseCharacters
      • withPasswordMinimumUpperCaseCharacters

        public AndroidDeviceOwnerCompliancePolicy withPasswordMinimumUpperCaseCharacters​(Integer passwordMinimumUpperCaseCharacters)
        Returns an immutable copy of this with just the passwordMinimumUpperCaseCharacters 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 the minimum number of upper case letter characters required for device password. Valid values 1 to 16”

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

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

        public AndroidDeviceOwnerCompliancePolicy 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
      • getPasswordPreviousPasswordCountToBlock

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

        public AndroidDeviceOwnerCompliancePolicy withPasswordPreviousPasswordCountToBlock​(Integer passwordPreviousPasswordCountToBlock)
        Returns an immutable copy of this with just the passwordPreviousPasswordCountToBlock 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:
        passwordPreviousPasswordCountToBlock - new value of passwordPreviousPasswordCountToBlock field (as defined in service metadata)
        Returns:
        immutable copy of this with just the passwordPreviousPasswordCountToBlock field changed
      • getPasswordRequired

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

        public AndroidDeviceOwnerCompliancePolicy 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 AndroidDeviceOwnerCompliancePolicy withPasswordRequiredType​(AndroidDeviceOwnerRequiredPasswordType 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
      • getSecurityRequireIntuneAppIntegrity

        public Optional<Boolean> getSecurityRequireIntuneAppIntegrity()
        “If setting is set to true, checks that the Intune app installed on fully managed , dedicated, or corporate-owned work profile Android Enterprise enrolled devices , is the one provided by Microsoft from the Managed Google Playstore. If the check fails, the device will be reported as non-compliant.”
        Returns:
        property securityRequireIntuneAppIntegrity
      • withSecurityRequireIntuneAppIntegrity

        public AndroidDeviceOwnerCompliancePolicy withSecurityRequireIntuneAppIntegrity​(Boolean securityRequireIntuneAppIntegrity)
        Returns an immutable copy of this with just the securityRequireIntuneAppIntegrity 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.

        “If setting is set to true, checks that the Intune app installed on fully managed , dedicated, or corporate-owned work profile Android Enterprise enrolled devices , is the one provided by Microsoft from the Managed Google Playstore. If the check fails, the device will be reported as non-compliant.”

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

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

        public AndroidDeviceOwnerCompliancePolicy 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 SafetyNet 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 SafetyNet certified device check.”
        Returns:
        property securityRequireSafetyNetAttestationCertifiedDevice
      • withSecurityRequireSafetyNetAttestationCertifiedDevice

        public AndroidDeviceOwnerCompliancePolicy 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 SafetyNet certified device check.”

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

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

        public AndroidDeviceOwnerCompliancePolicy 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 AndroidDeviceOwnerCompliancePolicy 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 AndroidDeviceOwnerCompliancePolicy 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