Class AndroidCompliancePolicy

All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class AndroidCompliancePolicy extends DeviceCompliancePolicy implements com.microsoft.kiota.serialization.Parsable
This class contains compliance settings for Android.
  • Constructor Details

    • AndroidCompliancePolicy

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

    • createFromDiscriminatorValue

      @Nonnull public static AndroidCompliancePolicy 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 AndroidCompliancePolicy
    • getDeviceThreatProtectionEnabled

      @Nullable public Boolean getDeviceThreatProtectionEnabled()
      Gets the deviceThreatProtectionEnabled property value. Require that devices have enabled device threat protection.
      Returns:
      a Boolean
    • getDeviceThreatProtectionRequiredSecurityLevel

      @Nullable public DeviceThreatProtectionLevel getDeviceThreatProtectionRequiredSecurityLevel()
      Gets the deviceThreatProtectionRequiredSecurityLevel property value. Device threat protection levels for the Device Threat Protection API.
      Returns:
      a DeviceThreatProtectionLevel
    • 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 DeviceCompliancePolicy
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getMinAndroidSecurityPatchLevel

      @Nullable public String getMinAndroidSecurityPatchLevel()
      Gets the minAndroidSecurityPatchLevel property value. Minimum Android security patch level.
      Returns:
      a String
    • getOsMaximumVersion

      @Nullable public String getOsMaximumVersion()
      Gets the osMaximumVersion property value. Maximum Android version.
      Returns:
      a String
    • getOsMinimumVersion

      @Nullable public String getOsMinimumVersion()
      Gets the osMinimumVersion property value. Minimum Android version.
      Returns:
      a String
    • getPasswordExpirationDays

      @Nullable public Integer getPasswordExpirationDays()
      Gets the passwordExpirationDays property value. Number of days before the password expires. Valid values 1 to 365
      Returns:
      a Integer
    • getPasswordMinimumLength

      @Nullable public Integer getPasswordMinimumLength()
      Gets the passwordMinimumLength property value. Minimum password length. Valid values 4 to 16
      Returns:
      a Integer
    • getPasswordMinutesOfInactivityBeforeLock

      @Nullable public Integer getPasswordMinutesOfInactivityBeforeLock()
      Gets the passwordMinutesOfInactivityBeforeLock property value. Minutes of inactivity before a password is required.
      Returns:
      a Integer
    • getPasswordPreviousPasswordBlockCount

      @Nullable public Integer getPasswordPreviousPasswordBlockCount()
      Gets the passwordPreviousPasswordBlockCount property value. Number of previous passwords to block. Valid values 1 to 24
      Returns:
      a Integer
    • getPasswordRequired

      @Nullable public Boolean getPasswordRequired()
      Gets the passwordRequired property value. Require a password to unlock device.
      Returns:
      a Boolean
    • getPasswordRequiredType

      @Nullable public AndroidRequiredPasswordType getPasswordRequiredType()
      Gets the passwordRequiredType property value. Android required password type.
      Returns:
      a AndroidRequiredPasswordType
    • getSecurityBlockJailbrokenDevices

      @Nullable public Boolean getSecurityBlockJailbrokenDevices()
      Gets the securityBlockJailbrokenDevices property value. Indicates the device should not be rooted. When TRUE, if the device is detected as rooted it will be reported non-compliant. When FALSE, the device is not reported as non-compliant regardless of device rooted state. Default is FALSE.
      Returns:
      a Boolean
    • getSecurityDisableUsbDebugging

      @Nullable public Boolean getSecurityDisableUsbDebugging()
      Gets the securityDisableUsbDebugging property value. Disable USB debugging on Android devices.
      Returns:
      a Boolean
    • getSecurityPreventInstallAppsFromUnknownSources

      @Nullable public Boolean getSecurityPreventInstallAppsFromUnknownSources()
      Gets the securityPreventInstallAppsFromUnknownSources property value. Require that devices disallow installation of apps from unknown sources.
      Returns:
      a Boolean
    • getSecurityRequireCompanyPortalAppIntegrity

      @Nullable public Boolean getSecurityRequireCompanyPortalAppIntegrity()
      Gets the securityRequireCompanyPortalAppIntegrity property value. Require the device to pass the Company Portal client app runtime integrity check.
      Returns:
      a Boolean
    • getSecurityRequireGooglePlayServices

      @Nullable public Boolean getSecurityRequireGooglePlayServices()
      Gets the securityRequireGooglePlayServices property value. Require Google Play Services to be installed and enabled on the device.
      Returns:
      a Boolean
    • getSecurityRequireSafetyNetAttestationBasicIntegrity

      @Nullable public Boolean getSecurityRequireSafetyNetAttestationBasicIntegrity()
      Gets the securityRequireSafetyNetAttestationBasicIntegrity property value. Require the device to pass the SafetyNet basic integrity check.
      Returns:
      a Boolean
    • getSecurityRequireSafetyNetAttestationCertifiedDevice

      @Nullable public Boolean getSecurityRequireSafetyNetAttestationCertifiedDevice()
      Gets the securityRequireSafetyNetAttestationCertifiedDevice property value. Require the device to pass the SafetyNet certified device check.
      Returns:
      a Boolean
    • getSecurityRequireUpToDateSecurityProviders

      @Nullable public Boolean getSecurityRequireUpToDateSecurityProviders()
      Gets the securityRequireUpToDateSecurityProviders property value. Require the device to have up to date security providers. The device will require Google Play Services to be enabled and up to date.
      Returns:
      a Boolean
    • getSecurityRequireVerifyApps

      @Nullable public Boolean getSecurityRequireVerifyApps()
      Gets the securityRequireVerifyApps property value. Require the Android Verify apps feature is turned on.
      Returns:
      a Boolean
    • getStorageRequireEncryption

      @Nullable public Boolean getStorageRequireEncryption()
      Gets the storageRequireEncryption property value. Require encryption on Android devices.
      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 DeviceCompliancePolicy
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setDeviceThreatProtectionEnabled

      public void setDeviceThreatProtectionEnabled(@Nullable Boolean value)
      Sets the deviceThreatProtectionEnabled property value. Require that devices have enabled device threat protection.
      Parameters:
      value - Value to set for the deviceThreatProtectionEnabled property.
    • setDeviceThreatProtectionRequiredSecurityLevel

      public void setDeviceThreatProtectionRequiredSecurityLevel(@Nullable DeviceThreatProtectionLevel value)
      Sets the deviceThreatProtectionRequiredSecurityLevel property value. Device threat protection levels for the Device Threat Protection API.
      Parameters:
      value - Value to set for the deviceThreatProtectionRequiredSecurityLevel property.
    • setMinAndroidSecurityPatchLevel

      public void setMinAndroidSecurityPatchLevel(@Nullable String value)
      Sets the minAndroidSecurityPatchLevel property value. Minimum Android security patch level.
      Parameters:
      value - Value to set for the minAndroidSecurityPatchLevel property.
    • setOsMaximumVersion

      public void setOsMaximumVersion(@Nullable String value)
      Sets the osMaximumVersion property value. Maximum Android version.
      Parameters:
      value - Value to set for the osMaximumVersion property.
    • setOsMinimumVersion

      public void setOsMinimumVersion(@Nullable String value)
      Sets the osMinimumVersion property value. Minimum Android version.
      Parameters:
      value - Value to set for the osMinimumVersion property.
    • setPasswordExpirationDays

      public void setPasswordExpirationDays(@Nullable Integer value)
      Sets the passwordExpirationDays property value. Number of days before the password expires. Valid values 1 to 365
      Parameters:
      value - Value to set for the passwordExpirationDays property.
    • setPasswordMinimumLength

      public void setPasswordMinimumLength(@Nullable Integer value)
      Sets the passwordMinimumLength property value. Minimum password length. Valid values 4 to 16
      Parameters:
      value - Value to set for the passwordMinimumLength property.
    • setPasswordMinutesOfInactivityBeforeLock

      public void setPasswordMinutesOfInactivityBeforeLock(@Nullable Integer value)
      Sets the passwordMinutesOfInactivityBeforeLock property value. Minutes of inactivity before a password is required.
      Parameters:
      value - Value to set for the passwordMinutesOfInactivityBeforeLock property.
    • setPasswordPreviousPasswordBlockCount

      public void setPasswordPreviousPasswordBlockCount(@Nullable Integer value)
      Sets the passwordPreviousPasswordBlockCount property value. Number of previous passwords to block. Valid values 1 to 24
      Parameters:
      value - Value to set for the passwordPreviousPasswordBlockCount property.
    • setPasswordRequired

      public void setPasswordRequired(@Nullable Boolean value)
      Sets the passwordRequired property value. Require a password to unlock device.
      Parameters:
      value - Value to set for the passwordRequired property.
    • setPasswordRequiredType

      public void setPasswordRequiredType(@Nullable AndroidRequiredPasswordType value)
      Sets the passwordRequiredType property value. Android required password type.
      Parameters:
      value - Value to set for the passwordRequiredType property.
    • setSecurityBlockJailbrokenDevices

      public void setSecurityBlockJailbrokenDevices(@Nullable Boolean value)
      Sets the securityBlockJailbrokenDevices property value. Indicates the device should not be rooted. When TRUE, if the device is detected as rooted it will be reported non-compliant. When FALSE, the device is not reported as non-compliant regardless of device rooted state. Default is FALSE.
      Parameters:
      value - Value to set for the securityBlockJailbrokenDevices property.
    • setSecurityDisableUsbDebugging

      public void setSecurityDisableUsbDebugging(@Nullable Boolean value)
      Sets the securityDisableUsbDebugging property value. Disable USB debugging on Android devices.
      Parameters:
      value - Value to set for the securityDisableUsbDebugging property.
    • setSecurityPreventInstallAppsFromUnknownSources

      public void setSecurityPreventInstallAppsFromUnknownSources(@Nullable Boolean value)
      Sets the securityPreventInstallAppsFromUnknownSources property value. Require that devices disallow installation of apps from unknown sources.
      Parameters:
      value - Value to set for the securityPreventInstallAppsFromUnknownSources property.
    • setSecurityRequireCompanyPortalAppIntegrity

      public void setSecurityRequireCompanyPortalAppIntegrity(@Nullable Boolean value)
      Sets the securityRequireCompanyPortalAppIntegrity property value. Require the device to pass the Company Portal client app runtime integrity check.
      Parameters:
      value - Value to set for the securityRequireCompanyPortalAppIntegrity property.
    • setSecurityRequireGooglePlayServices

      public void setSecurityRequireGooglePlayServices(@Nullable Boolean value)
      Sets the securityRequireGooglePlayServices property value. Require Google Play Services to be installed and enabled on the device.
      Parameters:
      value - Value to set for the securityRequireGooglePlayServices property.
    • setSecurityRequireSafetyNetAttestationBasicIntegrity

      public void setSecurityRequireSafetyNetAttestationBasicIntegrity(@Nullable Boolean value)
      Sets the securityRequireSafetyNetAttestationBasicIntegrity property value. Require the device to pass the SafetyNet basic integrity check.
      Parameters:
      value - Value to set for the securityRequireSafetyNetAttestationBasicIntegrity property.
    • setSecurityRequireSafetyNetAttestationCertifiedDevice

      public void setSecurityRequireSafetyNetAttestationCertifiedDevice(@Nullable Boolean value)
      Sets the securityRequireSafetyNetAttestationCertifiedDevice property value. Require the device to pass the SafetyNet certified device check.
      Parameters:
      value - Value to set for the securityRequireSafetyNetAttestationCertifiedDevice property.
    • setSecurityRequireUpToDateSecurityProviders

      public void setSecurityRequireUpToDateSecurityProviders(@Nullable Boolean value)
      Sets the securityRequireUpToDateSecurityProviders property value. Require the device to have up to date security providers. The device will require Google Play Services to be enabled and up to date.
      Parameters:
      value - Value to set for the securityRequireUpToDateSecurityProviders property.
    • setSecurityRequireVerifyApps

      public void setSecurityRequireVerifyApps(@Nullable Boolean value)
      Sets the securityRequireVerifyApps property value. Require the Android Verify apps feature is turned on.
      Parameters:
      value - Value to set for the securityRequireVerifyApps property.
    • setStorageRequireEncryption

      public void setStorageRequireEncryption(@Nullable Boolean value)
      Sets the storageRequireEncryption property value. Require encryption on Android devices.
      Parameters:
      value - Value to set for the storageRequireEncryption property.