Class ManagedAppProtection

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataEntityType, com.github.davidmoten.odata.client.ODataType
    Direct Known Subclasses:
    DefaultManagedAppProtection, TargetedManagedAppProtection

    public class ManagedAppProtection
    extends ManagedAppPolicy
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Policy used to configure detailed management settings for a specified set of apps”
    • Field Detail

      • allowedDataIngestionLocationsNextLink

        protected String allowedDataIngestionLocationsNextLink
      • allowedDataStorageLocationsNextLink

        protected String allowedDataStorageLocationsNextLink
      • allowedOutboundClipboardSharingExceptionLength

        protected Integer allowedOutboundClipboardSharingExceptionLength
      • blockDataIngestionIntoOrganizationDocuments

        protected Boolean blockDataIngestionIntoOrganizationDocuments
      • contactSyncBlocked

        protected Boolean contactSyncBlocked
      • dataBackupBlocked

        protected Boolean dataBackupBlocked
      • deviceComplianceRequired

        protected Boolean deviceComplianceRequired
      • disableAppPinIfDevicePinIsSet

        protected Boolean disableAppPinIfDevicePinIsSet
      • fingerprintBlocked

        protected Boolean fingerprintBlocked
      • gracePeriodToBlockAppsDuringOffClockHours

        protected Duration gracePeriodToBlockAppsDuringOffClockHours
      • managedBrowserToOpenLinksRequired

        protected Boolean managedBrowserToOpenLinksRequired
      • maximumPinRetries

        protected Integer maximumPinRetries
      • maximumRequiredOsVersion

        protected String maximumRequiredOsVersion
      • maximumWarningOsVersion

        protected String maximumWarningOsVersion
      • maximumWipeOsVersion

        protected String maximumWipeOsVersion
      • minimumPinLength

        protected Integer minimumPinLength
      • minimumRequiredAppVersion

        protected String minimumRequiredAppVersion
      • minimumRequiredOsVersion

        protected String minimumRequiredOsVersion
      • minimumWarningAppVersion

        protected String minimumWarningAppVersion
      • minimumWarningOsVersion

        protected String minimumWarningOsVersion
      • minimumWipeAppVersion

        protected String minimumWipeAppVersion
      • minimumWipeOsVersion

        protected String minimumWipeOsVersion
      • organizationalCredentialsRequired

        protected Boolean organizationalCredentialsRequired
      • periodBeforePinReset

        protected Duration periodBeforePinReset
      • periodOfflineBeforeAccessCheck

        protected Duration periodOfflineBeforeAccessCheck
      • periodOfflineBeforeWipeIsEnforced

        protected Duration periodOfflineBeforeWipeIsEnforced
      • periodOnlineBeforeAccessCheck

        protected Duration periodOnlineBeforeAccessCheck
      • pinRequired

        protected Boolean pinRequired
      • pinRequiredInsteadOfBiometricTimeout

        protected Duration pinRequiredInsteadOfBiometricTimeout
      • previousPinBlockCount

        protected Integer previousPinBlockCount
      • printBlocked

        protected Boolean printBlocked
      • saveAsBlocked

        protected Boolean saveAsBlocked
      • simplePinBlocked

        protected Boolean simplePinBlocked
    • Constructor Detail

      • ManagedAppProtection

        protected ManagedAppProtection()
    • Method Detail

      • odataTypeName

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

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

        public com.github.davidmoten.odata.client.CollectionPage<ManagedAppDataIngestionLocation> getAllowedDataIngestionLocations()
        “Data storage locations where a user may store managed data.”
        Returns:
        property allowedDataIngestionLocations
      • withAllowedDataIngestionLocations

        public ManagedAppProtection withAllowedDataIngestionLocations​(List<ManagedAppDataIngestionLocation> allowedDataIngestionLocations)
        Returns an immutable copy of this with just the allowedDataIngestionLocations 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.

        “Data storage locations where a user may store managed data.”

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

        public com.github.davidmoten.odata.client.CollectionPage<ManagedAppDataIngestionLocation> getAllowedDataIngestionLocations​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “Data storage locations where a user may store managed data.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property allowedDataIngestionLocations
      • getAllowedDataStorageLocations

        public com.github.davidmoten.odata.client.CollectionPage<ManagedAppDataStorageLocation> getAllowedDataStorageLocations()
        “Data storage locations where a user may store managed data.”
        Returns:
        property allowedDataStorageLocations
      • withAllowedDataStorageLocations

        public ManagedAppProtection withAllowedDataStorageLocations​(List<ManagedAppDataStorageLocation> allowedDataStorageLocations)
        Returns an immutable copy of this with just the allowedDataStorageLocations 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.

        “Data storage locations where a user may store managed data.”

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

        public com.github.davidmoten.odata.client.CollectionPage<ManagedAppDataStorageLocation> getAllowedDataStorageLocations​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “Data storage locations where a user may store managed data.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property allowedDataStorageLocations
      • getAllowedInboundDataTransferSources

        public Optional<ManagedAppDataTransferLevel> getAllowedInboundDataTransferSources()
        “Sources from which data is allowed to be transferred.”
        Returns:
        property allowedInboundDataTransferSources
      • withAllowedInboundDataTransferSources

        public ManagedAppProtection withAllowedInboundDataTransferSources​(ManagedAppDataTransferLevel allowedInboundDataTransferSources)
        Returns an immutable copy of this with just the allowedInboundDataTransferSources 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.

        “Sources from which data is allowed to be transferred.”

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

        public Optional<Integer> getAllowedOutboundClipboardSharingExceptionLength()
        “Specify the number of characters that may be cut or copied from Org data and accounts to any application. This setting overrides the AllowedOutboundClipboardSharingLevel restriction. Default value of '0' means no exception is allowed.”
        Returns:
        property allowedOutboundClipboardSharingExceptionLength
      • withAllowedOutboundClipboardSharingExceptionLength

        public ManagedAppProtection withAllowedOutboundClipboardSharingExceptionLength​(Integer allowedOutboundClipboardSharingExceptionLength)
        Returns an immutable copy of this with just the allowedOutboundClipboardSharingExceptionLength 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.

        “Specify the number of characters that may be cut or copied from Org data and accounts to any application. This setting overrides the AllowedOutboundClipboardSharingLevel restriction. Default value of '0' means no exception is allowed.”

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

        public Optional<ManagedAppClipboardSharingLevel> getAllowedOutboundClipboardSharingLevel()
        “The level to which the clipboard may be shared between apps on the managed device.”
        Returns:
        property allowedOutboundClipboardSharingLevel
      • withAllowedOutboundClipboardSharingLevel

        public ManagedAppProtection withAllowedOutboundClipboardSharingLevel​(ManagedAppClipboardSharingLevel allowedOutboundClipboardSharingLevel)
        Returns an immutable copy of this with just the allowedOutboundClipboardSharingLevel 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.

        “The level to which the clipboard may be shared between apps on the managed device.”

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

        public Optional<ManagedAppDataTransferLevel> getAllowedOutboundDataTransferDestinations()
        “Destinations to which data is allowed to be transferred.”
        Returns:
        property allowedOutboundDataTransferDestinations
      • withAllowedOutboundDataTransferDestinations

        public ManagedAppProtection withAllowedOutboundDataTransferDestinations​(ManagedAppDataTransferLevel allowedOutboundDataTransferDestinations)
        Returns an immutable copy of this with just the allowedOutboundDataTransferDestinations 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.

        “Destinations to which data is allowed to be transferred.”

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

        public Optional<ManagedAppRemediationAction> getAppActionIfDeviceComplianceRequired()
        “Defines a managed app behavior, either block or wipe, when the device is either rooted or jailbroken, if DeviceComplianceRequired is set to true.”
        Returns:
        property appActionIfDeviceComplianceRequired
      • withAppActionIfDeviceComplianceRequired

        public ManagedAppProtection withAppActionIfDeviceComplianceRequired​(ManagedAppRemediationAction appActionIfDeviceComplianceRequired)
        Returns an immutable copy of this with just the appActionIfDeviceComplianceRequired 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.

        “Defines a managed app behavior, either block or wipe, when the device is either rooted or jailbroken, if DeviceComplianceRequired is set to true.”

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

        public Optional<ManagedAppRemediationAction> getAppActionIfMaximumPinRetriesExceeded()
        “Defines a managed app behavior, either block or wipe, based on maximum number of incorrect pin retry attempts.”
        Returns:
        property appActionIfMaximumPinRetriesExceeded
      • withAppActionIfMaximumPinRetriesExceeded

        public ManagedAppProtection withAppActionIfMaximumPinRetriesExceeded​(ManagedAppRemediationAction appActionIfMaximumPinRetriesExceeded)
        Returns an immutable copy of this with just the appActionIfMaximumPinRetriesExceeded 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.

        “Defines a managed app behavior, either block or wipe, based on maximum number of incorrect pin retry attempts.”

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

        public Optional<ManagedAppRemediationAction> getAppActionIfUnableToAuthenticateUser()
        “If set, it will specify what action to take in the case where the user is unable to checkin because their authentication token is invalid. This happens when the user is deleted or disabled in AAD.”
        Returns:
        property appActionIfUnableToAuthenticateUser
      • withAppActionIfUnableToAuthenticateUser

        public ManagedAppProtection withAppActionIfUnableToAuthenticateUser​(ManagedAppRemediationAction appActionIfUnableToAuthenticateUser)
        Returns an immutable copy of this with just the appActionIfUnableToAuthenticateUser 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 set, it will specify what action to take in the case where the user is unable to checkin because their authentication token is invalid. This happens when the user is deleted or disabled in AAD.”

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

        public Optional<Boolean> getBlockDataIngestionIntoOrganizationDocuments()
        “Indicates whether a user can bring data into org documents.”
        Returns:
        property blockDataIngestionIntoOrganizationDocuments
      • withBlockDataIngestionIntoOrganizationDocuments

        public ManagedAppProtection withBlockDataIngestionIntoOrganizationDocuments​(Boolean blockDataIngestionIntoOrganizationDocuments)
        Returns an immutable copy of this with just the blockDataIngestionIntoOrganizationDocuments 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 a user can bring data into org documents.”

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

        public Optional<Boolean> getContactSyncBlocked()
        “Indicates whether contacts can be synced to the user's device.”
        Returns:
        property contactSyncBlocked
      • withContactSyncBlocked

        public ManagedAppProtection withContactSyncBlocked​(Boolean contactSyncBlocked)
        Returns an immutable copy of this with just the contactSyncBlocked 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 contacts can be synced to the user's device.”

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

        public Optional<Boolean> getDataBackupBlocked()
        “Indicates whether the backup of a managed app's data is blocked.”
        Returns:
        property dataBackupBlocked
      • withDataBackupBlocked

        public ManagedAppProtection withDataBackupBlocked​(Boolean dataBackupBlocked)
        Returns an immutable copy of this with just the dataBackupBlocked 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 the backup of a managed app's data is blocked.”

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

        public Optional<Boolean> getDeviceComplianceRequired()
        “Indicates whether device compliance is required.”
        Returns:
        property deviceComplianceRequired
      • withDeviceComplianceRequired

        public ManagedAppProtection withDeviceComplianceRequired​(Boolean deviceComplianceRequired)
        Returns an immutable copy of this with just the deviceComplianceRequired 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 device compliance is required.”

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

        public Optional<ManagedAppPhoneNumberRedirectLevel> getDialerRestrictionLevel()
        “The classes of dialer apps that are allowed to click-to-open a phone number.”
        Returns:
        property dialerRestrictionLevel
      • withDialerRestrictionLevel

        public ManagedAppProtection withDialerRestrictionLevel​(ManagedAppPhoneNumberRedirectLevel dialerRestrictionLevel)
        Returns an immutable copy of this with just the dialerRestrictionLevel 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.

        “The classes of dialer apps that are allowed to click-to-open a phone number.”

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

        public Optional<Boolean> getDisableAppPinIfDevicePinIsSet()
        “Indicates whether use of the app pin is required if the device pin is set.”
        Returns:
        property disableAppPinIfDevicePinIsSet
      • withDisableAppPinIfDevicePinIsSet

        public ManagedAppProtection withDisableAppPinIfDevicePinIsSet​(Boolean disableAppPinIfDevicePinIsSet)
        Returns an immutable copy of this with just the disableAppPinIfDevicePinIsSet 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 use of the app pin is required if the device pin is set.”

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

        public Optional<Boolean> getFingerprintBlocked()
        “Indicates whether use of the fingerprint reader is allowed in place of a pin if PinRequired is set to True.”
        Returns:
        property fingerprintBlocked
      • withFingerprintBlocked

        public ManagedAppProtection withFingerprintBlocked​(Boolean fingerprintBlocked)
        Returns an immutable copy of this with just the fingerprintBlocked 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 use of the fingerprint reader is allowed in place of a pin if PinRequired is set to True.”

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

        public Optional<Duration> getGracePeriodToBlockAppsDuringOffClockHours()
        “A grace period before blocking app access during off clock hours.”
        Returns:
        property gracePeriodToBlockAppsDuringOffClockHours
      • withGracePeriodToBlockAppsDuringOffClockHours

        public ManagedAppProtection withGracePeriodToBlockAppsDuringOffClockHours​(Duration gracePeriodToBlockAppsDuringOffClockHours)
        Returns an immutable copy of this with just the gracePeriodToBlockAppsDuringOffClockHours 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.

        “A grace period before blocking app access during off clock hours.”

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

        public Optional<ManagedBrowserType> getManagedBrowser()
        “Indicates in which managed browser(s) that internet links should be opened. When this property is configured, ManagedBrowserToOpenLinksRequired should be true.”
        Returns:
        property managedBrowser
      • withManagedBrowser

        public ManagedAppProtection withManagedBrowser​(ManagedBrowserType managedBrowser)
        Returns an immutable copy of this with just the managedBrowser 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 in which managed browser(s) that internet links should be opened. When this property is configured, ManagedBrowserToOpenLinksRequired should be true.”

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

        public Optional<Boolean> getManagedBrowserToOpenLinksRequired()
        “Indicates whether internet links should be opened in the managed browser app, or any custom browser specified by CustomBrowserProtocol (for iOS) or CustomBrowserPackageId/CustomBrowserDisplayName (for Android)”
        Returns:
        property managedBrowserToOpenLinksRequired
      • withManagedBrowserToOpenLinksRequired

        public ManagedAppProtection withManagedBrowserToOpenLinksRequired​(Boolean managedBrowserToOpenLinksRequired)
        Returns an immutable copy of this with just the managedBrowserToOpenLinksRequired 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 internet links should be opened in the managed browser app, or any custom browser specified by CustomBrowserProtocol (for iOS) or CustomBrowserPackageId/CustomBrowserDisplayName (for Android)”

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

        public Optional<ManagedAppDeviceThreatLevel> getMaximumAllowedDeviceThreatLevel()
        “Maximum allowed device threat level, as reported by the MTD app”
        Returns:
        property maximumAllowedDeviceThreatLevel
      • withMaximumAllowedDeviceThreatLevel

        public ManagedAppProtection withMaximumAllowedDeviceThreatLevel​(ManagedAppDeviceThreatLevel maximumAllowedDeviceThreatLevel)
        Returns an immutable copy of this with just the maximumAllowedDeviceThreatLevel 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 allowed device threat level, as reported by the MTD app”

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

        public Optional<Integer> getMaximumPinRetries()
        “Maximum number of incorrect pin retry attempts before the managed app is either blocked or wiped.”
        Returns:
        property maximumPinRetries
      • withMaximumPinRetries

        public ManagedAppProtection withMaximumPinRetries​(Integer maximumPinRetries)
        Returns an immutable copy of this with just the maximumPinRetries 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 number of incorrect pin retry attempts before the managed app is either blocked or wiped.”

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

        public Optional<String> getMaximumRequiredOsVersion()
        “Versions bigger than the specified version will block the managed app from accessing company data.”
        Returns:
        property maximumRequiredOsVersion
      • withMaximumRequiredOsVersion

        public ManagedAppProtection withMaximumRequiredOsVersion​(String maximumRequiredOsVersion)
        Returns an immutable copy of this with just the maximumRequiredOsVersion 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.

        “Versions bigger than the specified version will block the managed app from accessing company data.”

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

        public Optional<String> getMaximumWarningOsVersion()
        “Versions bigger than the specified version will block the managed app from accessing company data.”
        Returns:
        property maximumWarningOsVersion
      • withMaximumWarningOsVersion

        public ManagedAppProtection withMaximumWarningOsVersion​(String maximumWarningOsVersion)
        Returns an immutable copy of this with just the maximumWarningOsVersion 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.

        “Versions bigger than the specified version will block the managed app from accessing company data.”

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

        public Optional<String> getMaximumWipeOsVersion()
        “Versions bigger than the specified version will block the managed app from accessing company data.”
        Returns:
        property maximumWipeOsVersion
      • withMaximumWipeOsVersion

        public ManagedAppProtection withMaximumWipeOsVersion​(String maximumWipeOsVersion)
        Returns an immutable copy of this with just the maximumWipeOsVersion 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.

        “Versions bigger than the specified version will block the managed app from accessing company data.”

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

        public Optional<Integer> getMinimumPinLength()
        “Minimum pin length required for an app-level pin if PinRequired is set to True”
        Returns:
        property minimumPinLength
      • withMinimumPinLength

        public ManagedAppProtection withMinimumPinLength​(Integer minimumPinLength)
        Returns an immutable copy of this with just the minimumPinLength 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 pin length required for an app-level pin if PinRequired is set to True”

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

        public Optional<String> getMinimumRequiredAppVersion()
        “Versions less than the specified version will block the managed app from accessing company data.”
        Returns:
        property minimumRequiredAppVersion
      • withMinimumRequiredAppVersion

        public ManagedAppProtection withMinimumRequiredAppVersion​(String minimumRequiredAppVersion)
        Returns an immutable copy of this with just the minimumRequiredAppVersion 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.

        “Versions less than the specified version will block the managed app from accessing company data.”

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

        public Optional<String> getMinimumRequiredOsVersion()
        “Versions less than the specified version will block the managed app from accessing company data.”
        Returns:
        property minimumRequiredOsVersion
      • withMinimumRequiredOsVersion

        public ManagedAppProtection withMinimumRequiredOsVersion​(String minimumRequiredOsVersion)
        Returns an immutable copy of this with just the minimumRequiredOsVersion 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.

        “Versions less than the specified version will block the managed app from accessing company data.”

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

        public Optional<String> getMinimumWarningAppVersion()
        “Versions less than the specified version will result in warning message on the managed app.”
        Returns:
        property minimumWarningAppVersion
      • withMinimumWarningAppVersion

        public ManagedAppProtection withMinimumWarningAppVersion​(String minimumWarningAppVersion)
        Returns an immutable copy of this with just the minimumWarningAppVersion 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.

        “Versions less than the specified version will result in warning message on the managed app.”

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

        public Optional<String> getMinimumWarningOsVersion()
        “Versions less than the specified version will result in warning message on the managed app from accessing company data.”
        Returns:
        property minimumWarningOsVersion
      • withMinimumWarningOsVersion

        public ManagedAppProtection withMinimumWarningOsVersion​(String minimumWarningOsVersion)
        Returns an immutable copy of this with just the minimumWarningOsVersion 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.

        “Versions less than the specified version will result in warning message on the managed app from accessing company data.”

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

        public Optional<String> getMinimumWipeAppVersion()
        “Versions less than or equal to the specified version will wipe the managed app and the associated company data.”
        Returns:
        property minimumWipeAppVersion
      • withMinimumWipeAppVersion

        public ManagedAppProtection withMinimumWipeAppVersion​(String minimumWipeAppVersion)
        Returns an immutable copy of this with just the minimumWipeAppVersion 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.

        “Versions less than or equal to the specified version will wipe the managed app and the associated company data.”

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

        public Optional<String> getMinimumWipeOsVersion()
        “Versions less than or equal to the specified version will wipe the managed app and the associated company data.”
        Returns:
        property minimumWipeOsVersion
      • withMinimumWipeOsVersion

        public ManagedAppProtection withMinimumWipeOsVersion​(String minimumWipeOsVersion)
        Returns an immutable copy of this with just the minimumWipeOsVersion 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.

        “Versions less than or equal to the specified version will wipe the managed app and the associated company data.”

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

        public Optional<ManagedAppRemediationAction> getMobileThreatDefenseRemediationAction()
        “Determines what action to take if the mobile threat defense threat threshold isn 't met. Warn isn't a supported value for this property”
        Returns:
        property mobileThreatDefenseRemediationAction
      • withMobileThreatDefenseRemediationAction

        public ManagedAppProtection withMobileThreatDefenseRemediationAction​(ManagedAppRemediationAction mobileThreatDefenseRemediationAction)
        Returns an immutable copy of this with just the mobileThreatDefenseRemediationAction 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.

        “Determines what action to take if the mobile threat defense threat threshold isn 't met. Warn isn't a supported value for this property”

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

        public ManagedAppProtection withNotificationRestriction​(ManagedAppNotificationRestriction notificationRestriction)
        Returns an immutable copy of this with just the notificationRestriction 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.

        “Specify app notification restriction”

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

        public Optional<Boolean> getOrganizationalCredentialsRequired()
        “Indicates whether organizational credentials are required for app use.”
        Returns:
        property organizationalCredentialsRequired
      • withOrganizationalCredentialsRequired

        public ManagedAppProtection withOrganizationalCredentialsRequired​(Boolean organizationalCredentialsRequired)
        Returns an immutable copy of this with just the organizationalCredentialsRequired 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 organizational credentials are required for app use.”

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

        public Optional<Duration> getPeriodBeforePinReset()
        “TimePeriod before the all-level pin must be reset if PinRequired is set to True.”
        Returns:
        property periodBeforePinReset
      • withPeriodBeforePinReset

        public ManagedAppProtection withPeriodBeforePinReset​(Duration periodBeforePinReset)
        Returns an immutable copy of this with just the periodBeforePinReset 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.

        “TimePeriod before the all-level pin must be reset if PinRequired is set to True.”

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

        public Optional<Duration> getPeriodOfflineBeforeAccessCheck()
        “The period after which access is checked when the device is not connected to the internet.”
        Returns:
        property periodOfflineBeforeAccessCheck
      • withPeriodOfflineBeforeAccessCheck

        public ManagedAppProtection withPeriodOfflineBeforeAccessCheck​(Duration periodOfflineBeforeAccessCheck)
        Returns an immutable copy of this with just the periodOfflineBeforeAccessCheck 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.

        “The period after which access is checked when the device is not connected to the internet.”

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

        public Optional<Duration> getPeriodOfflineBeforeWipeIsEnforced()
        “The amount of time an app is allowed to remain disconnected from the internet before all managed data it is wiped.”
        Returns:
        property periodOfflineBeforeWipeIsEnforced
      • withPeriodOfflineBeforeWipeIsEnforced

        public ManagedAppProtection withPeriodOfflineBeforeWipeIsEnforced​(Duration periodOfflineBeforeWipeIsEnforced)
        Returns an immutable copy of this with just the periodOfflineBeforeWipeIsEnforced 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.

        “The amount of time an app is allowed to remain disconnected from the internet before all managed data it is wiped.”

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

        public Optional<Duration> getPeriodOnlineBeforeAccessCheck()
        “The period after which access is checked when the device is connected to the internet.”
        Returns:
        property periodOnlineBeforeAccessCheck
      • withPeriodOnlineBeforeAccessCheck

        public ManagedAppProtection withPeriodOnlineBeforeAccessCheck​(Duration periodOnlineBeforeAccessCheck)
        Returns an immutable copy of this with just the periodOnlineBeforeAccessCheck 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.

        “The period after which access is checked when the device is connected to the internet.”

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

        public Optional<ManagedAppPinCharacterSet> getPinCharacterSet()
        “Character set which may be used for an app-level pin if PinRequired is set to True.”
        Returns:
        property pinCharacterSet
      • withPinCharacterSet

        public ManagedAppProtection withPinCharacterSet​(ManagedAppPinCharacterSet pinCharacterSet)
        Returns an immutable copy of this with just the pinCharacterSet 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.

        “Character set which may be used for an app-level pin if PinRequired is set to True.”

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

        public Optional<Boolean> getPinRequired()
        “Indicates whether an app-level pin is required.”
        Returns:
        property pinRequired
      • withPinRequired

        public ManagedAppProtection withPinRequired​(Boolean pinRequired)
        Returns an immutable copy of this with just the pinRequired 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 an app-level pin is required.”

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

        public Optional<Duration> getPinRequiredInsteadOfBiometricTimeout()
        “Timeout in minutes for an app pin instead of non biometrics passcode”
        Returns:
        property pinRequiredInsteadOfBiometricTimeout
      • withPinRequiredInsteadOfBiometricTimeout

        public ManagedAppProtection withPinRequiredInsteadOfBiometricTimeout​(Duration pinRequiredInsteadOfBiometricTimeout)
        Returns an immutable copy of this with just the pinRequiredInsteadOfBiometricTimeout 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.

        “Timeout in minutes for an app pin instead of non biometrics passcode”

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

        public Optional<Integer> getPreviousPinBlockCount()
        “Requires a pin to be unique from the number specified in this property.”
        Returns:
        property previousPinBlockCount
      • withPreviousPinBlockCount

        public ManagedAppProtection withPreviousPinBlockCount​(Integer previousPinBlockCount)
        Returns an immutable copy of this with just the previousPinBlockCount 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.

        “Requires a pin to be unique from the number specified in this property.”

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

        public Optional<Boolean> getPrintBlocked()
        “Indicates whether printing is allowed from managed apps.”
        Returns:
        property printBlocked
      • withPrintBlocked

        public ManagedAppProtection withPrintBlocked​(Boolean printBlocked)
        Returns an immutable copy of this with just the printBlocked 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 printing is allowed from managed apps.”

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

        public Optional<Boolean> getSaveAsBlocked()
        “Indicates whether users may use the "Save As" menu item to save a copy of protected files.”
        Returns:
        property saveAsBlocked
      • withSaveAsBlocked

        public ManagedAppProtection withSaveAsBlocked​(Boolean saveAsBlocked)
        Returns an immutable copy of this with just the saveAsBlocked 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 users may use the "Save As" menu item to save a copy of protected files.”

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

        public Optional<Boolean> getSimplePinBlocked()
        “Indicates whether simplePin is blocked.”
        Returns:
        property simplePinBlocked
      • withSimplePinBlocked

        public ManagedAppProtection withSimplePinBlocked​(Boolean simplePinBlocked)
        Returns an immutable copy of this with just the simplePinBlocked 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 simplePin is blocked.”

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

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