Class MacOSCompliancePolicy

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

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

    • MacOSCompliancePolicy

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

    • createFromDiscriminatorValue

      @Nonnull public static MacOSCompliancePolicy 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 MacOSCompliancePolicy
    • 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>>
    • getFirewallBlockAllIncoming

      @Nullable public Boolean getFirewallBlockAllIncoming()
      Gets the firewallBlockAllIncoming property value. Corresponds to the 'Block all incoming connections' option.
      Returns:
      a Boolean
    • getFirewallEnabled

      @Nullable public Boolean getFirewallEnabled()
      Gets the firewallEnabled property value. Whether the firewall should be enabled or not.
      Returns:
      a Boolean
    • getFirewallEnableStealthMode

      @Nullable public Boolean getFirewallEnableStealthMode()
      Gets the firewallEnableStealthMode property value. Corresponds to 'Enable stealth mode.'
      Returns:
      a Boolean
    • getOsMaximumVersion

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

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

      @Nullable public Boolean getPasswordBlockSimple()
      Gets the passwordBlockSimple property value. Indicates whether or not to block simple passwords.
      Returns:
      a Boolean
    • getPasswordExpirationDays

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

      @Nullable public Integer getPasswordMinimumCharacterSetCount()
      Gets the passwordMinimumCharacterSetCount property value. The number of character sets required in the password.
      Returns:
      a Integer
    • getPasswordMinimumLength

      @Nullable public Integer getPasswordMinimumLength()
      Gets the passwordMinimumLength property value. Minimum length of password. Valid values 4 to 14
      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. Whether or not to require a password.
      Returns:
      a Boolean
    • getPasswordRequiredType

      @Nullable public RequiredPasswordType getPasswordRequiredType()
      Gets the passwordRequiredType property value. Possible values of required passwords.
      Returns:
      a RequiredPasswordType
    • getStorageRequireEncryption

      @Nullable public Boolean getStorageRequireEncryption()
      Gets the storageRequireEncryption property value. Require encryption on Mac OS devices.
      Returns:
      a Boolean
    • getSystemIntegrityProtectionEnabled

      @Nullable public Boolean getSystemIntegrityProtectionEnabled()
      Gets the systemIntegrityProtectionEnabled property value. Require that devices have enabled system integrity protection.
      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.
    • setFirewallBlockAllIncoming

      public void setFirewallBlockAllIncoming(@Nullable Boolean value)
      Sets the firewallBlockAllIncoming property value. Corresponds to the 'Block all incoming connections' option.
      Parameters:
      value - Value to set for the firewallBlockAllIncoming property.
    • setFirewallEnabled

      public void setFirewallEnabled(@Nullable Boolean value)
      Sets the firewallEnabled property value. Whether the firewall should be enabled or not.
      Parameters:
      value - Value to set for the firewallEnabled property.
    • setFirewallEnableStealthMode

      public void setFirewallEnableStealthMode(@Nullable Boolean value)
      Sets the firewallEnableStealthMode property value. Corresponds to 'Enable stealth mode.'
      Parameters:
      value - Value to set for the firewallEnableStealthMode property.
    • setOsMaximumVersion

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

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

      public void setPasswordBlockSimple(@Nullable Boolean value)
      Sets the passwordBlockSimple property value. Indicates whether or not to block simple passwords.
      Parameters:
      value - Value to set for the passwordBlockSimple property.
    • setPasswordExpirationDays

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

      public void setPasswordMinimumCharacterSetCount(@Nullable Integer value)
      Sets the passwordMinimumCharacterSetCount property value. The number of character sets required in the password.
      Parameters:
      value - Value to set for the passwordMinimumCharacterSetCount property.
    • setPasswordMinimumLength

      public void setPasswordMinimumLength(@Nullable Integer value)
      Sets the passwordMinimumLength property value. Minimum length of password. Valid values 4 to 14
      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. Whether or not to require a password.
      Parameters:
      value - Value to set for the passwordRequired property.
    • setPasswordRequiredType

      public void setPasswordRequiredType(@Nullable RequiredPasswordType value)
      Sets the passwordRequiredType property value. Possible values of required passwords.
      Parameters:
      value - Value to set for the passwordRequiredType property.
    • setStorageRequireEncryption

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

      public void setSystemIntegrityProtectionEnabled(@Nullable Boolean value)
      Sets the systemIntegrityProtectionEnabled property value. Require that devices have enabled system integrity protection.
      Parameters:
      value - Value to set for the systemIntegrityProtectionEnabled property.