Class MacOSCompliancePolicy

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

    public class MacOSCompliancePolicy
    extends DeviceCompliancePolicy
    implements com.github.davidmoten.odata.client.ODataEntityType
    “This class contains compliance settings for Mac OS.”
    • Field Detail

      • deviceThreatProtectionEnabled

        protected Boolean deviceThreatProtectionEnabled
      • firewallBlockAllIncoming

        protected Boolean firewallBlockAllIncoming
      • firewallEnabled

        protected Boolean firewallEnabled
      • firewallEnableStealthMode

        protected Boolean firewallEnableStealthMode
      • osMaximumBuildVersion

        protected String osMaximumBuildVersion
      • osMaximumVersion

        protected String osMaximumVersion
      • osMinimumBuildVersion

        protected String osMinimumBuildVersion
      • osMinimumVersion

        protected String osMinimumVersion
      • passwordBlockSimple

        protected Boolean passwordBlockSimple
      • passwordExpirationDays

        protected Integer passwordExpirationDays
      • passwordMinimumCharacterSetCount

        protected Integer passwordMinimumCharacterSetCount
      • passwordMinimumLength

        protected Integer passwordMinimumLength
      • passwordMinutesOfInactivityBeforeLock

        protected Integer passwordMinutesOfInactivityBeforeLock
      • passwordPreviousPasswordBlockCount

        protected Integer passwordPreviousPasswordBlockCount
      • passwordRequired

        protected Boolean passwordRequired
      • storageRequireEncryption

        protected Boolean storageRequireEncryption
      • systemIntegrityProtectionEnabled

        protected Boolean systemIntegrityProtectionEnabled
    • Constructor Detail

      • MacOSCompliancePolicy

        protected MacOSCompliancePolicy()
    • Method Detail

      • builderMacOSCompliancePolicy

        public static MacOSCompliancePolicy.Builder builderMacOSCompliancePolicy()
        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 DeviceCompliancePolicy
      • postInject

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

        public Optional<DeviceThreatProtectionLevel> getAdvancedThreatProtectionRequiredSecurityLevel()
        “MDATP Require Mobile Threat Protection minimum risk level to report noncompliance.”
        Returns:
        property advancedThreatProtectionRequiredSecurityLevel
      • withAdvancedThreatProtectionRequiredSecurityLevel

        public MacOSCompliancePolicy withAdvancedThreatProtectionRequiredSecurityLevel​(DeviceThreatProtectionLevel advancedThreatProtectionRequiredSecurityLevel)
        Returns an immutable copy of this with just the advancedThreatProtectionRequiredSecurityLevel 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.

        “MDATP Require Mobile Threat Protection minimum risk level to report noncompliance.”

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

        public Optional<Boolean> getDeviceThreatProtectionEnabled()
        “Require that devices have enabled device threat protection.”
        Returns:
        property deviceThreatProtectionEnabled
      • withDeviceThreatProtectionEnabled

        public MacOSCompliancePolicy withDeviceThreatProtectionEnabled​(Boolean deviceThreatProtectionEnabled)
        Returns an immutable copy of this with just the deviceThreatProtectionEnabled 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.

        “Require that devices have enabled device threat protection.”

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

        public Optional<DeviceThreatProtectionLevel> getDeviceThreatProtectionRequiredSecurityLevel()
        “Require Mobile Threat Protection minimum risk level to report noncompliance.”
        Returns:
        property deviceThreatProtectionRequiredSecurityLevel
      • withDeviceThreatProtectionRequiredSecurityLevel

        public MacOSCompliancePolicy withDeviceThreatProtectionRequiredSecurityLevel​(DeviceThreatProtectionLevel deviceThreatProtectionRequiredSecurityLevel)
        Returns an immutable copy of this with just the deviceThreatProtectionRequiredSecurityLevel 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.

        “Require Mobile Threat Protection minimum risk level to report noncompliance.”

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

        public Optional<Boolean> getFirewallBlockAllIncoming()
        “Corresponds to the “Block all incoming connections” option.”
        Returns:
        property firewallBlockAllIncoming
      • withFirewallBlockAllIncoming

        public MacOSCompliancePolicy withFirewallBlockAllIncoming​(Boolean firewallBlockAllIncoming)
        Returns an immutable copy of this with just the firewallBlockAllIncoming 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.

        “Corresponds to the “Block all incoming connections” option.”

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

        public Optional<Boolean> getFirewallEnabled()
        “Whether the firewall should be enabled or not.”
        Returns:
        property firewallEnabled
      • withFirewallEnabled

        public MacOSCompliancePolicy withFirewallEnabled​(Boolean firewallEnabled)
        Returns an immutable copy of this with just the firewallEnabled 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.

        “Whether the firewall should be enabled or not.”

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

        public Optional<Boolean> getFirewallEnableStealthMode()
        “Corresponds to “Enable stealth mode.””
        Returns:
        property firewallEnableStealthMode
      • withFirewallEnableStealthMode

        public MacOSCompliancePolicy withFirewallEnableStealthMode​(Boolean firewallEnableStealthMode)
        Returns an immutable copy of this with just the firewallEnableStealthMode 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.

        “Corresponds to “Enable stealth mode.””

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

        public Optional<MacOSGatekeeperAppSources> getGatekeeperAllowedAppSource()
        “System and Privacy setting that determines which download locations apps can be run from on a macOS device.”
        Returns:
        property gatekeeperAllowedAppSource
      • withGatekeeperAllowedAppSource

        public MacOSCompliancePolicy withGatekeeperAllowedAppSource​(MacOSGatekeeperAppSources gatekeeperAllowedAppSource)
        Returns an immutable copy of this with just the gatekeeperAllowedAppSource 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.

        “System and Privacy setting that determines which download locations apps can be run from on a macOS device.”

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

        public Optional<String> getOsMaximumBuildVersion()
        “Maximum MacOS build version.”
        Returns:
        property osMaximumBuildVersion
      • withOsMaximumBuildVersion

        public MacOSCompliancePolicy withOsMaximumBuildVersion​(String osMaximumBuildVersion)
        Returns an immutable copy of this with just the osMaximumBuildVersion 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 MacOS build version.”

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

        public Optional<String> getOsMaximumVersion()
        “Maximum MacOS version.”
        Returns:
        property osMaximumVersion
      • withOsMaximumVersion

        public MacOSCompliancePolicy withOsMaximumVersion​(String osMaximumVersion)
        Returns an immutable copy of this with just the osMaximumVersion 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 MacOS version.”

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

        public Optional<String> getOsMinimumBuildVersion()
        “Minimum MacOS build version.”
        Returns:
        property osMinimumBuildVersion
      • withOsMinimumBuildVersion

        public MacOSCompliancePolicy withOsMinimumBuildVersion​(String osMinimumBuildVersion)
        Returns an immutable copy of this with just the osMinimumBuildVersion 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 MacOS build version.”

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

        public Optional<String> getOsMinimumVersion()
        “Minimum MacOS version.”
        Returns:
        property osMinimumVersion
      • withOsMinimumVersion

        public MacOSCompliancePolicy withOsMinimumVersion​(String osMinimumVersion)
        Returns an immutable copy of this with just the osMinimumVersion 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 MacOS version.”

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

        public Optional<Boolean> getPasswordBlockSimple()
        “Indicates whether or not to block simple passwords.”
        Returns:
        property passwordBlockSimple
      • withPasswordBlockSimple

        public MacOSCompliancePolicy withPasswordBlockSimple​(Boolean passwordBlockSimple)
        Returns an immutable copy of this with just the passwordBlockSimple 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 or not to block simple passwords.”

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

        public Optional<Integer> getPasswordExpirationDays()
        “Number of days before the password expires. Valid values 1 to 65535”
        Returns:
        property passwordExpirationDays
      • withPasswordExpirationDays

        public MacOSCompliancePolicy withPasswordExpirationDays​(Integer passwordExpirationDays)
        Returns an immutable copy of this with just the passwordExpirationDays 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.

        “Number of days before the password expires. Valid values 1 to 65535”

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

        public Optional<Integer> getPasswordMinimumCharacterSetCount()
        “The number of character sets required in the password.”
        Returns:
        property passwordMinimumCharacterSetCount
      • withPasswordMinimumCharacterSetCount

        public MacOSCompliancePolicy withPasswordMinimumCharacterSetCount​(Integer passwordMinimumCharacterSetCount)
        Returns an immutable copy of this with just the passwordMinimumCharacterSetCount 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 number of character sets required in the password.”

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

        public Optional<Integer> getPasswordMinimumLength()
        “Minimum length of password. Valid values 4 to 14”
        Returns:
        property passwordMinimumLength
      • withPasswordMinimumLength

        public MacOSCompliancePolicy withPasswordMinimumLength​(Integer passwordMinimumLength)
        Returns an immutable copy of this with just the passwordMinimumLength 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 length of password. Valid values 4 to 14”

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

        public Optional<Integer> getPasswordMinutesOfInactivityBeforeLock()
        “Minutes of inactivity before a password is required.”
        Returns:
        property passwordMinutesOfInactivityBeforeLock
      • withPasswordMinutesOfInactivityBeforeLock

        public MacOSCompliancePolicy withPasswordMinutesOfInactivityBeforeLock​(Integer passwordMinutesOfInactivityBeforeLock)
        Returns an immutable copy of this with just the passwordMinutesOfInactivityBeforeLock 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.

        “Minutes of inactivity before a password is required.”

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

        public Optional<Integer> getPasswordPreviousPasswordBlockCount()
        “Number of previous passwords to block. Valid values 1 to 24”
        Returns:
        property passwordPreviousPasswordBlockCount
      • withPasswordPreviousPasswordBlockCount

        public MacOSCompliancePolicy withPasswordPreviousPasswordBlockCount​(Integer passwordPreviousPasswordBlockCount)
        Returns an immutable copy of this with just the passwordPreviousPasswordBlockCount 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.

        “Number of previous passwords to block. Valid values 1 to 24”

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

        public Optional<Boolean> getPasswordRequired()
        “Whether or not to require a password.”
        Returns:
        property passwordRequired
      • withPasswordRequired

        public MacOSCompliancePolicy withPasswordRequired​(Boolean passwordRequired)
        Returns an immutable copy of this with just the passwordRequired 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.

        “Whether or not to require a password.”

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

        public Optional<RequiredPasswordType> getPasswordRequiredType()
        “The required password type.”
        Returns:
        property passwordRequiredType
      • withPasswordRequiredType

        public MacOSCompliancePolicy withPasswordRequiredType​(RequiredPasswordType passwordRequiredType)
        Returns an immutable copy of this with just the passwordRequiredType 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 required password type.”

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

        public Optional<Boolean> getStorageRequireEncryption()
        “Require encryption on Mac OS devices.”
        Returns:
        property storageRequireEncryption
      • withStorageRequireEncryption

        public MacOSCompliancePolicy withStorageRequireEncryption​(Boolean storageRequireEncryption)
        Returns an immutable copy of this with just the storageRequireEncryption 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.

        “Require encryption on Mac OS devices.”

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

        public Optional<Boolean> getSystemIntegrityProtectionEnabled()
        “Require that devices have enabled system integrity protection.”
        Returns:
        property systemIntegrityProtectionEnabled
      • withSystemIntegrityProtectionEnabled

        public MacOSCompliancePolicy withSystemIntegrityProtectionEnabled​(Boolean systemIntegrityProtectionEnabled)
        Returns an immutable copy of this with just the systemIntegrityProtectionEnabled 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.

        “Require that devices have enabled system integrity protection.”

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

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