Class AospDeviceOwnerCompliancePolicy

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

    public class AospDeviceOwnerCompliancePolicy
    extends DeviceCompliancePolicy
    implements com.github.davidmoten.odata.client.ODataEntityType
    “This topic provides descriptions of the declared methods, properties and relationships exposed by the AndroidDeviceOwnerAOSPCompliancePolicy resource.”
    • Field Detail

      • minAndroidSecurityPatchLevel

        protected String minAndroidSecurityPatchLevel
      • osMaximumVersion

        protected String osMaximumVersion
      • osMinimumVersion

        protected String osMinimumVersion
      • passwordMinimumLength

        protected Integer passwordMinimumLength
      • passwordMinutesOfInactivityBeforeLock

        protected Integer passwordMinutesOfInactivityBeforeLock
      • passwordRequired

        protected Boolean passwordRequired
      • securityBlockJailbrokenDevices

        protected Boolean securityBlockJailbrokenDevices
      • storageRequireEncryption

        protected Boolean storageRequireEncryption
    • Constructor Detail

      • AospDeviceOwnerCompliancePolicy

        protected AospDeviceOwnerCompliancePolicy()
    • Method Detail

      • builderAospDeviceOwnerCompliancePolicy

        public static AospDeviceOwnerCompliancePolicy.Builder builderAospDeviceOwnerCompliancePolicy()
        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
      • getMinAndroidSecurityPatchLevel

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

        public AospDeviceOwnerCompliancePolicy 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 AospDeviceOwnerCompliancePolicy 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 AospDeviceOwnerCompliancePolicy 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
      • getPasswordMinimumLength

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

        public AospDeviceOwnerCompliancePolicy 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. Valid values 1 to 8640”
        Returns:
        property passwordMinutesOfInactivityBeforeLock
      • withPasswordMinutesOfInactivityBeforeLock

        public AospDeviceOwnerCompliancePolicy 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. Valid values 1 to 8640”

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

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

        public AospDeviceOwnerCompliancePolicy 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 AospDeviceOwnerCompliancePolicy 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
      • getSecurityBlockJailbrokenDevices

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

        public AospDeviceOwnerCompliancePolicy 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
      • getStorageRequireEncryption

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

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