Class ManagedAppProtection

All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel
Direct Known Subclasses:
DefaultManagedAppProtection, TargetedManagedAppProtection

@Generated("com.microsoft.kiota") public class ManagedAppProtection extends ManagedAppPolicy implements com.microsoft.kiota.serialization.Parsable
Policy used to configure detailed management settings for a specified set of apps
  • Constructor Details

    • ManagedAppProtection

      public ManagedAppProtection()
      Instantiates a new ManagedAppProtection and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static ManagedAppProtection createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode)
      Creates a new instance of the appropriate class based on discriminator value
      Parameters:
      parseNode - The parse node to use to read the discriminator value and create the object
      Returns:
      a ManagedAppProtection
    • getAllowedDataStorageLocations

      @Nullable public List<ManagedAppDataStorageLocation> getAllowedDataStorageLocations()
      Gets the allowedDataStorageLocations property value. Data storage locations where a user may store managed data.
      Returns:
      a List<ManagedAppDataStorageLocation>
    • getAllowedInboundDataTransferSources

      @Nullable public ManagedAppDataTransferLevel getAllowedInboundDataTransferSources()
      Gets the allowedInboundDataTransferSources property value. Data can be transferred from/to these classes of apps
      Returns:
      a ManagedAppDataTransferLevel
    • getAllowedOutboundClipboardSharingLevel

      @Nullable public ManagedAppClipboardSharingLevel getAllowedOutboundClipboardSharingLevel()
      Gets the allowedOutboundClipboardSharingLevel property value. Represents the level to which the device's clipboard may be shared between apps
      Returns:
      a ManagedAppClipboardSharingLevel
    • getAllowedOutboundDataTransferDestinations

      @Nullable public ManagedAppDataTransferLevel getAllowedOutboundDataTransferDestinations()
      Gets the allowedOutboundDataTransferDestinations property value. Data can be transferred from/to these classes of apps
      Returns:
      a ManagedAppDataTransferLevel
    • getContactSyncBlocked

      @Nullable public Boolean getContactSyncBlocked()
      Gets the contactSyncBlocked property value. Indicates whether contacts can be synced to the user's device.
      Returns:
      a Boolean
    • getDataBackupBlocked

      @Nullable public Boolean getDataBackupBlocked()
      Gets the dataBackupBlocked property value. Indicates whether the backup of a managed app's data is blocked.
      Returns:
      a Boolean
    • getDeviceComplianceRequired

      @Nullable public Boolean getDeviceComplianceRequired()
      Gets the deviceComplianceRequired property value. Indicates whether device compliance is required.
      Returns:
      a Boolean
    • getDisableAppPinIfDevicePinIsSet

      @Nullable public Boolean getDisableAppPinIfDevicePinIsSet()
      Gets the disableAppPinIfDevicePinIsSet property value. Indicates whether use of the app pin is required if the device pin is set.
      Returns:
      a Boolean
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class ManagedAppPolicy
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getFingerprintBlocked

      @Nullable public Boolean getFingerprintBlocked()
      Gets the fingerprintBlocked property value. Indicates whether use of the fingerprint reader is allowed in place of a pin if PinRequired is set to True.
      Returns:
      a Boolean
    • getManagedBrowser

      @Nullable public EnumSet<ManagedBrowserType> getManagedBrowser()
      Gets the managedBrowser property value. Type of managed browser
      Returns:
      a EnumSet<ManagedBrowserType>
    • getManagedBrowserToOpenLinksRequired

      @Nullable public Boolean getManagedBrowserToOpenLinksRequired()
      Gets the managedBrowserToOpenLinksRequired property value. 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:
      a Boolean
    • getMaximumPinRetries

      @Nullable public Integer getMaximumPinRetries()
      Gets the maximumPinRetries property value. Maximum number of incorrect pin retry attempts before the managed app is either blocked or wiped.
      Returns:
      a Integer
    • getMinimumPinLength

      @Nullable public Integer getMinimumPinLength()
      Gets the minimumPinLength property value. Minimum pin length required for an app-level pin if PinRequired is set to True
      Returns:
      a Integer
    • getMinimumRequiredAppVersion

      @Nullable public String getMinimumRequiredAppVersion()
      Gets the minimumRequiredAppVersion property value. Versions less than the specified version will block the managed app from accessing company data.
      Returns:
      a String
    • getMinimumRequiredOsVersion

      @Nullable public String getMinimumRequiredOsVersion()
      Gets the minimumRequiredOsVersion property value. Versions less than the specified version will block the managed app from accessing company data.
      Returns:
      a String
    • getMinimumWarningAppVersion

      @Nullable public String getMinimumWarningAppVersion()
      Gets the minimumWarningAppVersion property value. Versions less than the specified version will result in warning message on the managed app.
      Returns:
      a String
    • getMinimumWarningOsVersion

      @Nullable public String getMinimumWarningOsVersion()
      Gets the minimumWarningOsVersion property value. Versions less than the specified version will result in warning message on the managed app from accessing company data.
      Returns:
      a String
    • getOrganizationalCredentialsRequired

      @Nullable public Boolean getOrganizationalCredentialsRequired()
      Gets the organizationalCredentialsRequired property value. Indicates whether organizational credentials are required for app use.
      Returns:
      a Boolean
    • getPeriodBeforePinReset

      @Nullable public com.microsoft.kiota.PeriodAndDuration getPeriodBeforePinReset()
      Gets the periodBeforePinReset property value. TimePeriod before the all-level pin must be reset if PinRequired is set to True.
      Returns:
      a PeriodAndDuration
    • getPeriodOfflineBeforeAccessCheck

      @Nullable public com.microsoft.kiota.PeriodAndDuration getPeriodOfflineBeforeAccessCheck()
      Gets the periodOfflineBeforeAccessCheck property value. The period after which access is checked when the device is not connected to the internet.
      Returns:
      a PeriodAndDuration
    • getPeriodOfflineBeforeWipeIsEnforced

      @Nullable public com.microsoft.kiota.PeriodAndDuration getPeriodOfflineBeforeWipeIsEnforced()
      Gets the periodOfflineBeforeWipeIsEnforced property value. The amount of time an app is allowed to remain disconnected from the internet before all managed data it is wiped.
      Returns:
      a PeriodAndDuration
    • getPeriodOnlineBeforeAccessCheck

      @Nullable public com.microsoft.kiota.PeriodAndDuration getPeriodOnlineBeforeAccessCheck()
      Gets the periodOnlineBeforeAccessCheck property value. The period after which access is checked when the device is connected to the internet.
      Returns:
      a PeriodAndDuration
    • getPinCharacterSet

      @Nullable public ManagedAppPinCharacterSet getPinCharacterSet()
      Gets the pinCharacterSet property value. Character set which is to be used for a user's app PIN
      Returns:
      a ManagedAppPinCharacterSet
    • getPinRequired

      @Nullable public Boolean getPinRequired()
      Gets the pinRequired property value. Indicates whether an app-level pin is required.
      Returns:
      a Boolean
    • getPrintBlocked

      @Nullable public Boolean getPrintBlocked()
      Gets the printBlocked property value. Indicates whether printing is allowed from managed apps.
      Returns:
      a Boolean
    • getSaveAsBlocked

      @Nullable public Boolean getSaveAsBlocked()
      Gets the saveAsBlocked property value. Indicates whether users may use the 'Save As' menu item to save a copy of protected files.
      Returns:
      a Boolean
    • getSimplePinBlocked

      @Nullable public Boolean getSimplePinBlocked()
      Gets the simplePinBlocked property value. Indicates whether simplePin is blocked.
      Returns:
      a Boolean
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class ManagedAppPolicy
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAllowedDataStorageLocations

      public void setAllowedDataStorageLocations(@Nullable List<ManagedAppDataStorageLocation> value)
      Sets the allowedDataStorageLocations property value. Data storage locations where a user may store managed data.
      Parameters:
      value - Value to set for the allowedDataStorageLocations property.
    • setAllowedInboundDataTransferSources

      public void setAllowedInboundDataTransferSources(@Nullable ManagedAppDataTransferLevel value)
      Sets the allowedInboundDataTransferSources property value. Data can be transferred from/to these classes of apps
      Parameters:
      value - Value to set for the allowedInboundDataTransferSources property.
    • setAllowedOutboundClipboardSharingLevel

      public void setAllowedOutboundClipboardSharingLevel(@Nullable ManagedAppClipboardSharingLevel value)
      Sets the allowedOutboundClipboardSharingLevel property value. Represents the level to which the device's clipboard may be shared between apps
      Parameters:
      value - Value to set for the allowedOutboundClipboardSharingLevel property.
    • setAllowedOutboundDataTransferDestinations

      public void setAllowedOutboundDataTransferDestinations(@Nullable ManagedAppDataTransferLevel value)
      Sets the allowedOutboundDataTransferDestinations property value. Data can be transferred from/to these classes of apps
      Parameters:
      value - Value to set for the allowedOutboundDataTransferDestinations property.
    • setContactSyncBlocked

      public void setContactSyncBlocked(@Nullable Boolean value)
      Sets the contactSyncBlocked property value. Indicates whether contacts can be synced to the user's device.
      Parameters:
      value - Value to set for the contactSyncBlocked property.
    • setDataBackupBlocked

      public void setDataBackupBlocked(@Nullable Boolean value)
      Sets the dataBackupBlocked property value. Indicates whether the backup of a managed app's data is blocked.
      Parameters:
      value - Value to set for the dataBackupBlocked property.
    • setDeviceComplianceRequired

      public void setDeviceComplianceRequired(@Nullable Boolean value)
      Sets the deviceComplianceRequired property value. Indicates whether device compliance is required.
      Parameters:
      value - Value to set for the deviceComplianceRequired property.
    • setDisableAppPinIfDevicePinIsSet

      public void setDisableAppPinIfDevicePinIsSet(@Nullable Boolean value)
      Sets the disableAppPinIfDevicePinIsSet property value. Indicates whether use of the app pin is required if the device pin is set.
      Parameters:
      value - Value to set for the disableAppPinIfDevicePinIsSet property.
    • setFingerprintBlocked

      public void setFingerprintBlocked(@Nullable Boolean value)
      Sets the fingerprintBlocked property value. Indicates whether use of the fingerprint reader is allowed in place of a pin if PinRequired is set to True.
      Parameters:
      value - Value to set for the fingerprintBlocked property.
    • setManagedBrowser

      public void setManagedBrowser(@Nullable EnumSet<ManagedBrowserType> value)
      Sets the managedBrowser property value. Type of managed browser
      Parameters:
      value - Value to set for the managedBrowser property.
    • setManagedBrowserToOpenLinksRequired

      public void setManagedBrowserToOpenLinksRequired(@Nullable Boolean value)
      Sets the managedBrowserToOpenLinksRequired property value. 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:
      value - Value to set for the managedBrowserToOpenLinksRequired property.
    • setMaximumPinRetries

      public void setMaximumPinRetries(@Nullable Integer value)
      Sets the maximumPinRetries property value. Maximum number of incorrect pin retry attempts before the managed app is either blocked or wiped.
      Parameters:
      value - Value to set for the maximumPinRetries property.
    • setMinimumPinLength

      public void setMinimumPinLength(@Nullable Integer value)
      Sets the minimumPinLength property value. Minimum pin length required for an app-level pin if PinRequired is set to True
      Parameters:
      value - Value to set for the minimumPinLength property.
    • setMinimumRequiredAppVersion

      public void setMinimumRequiredAppVersion(@Nullable String value)
      Sets the minimumRequiredAppVersion property value. Versions less than the specified version will block the managed app from accessing company data.
      Parameters:
      value - Value to set for the minimumRequiredAppVersion property.
    • setMinimumRequiredOsVersion

      public void setMinimumRequiredOsVersion(@Nullable String value)
      Sets the minimumRequiredOsVersion property value. Versions less than the specified version will block the managed app from accessing company data.
      Parameters:
      value - Value to set for the minimumRequiredOsVersion property.
    • setMinimumWarningAppVersion

      public void setMinimumWarningAppVersion(@Nullable String value)
      Sets the minimumWarningAppVersion property value. Versions less than the specified version will result in warning message on the managed app.
      Parameters:
      value - Value to set for the minimumWarningAppVersion property.
    • setMinimumWarningOsVersion

      public void setMinimumWarningOsVersion(@Nullable String value)
      Sets the minimumWarningOsVersion property value. Versions less than the specified version will result in warning message on the managed app from accessing company data.
      Parameters:
      value - Value to set for the minimumWarningOsVersion property.
    • setOrganizationalCredentialsRequired

      public void setOrganizationalCredentialsRequired(@Nullable Boolean value)
      Sets the organizationalCredentialsRequired property value. Indicates whether organizational credentials are required for app use.
      Parameters:
      value - Value to set for the organizationalCredentialsRequired property.
    • setPeriodBeforePinReset

      public void setPeriodBeforePinReset(@Nullable com.microsoft.kiota.PeriodAndDuration value)
      Sets the periodBeforePinReset property value. TimePeriod before the all-level pin must be reset if PinRequired is set to True.
      Parameters:
      value - Value to set for the periodBeforePinReset property.
    • setPeriodOfflineBeforeAccessCheck

      public void setPeriodOfflineBeforeAccessCheck(@Nullable com.microsoft.kiota.PeriodAndDuration value)
      Sets the periodOfflineBeforeAccessCheck property value. The period after which access is checked when the device is not connected to the internet.
      Parameters:
      value - Value to set for the periodOfflineBeforeAccessCheck property.
    • setPeriodOfflineBeforeWipeIsEnforced

      public void setPeriodOfflineBeforeWipeIsEnforced(@Nullable com.microsoft.kiota.PeriodAndDuration value)
      Sets the periodOfflineBeforeWipeIsEnforced property value. The amount of time an app is allowed to remain disconnected from the internet before all managed data it is wiped.
      Parameters:
      value - Value to set for the periodOfflineBeforeWipeIsEnforced property.
    • setPeriodOnlineBeforeAccessCheck

      public void setPeriodOnlineBeforeAccessCheck(@Nullable com.microsoft.kiota.PeriodAndDuration value)
      Sets the periodOnlineBeforeAccessCheck property value. The period after which access is checked when the device is connected to the internet.
      Parameters:
      value - Value to set for the periodOnlineBeforeAccessCheck property.
    • setPinCharacterSet

      public void setPinCharacterSet(@Nullable ManagedAppPinCharacterSet value)
      Sets the pinCharacterSet property value. Character set which is to be used for a user's app PIN
      Parameters:
      value - Value to set for the pinCharacterSet property.
    • setPinRequired

      public void setPinRequired(@Nullable Boolean value)
      Sets the pinRequired property value. Indicates whether an app-level pin is required.
      Parameters:
      value - Value to set for the pinRequired property.
    • setPrintBlocked

      public void setPrintBlocked(@Nullable Boolean value)
      Sets the printBlocked property value. Indicates whether printing is allowed from managed apps.
      Parameters:
      value - Value to set for the printBlocked property.
    • setSaveAsBlocked

      public void setSaveAsBlocked(@Nullable Boolean value)
      Sets the saveAsBlocked property value. Indicates whether users may use the 'Save As' menu item to save a copy of protected files.
      Parameters:
      value - Value to set for the saveAsBlocked property.
    • setSimplePinBlocked

      public void setSimplePinBlocked(@Nullable Boolean value)
      Sets the simplePinBlocked property value. Indicates whether simplePin is blocked.
      Parameters:
      value - Value to set for the simplePinBlocked property.