Class DefaultManagedAppProtection

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

    public class DefaultManagedAppProtection
    extends ManagedAppProtection
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Policy used to configure detailed management settings for a specified set of apps for all users not targeted by a TargetedManagedAppProtection Policy”
    • Field Detail

      • customSettingsNextLink

        protected String customSettingsNextLink
      • deployedAppCount

        protected Integer deployedAppCount
      • disableAppEncryptionIfDeviceEncryptionIsEnabled

        protected Boolean disableAppEncryptionIfDeviceEncryptionIsEnabled
      • encryptAppData

        protected Boolean encryptAppData
      • faceIdBlocked

        protected Boolean faceIdBlocked
      • minimumRequiredPatchVersion

        protected String minimumRequiredPatchVersion
      • minimumRequiredSdkVersion

        protected String minimumRequiredSdkVersion
      • minimumWarningPatchVersion

        protected String minimumWarningPatchVersion
      • screenCaptureBlocked

        protected Boolean screenCaptureBlocked
    • Constructor Detail

      • DefaultManagedAppProtection

        protected DefaultManagedAppProtection()
    • Method Detail

      • builderDefaultManagedAppProtection

        public static DefaultManagedAppProtection.Builder builderDefaultManagedAppProtection()
        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 ManagedAppProtection
      • postInject

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

        public Optional<ManagedAppDataEncryptionType> getAppDataEncryptionType()
        “Type of encryption which should be used for data in a managed app. (iOS Only)”
        Returns:
        property appDataEncryptionType
      • withAppDataEncryptionType

        public DefaultManagedAppProtection withAppDataEncryptionType​(ManagedAppDataEncryptionType appDataEncryptionType)
        Returns an immutable copy of this with just the appDataEncryptionType 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 encryption which should be used for data in a managed app. (iOS Only)”

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

        public com.github.davidmoten.odata.client.CollectionPage<KeyValuePair> getCustomSettings()
        “A set of string key and string value pairs to be sent to the affected users, unalterned by this service”
        Returns:
        property customSettings
      • withCustomSettings

        public DefaultManagedAppProtection withCustomSettings​(List<KeyValuePair> customSettings)
        Returns an immutable copy of this with just the customSettings 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 set of string key and string value pairs to be sent to the affected users, unalterned by this service”

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

        public com.github.davidmoten.odata.client.CollectionPage<KeyValuePair> getCustomSettings​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “A set of string key and string value pairs to be sent to the affected users, unalterned by this service”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property customSettings
      • getDeployedAppCount

        public Optional<Integer> getDeployedAppCount()
        “Count of apps to which the current policy is deployed.”
        Returns:
        property deployedAppCount
      • withDeployedAppCount

        public DefaultManagedAppProtection withDeployedAppCount​(Integer deployedAppCount)
        Returns an immutable copy of this with just the deployedAppCount 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.

        “Count of apps to which the current policy is deployed.”

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

        public Optional<Boolean> getDisableAppEncryptionIfDeviceEncryptionIsEnabled()
        “When this setting is enabled, app level encryption is disabled if device level encryption is enabled. (Android only)”
        Returns:
        property disableAppEncryptionIfDeviceEncryptionIsEnabled
      • withDisableAppEncryptionIfDeviceEncryptionIsEnabled

        public DefaultManagedAppProtection withDisableAppEncryptionIfDeviceEncryptionIsEnabled​(Boolean disableAppEncryptionIfDeviceEncryptionIsEnabled)
        Returns an immutable copy of this with just the disableAppEncryptionIfDeviceEncryptionIsEnabled 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.

        “When this setting is enabled, app level encryption is disabled if device level encryption is enabled. (Android only)”

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

        public Optional<Boolean> getEncryptAppData()
        “Indicates whether managed-app data should be encrypted. (Android only)”
        Returns:
        property encryptAppData
      • withEncryptAppData

        public DefaultManagedAppProtection withEncryptAppData​(Boolean encryptAppData)
        Returns an immutable copy of this with just the encryptAppData 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 managed-app data should be encrypted. (Android only)”

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

        public Optional<Boolean> getFaceIdBlocked()
        “Indicates whether use of the FaceID is allowed in place of a pin if PinRequired is set to True. (iOS Only)”
        Returns:
        property faceIdBlocked
      • withFaceIdBlocked

        public DefaultManagedAppProtection withFaceIdBlocked​(Boolean faceIdBlocked)
        Returns an immutable copy of this with just the faceIdBlocked 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 FaceID is allowed in place of a pin if PinRequired is set to True. (iOS Only)”

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

        public Optional<String> getMinimumRequiredPatchVersion()
        “Define the oldest required Android security patch level a user can have to gain secure access to the app. (Android only)”
        Returns:
        property minimumRequiredPatchVersion
      • withMinimumRequiredPatchVersion

        public DefaultManagedAppProtection withMinimumRequiredPatchVersion​(String minimumRequiredPatchVersion)
        Returns an immutable copy of this with just the minimumRequiredPatchVersion 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.

        “Define the oldest required Android security patch level a user can have to gain secure access to the app. (Android only)”

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

        public Optional<String> getMinimumRequiredSdkVersion()
        “Versions less than the specified version will block the managed app from accessing company data. (iOS Only)”
        Returns:
        property minimumRequiredSdkVersion
      • withMinimumRequiredSdkVersion

        public DefaultManagedAppProtection withMinimumRequiredSdkVersion​(String minimumRequiredSdkVersion)
        Returns an immutable copy of this with just the minimumRequiredSdkVersion 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. (iOS Only)”

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

        public Optional<String> getMinimumWarningPatchVersion()
        “Define the oldest recommended Android security patch level a user can have for secure access to the app. (Android only)”
        Returns:
        property minimumWarningPatchVersion
      • withMinimumWarningPatchVersion

        public DefaultManagedAppProtection withMinimumWarningPatchVersion​(String minimumWarningPatchVersion)
        Returns an immutable copy of this with just the minimumWarningPatchVersion 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.

        “Define the oldest recommended Android security patch level a user can have for secure access to the app. (Android only)”

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

        public Optional<Boolean> getScreenCaptureBlocked()
        “Indicates whether screen capture is blocked. (Android only)”
        Returns:
        property screenCaptureBlocked
      • withScreenCaptureBlocked

        public DefaultManagedAppProtection 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 screen capture is blocked. (Android only)”

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

        public ManagedAppPolicyDeploymentSummaryRequest getDeploymentSummary()
        “Navigation property to deployment summary of the configuration.”
        Returns:
        navigational property deploymentSummary
      • withApps

        public DefaultManagedAppProtection withApps​(List<ManagedMobileApp> apps)
        Returns an immutable copy of this with just the apps 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.

        “List of apps to which the policy is deployed.”

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

        public DefaultManagedAppProtection withDeploymentSummary​(ManagedAppPolicyDeploymentSummary deploymentSummary)
        Returns an immutable copy of this with just the deploymentSummary 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.

        “Navigation property to deployment summary of the configuration.”

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

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