Class AospDeviceOwnerDeviceConfiguration

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

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

      • appsAllowInstallFromUnknownSources

        protected Boolean appsAllowInstallFromUnknownSources
      • backupBlocked

        protected Boolean backupBlocked
      • bluetoothBlockConfiguration

        protected Boolean bluetoothBlockConfiguration
      • bluetoothBlockContactSharing

        protected Boolean bluetoothBlockContactSharing
      • bluetoothBlocked

        protected Boolean bluetoothBlocked
      • cameraBlocked

        protected Boolean cameraBlocked
      • cellularBlockWiFiTethering

        protected Boolean cellularBlockWiFiTethering
      • factoryResetBlocked

        protected Boolean factoryResetBlocked
      • passwordMinimumLength

        protected Integer passwordMinimumLength
      • passwordMinutesOfInactivityBeforeScreenTimeout

        protected Integer passwordMinutesOfInactivityBeforeScreenTimeout
      • passwordSignInFailureCountBeforeFactoryReset

        protected Integer passwordSignInFailureCountBeforeFactoryReset
      • screenCaptureBlocked

        protected Boolean screenCaptureBlocked
      • securityAllowDebuggingFeatures

        protected Boolean securityAllowDebuggingFeatures
      • storageAllowUsb

        protected Boolean storageAllowUsb
      • storageBlockExternalMedia

        protected Boolean storageBlockExternalMedia
      • storageBlockUsbFileTransfer

        protected Boolean storageBlockUsbFileTransfer
      • wifiBlockEditConfigurations

        protected Boolean wifiBlockEditConfigurations
    • Constructor Detail

      • AospDeviceOwnerDeviceConfiguration

        protected AospDeviceOwnerDeviceConfiguration()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class DeviceConfiguration
      • builderAospDeviceOwnerDeviceConfiguration

        public static AospDeviceOwnerDeviceConfiguration.Builder builderAospDeviceOwnerDeviceConfiguration()
        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 DeviceConfiguration
      • postInject

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

        public Optional<Boolean> getAppsAllowInstallFromUnknownSources()
        “Indicates whether or not the user is allowed to enable to unknown sources setting.”
        Returns:
        property appsAllowInstallFromUnknownSources
      • withAppsAllowInstallFromUnknownSources

        public AospDeviceOwnerDeviceConfiguration withAppsAllowInstallFromUnknownSources​(Boolean appsAllowInstallFromUnknownSources)
        Returns an immutable copy of this with just the appsAllowInstallFromUnknownSources 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 whether or not the user is allowed to enable to unknown sources setting.”

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

        public Optional<Boolean> getBackupBlocked()
        “Indicates whether or not to block backup service.”
        Returns:
        property backupBlocked
      • withBackupBlocked

        public AospDeviceOwnerDeviceConfiguration withBackupBlocked​(Boolean backupBlocked)
        Returns an immutable copy of this with just the backupBlocked 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 whether or not to block backup service.”

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

        public Optional<Boolean> getBluetoothBlockConfiguration()
        “Indicates whether or not to block a user from configuring bluetooth.”
        Returns:
        property bluetoothBlockConfiguration
      • withBluetoothBlockConfiguration

        public AospDeviceOwnerDeviceConfiguration withBluetoothBlockConfiguration​(Boolean bluetoothBlockConfiguration)
        Returns an immutable copy of this with just the bluetoothBlockConfiguration 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 whether or not to block a user from configuring bluetooth.”

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

        public Optional<Boolean> getBluetoothBlockContactSharing()
        “Indicates whether or not to block a user from sharing contacts via bluetooth.”
        Returns:
        property bluetoothBlockContactSharing
      • withBluetoothBlockContactSharing

        public AospDeviceOwnerDeviceConfiguration withBluetoothBlockContactSharing​(Boolean bluetoothBlockContactSharing)
        Returns an immutable copy of this with just the bluetoothBlockContactSharing 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 whether or not to block a user from sharing contacts via bluetooth.”

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

        public Optional<Boolean> getBluetoothBlocked()
        “Indicates whether or not to disable the use of bluetooth. When set to true, bluetooth cannot be enabled on the device.”
        Returns:
        property bluetoothBlocked
      • withBluetoothBlocked

        public AospDeviceOwnerDeviceConfiguration withBluetoothBlocked​(Boolean bluetoothBlocked)
        Returns an immutable copy of this with just the bluetoothBlocked 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 whether or not to disable the use of bluetooth. When set to true, bluetooth cannot be enabled on the device.”

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

        public Optional<Boolean> getCameraBlocked()
        “Indicates whether or not to disable the use of the camera.”
        Returns:
        property cameraBlocked
      • withCameraBlocked

        public AospDeviceOwnerDeviceConfiguration withCameraBlocked​(Boolean cameraBlocked)
        Returns an immutable copy of this with just the cameraBlocked 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 whether or not to disable the use of the camera.”

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

        public Optional<Boolean> getCellularBlockWiFiTethering()
        “Indicates whether or not to block Wi-Fi tethering.”
        Returns:
        property cellularBlockWiFiTethering
      • withCellularBlockWiFiTethering

        public AospDeviceOwnerDeviceConfiguration withCellularBlockWiFiTethering​(Boolean cellularBlockWiFiTethering)
        Returns an immutable copy of this with just the cellularBlockWiFiTethering 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 whether or not to block Wi-Fi tethering.”

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

        public Optional<Boolean> getFactoryResetBlocked()
        “Indicates whether or not the factory reset option in settings is disabled.”
        Returns:
        property factoryResetBlocked
      • withFactoryResetBlocked

        public AospDeviceOwnerDeviceConfiguration withFactoryResetBlocked​(Boolean factoryResetBlocked)
        Returns an immutable copy of this with just the factoryResetBlocked 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 whether or not the factory reset option in settings is disabled.”

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

        public Optional<Integer> getPasswordMinimumLength()
        “Indicates the minimum length of the password required on the device. Valid values 4 to 16”
        Returns:
        property passwordMinimumLength
      • withPasswordMinimumLength

        public AospDeviceOwnerDeviceConfiguration 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.

        “Indicates the minimum length of the password required on the device. 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
      • getPasswordMinutesOfInactivityBeforeScreenTimeout

        public Optional<Integer> getPasswordMinutesOfInactivityBeforeScreenTimeout()
        “Minutes of inactivity before the screen times out.”
        Returns:
        property passwordMinutesOfInactivityBeforeScreenTimeout
      • withPasswordMinutesOfInactivityBeforeScreenTimeout

        public AospDeviceOwnerDeviceConfiguration withPasswordMinutesOfInactivityBeforeScreenTimeout​(Integer passwordMinutesOfInactivityBeforeScreenTimeout)
        Returns an immutable copy of this with just the passwordMinutesOfInactivityBeforeScreenTimeout 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 the screen times out.”

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

        public AospDeviceOwnerDeviceConfiguration 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.

        “Indicates the minimum password quality required on the device.”

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

        public Optional<Integer> getPasswordSignInFailureCountBeforeFactoryReset()
        “Indicates the number of times a user can enter an incorrect password before the device is wiped. Valid values 4 to 11”
        Returns:
        property passwordSignInFailureCountBeforeFactoryReset
      • withPasswordSignInFailureCountBeforeFactoryReset

        public AospDeviceOwnerDeviceConfiguration withPasswordSignInFailureCountBeforeFactoryReset​(Integer passwordSignInFailureCountBeforeFactoryReset)
        Returns an immutable copy of this with just the passwordSignInFailureCountBeforeFactoryReset 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 number of times a user can enter an incorrect password before the device is wiped. Valid values 4 to 11”

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

        public Optional<Boolean> getScreenCaptureBlocked()
        “Indicates whether or not to disable the capability to take screenshots.”
        Returns:
        property screenCaptureBlocked
      • withScreenCaptureBlocked

        public AospDeviceOwnerDeviceConfiguration withScreenCaptureBlocked​(Boolean screenCaptureBlocked)
        Returns an immutable copy of this with just the screenCaptureBlocked 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 whether or not to disable the capability to take screenshots.”

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

        public Optional<Boolean> getSecurityAllowDebuggingFeatures()
        “Indicates whether or not to block the user from enabling debugging features on the device.”
        Returns:
        property securityAllowDebuggingFeatures
      • withSecurityAllowDebuggingFeatures

        public AospDeviceOwnerDeviceConfiguration withSecurityAllowDebuggingFeatures​(Boolean securityAllowDebuggingFeatures)
        Returns an immutable copy of this with just the securityAllowDebuggingFeatures 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 whether or not to block the user from enabling debugging features on the device.”

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

        public Optional<Boolean> getStorageAllowUsb()
        “Indicates whether or not to block USB storage.”
        Returns:
        property storageAllowUsb
      • withStorageAllowUsb

        public AospDeviceOwnerDeviceConfiguration withStorageAllowUsb​(Boolean storageAllowUsb)
        Returns an immutable copy of this with just the storageAllowUsb 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 whether or not to block USB storage.”

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

        public Optional<Boolean> getStorageBlockExternalMedia()
        “Indicates whether or not to block external media.”
        Returns:
        property storageBlockExternalMedia
      • withStorageBlockExternalMedia

        public AospDeviceOwnerDeviceConfiguration withStorageBlockExternalMedia​(Boolean storageBlockExternalMedia)
        Returns an immutable copy of this with just the storageBlockExternalMedia 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 whether or not to block external media.”

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

        public Optional<Boolean> getStorageBlockUsbFileTransfer()
        “Indicates whether or not to block USB file transfer.”
        Returns:
        property storageBlockUsbFileTransfer
      • withStorageBlockUsbFileTransfer

        public AospDeviceOwnerDeviceConfiguration withStorageBlockUsbFileTransfer​(Boolean storageBlockUsbFileTransfer)
        Returns an immutable copy of this with just the storageBlockUsbFileTransfer 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 whether or not to block USB file transfer.”

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

        public Optional<Boolean> getWifiBlockEditConfigurations()
        “Indicates whether or not to block the user from editing the wifi connection settings.”
        Returns:
        property wifiBlockEditConfigurations
      • withWifiBlockEditConfigurations

        public AospDeviceOwnerDeviceConfiguration withWifiBlockEditConfigurations​(Boolean wifiBlockEditConfigurations)
        Returns an immutable copy of this with just the wifiBlockEditConfigurations 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 whether or not to block the user from editing the wifi connection settings.”

        Parameters:
        wifiBlockEditConfigurations - new value of wifiBlockEditConfigurations field (as defined in service metadata)
        Returns:
        immutable copy of this with just the wifiBlockEditConfigurations 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 DeviceConfiguration
      • patch

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