Class IosCompliancePolicy

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

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

      • deviceThreatProtectionEnabled

        protected Boolean deviceThreatProtectionEnabled
      • managedEmailProfileRequired

        protected Boolean managedEmailProfileRequired
      • osMaximumBuildVersion

        protected String osMaximumBuildVersion
      • osMaximumVersion

        protected String osMaximumVersion
      • osMinimumBuildVersion

        protected String osMinimumBuildVersion
      • osMinimumVersion

        protected String osMinimumVersion
      • passcodeBlockSimple

        protected Boolean passcodeBlockSimple
      • passcodeExpirationDays

        protected Integer passcodeExpirationDays
      • passcodeMinimumCharacterSetCount

        protected Integer passcodeMinimumCharacterSetCount
      • passcodeMinimumLength

        protected Integer passcodeMinimumLength
      • passcodeMinutesOfInactivityBeforeLock

        protected Integer passcodeMinutesOfInactivityBeforeLock
      • passcodeMinutesOfInactivityBeforeScreenTimeout

        protected Integer passcodeMinutesOfInactivityBeforeScreenTimeout
      • passcodePreviousPasscodeBlockCount

        protected Integer passcodePreviousPasscodeBlockCount
      • passcodeRequired

        protected Boolean passcodeRequired
      • restrictedAppsNextLink

        protected String restrictedAppsNextLink
      • securityBlockJailbrokenDevices

        protected Boolean securityBlockJailbrokenDevices
    • Constructor Detail

      • IosCompliancePolicy

        protected IosCompliancePolicy()
    • Method Detail

      • builderIosCompliancePolicy

        public static IosCompliancePolicy.Builder builderIosCompliancePolicy()
        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 IosCompliancePolicy 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 IosCompliancePolicy 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 IosCompliancePolicy 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
      • getManagedEmailProfileRequired

        public Optional<Boolean> getManagedEmailProfileRequired()
        “Indicates whether or not to require a managed email profile.”
        Returns:
        property managedEmailProfileRequired
      • withManagedEmailProfileRequired

        public IosCompliancePolicy withManagedEmailProfileRequired​(Boolean managedEmailProfileRequired)
        Returns an immutable copy of this with just the managedEmailProfileRequired 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 require a managed email profile.”

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

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

        public IosCompliancePolicy 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 IOS 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 IOS version.”
        Returns:
        property osMaximumVersion
      • withOsMaximumVersion

        public IosCompliancePolicy 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 IOS 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 IOS build version.”
        Returns:
        property osMinimumBuildVersion
      • withOsMinimumBuildVersion

        public IosCompliancePolicy 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 IOS 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 IOS version.”
        Returns:
        property osMinimumVersion
      • withOsMinimumVersion

        public IosCompliancePolicy 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 IOS version.”

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

        public Optional<Boolean> getPasscodeBlockSimple()
        “Indicates whether or not to block simple passcodes.”
        Returns:
        property passcodeBlockSimple
      • withPasscodeBlockSimple

        public IosCompliancePolicy withPasscodeBlockSimple​(Boolean passcodeBlockSimple)
        Returns an immutable copy of this with just the passcodeBlockSimple 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 passcodes.”

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

        public Optional<Integer> getPasscodeExpirationDays()
        “Number of days before the passcode expires. Valid values 1 to 65535”
        Returns:
        property passcodeExpirationDays
      • withPasscodeExpirationDays

        public IosCompliancePolicy withPasscodeExpirationDays​(Integer passcodeExpirationDays)
        Returns an immutable copy of this with just the passcodeExpirationDays 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 passcode expires. Valid values 1 to 65535”

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

        public Optional<Integer> getPasscodeMinimumCharacterSetCount()
        “The number of character sets required in the password.”
        Returns:
        property passcodeMinimumCharacterSetCount
      • withPasscodeMinimumCharacterSetCount

        public IosCompliancePolicy withPasscodeMinimumCharacterSetCount​(Integer passcodeMinimumCharacterSetCount)
        Returns an immutable copy of this with just the passcodeMinimumCharacterSetCount 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:
        passcodeMinimumCharacterSetCount - new value of passcodeMinimumCharacterSetCount field (as defined in service metadata)
        Returns:
        immutable copy of this with just the passcodeMinimumCharacterSetCount field changed
      • getPasscodeMinimumLength

        public Optional<Integer> getPasscodeMinimumLength()
        “Minimum length of passcode. Valid values 4 to 14”
        Returns:
        property passcodeMinimumLength
      • withPasscodeMinimumLength

        public IosCompliancePolicy withPasscodeMinimumLength​(Integer passcodeMinimumLength)
        Returns an immutable copy of this with just the passcodeMinimumLength 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 passcode. Valid values 4 to 14”

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

        public Optional<Integer> getPasscodeMinutesOfInactivityBeforeLock()
        “Minutes of inactivity before a passcode is required.”
        Returns:
        property passcodeMinutesOfInactivityBeforeLock
      • withPasscodeMinutesOfInactivityBeforeLock

        public IosCompliancePolicy withPasscodeMinutesOfInactivityBeforeLock​(Integer passcodeMinutesOfInactivityBeforeLock)
        Returns an immutable copy of this with just the passcodeMinutesOfInactivityBeforeLock 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 passcode is required.”

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

        public Optional<Integer> getPasscodeMinutesOfInactivityBeforeScreenTimeout()
        “Minutes of inactivity before the screen times out.”
        Returns:
        property passcodeMinutesOfInactivityBeforeScreenTimeout
      • withPasscodeMinutesOfInactivityBeforeScreenTimeout

        public IosCompliancePolicy withPasscodeMinutesOfInactivityBeforeScreenTimeout​(Integer passcodeMinutesOfInactivityBeforeScreenTimeout)
        Returns an immutable copy of this with just the passcodeMinutesOfInactivityBeforeScreenTimeout 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 the screen times out.”

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

        public Optional<Integer> getPasscodePreviousPasscodeBlockCount()
        “Number of previous passcodes to block. Valid values 1 to 24”
        Returns:
        property passcodePreviousPasscodeBlockCount
      • withPasscodePreviousPasscodeBlockCount

        public IosCompliancePolicy withPasscodePreviousPasscodeBlockCount​(Integer passcodePreviousPasscodeBlockCount)
        Returns an immutable copy of this with just the passcodePreviousPasscodeBlockCount 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 passcodes to block. Valid values 1 to 24”

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

        public Optional<Boolean> getPasscodeRequired()
        “Indicates whether or not to require a passcode.”
        Returns:
        property passcodeRequired
      • withPasscodeRequired

        public IosCompliancePolicy withPasscodeRequired​(Boolean passcodeRequired)
        Returns an immutable copy of this with just the passcodeRequired 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 require a passcode.”

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

        public Optional<RequiredPasswordType> getPasscodeRequiredType()
        “The required passcode type.”
        Returns:
        property passcodeRequiredType
      • withPasscodeRequiredType

        public IosCompliancePolicy withPasscodeRequiredType​(RequiredPasswordType passcodeRequiredType)
        Returns an immutable copy of this with just the passcodeRequiredType 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 passcode type.”

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

        public com.github.davidmoten.odata.client.CollectionPage<AppListItem> getRestrictedApps()
        “Require the device to not have the specified apps installed. This collection can contain a maximum of 100 elements.”
        Returns:
        property restrictedApps
      • withRestrictedApps

        public IosCompliancePolicy withRestrictedApps​(List<AppListItem> restrictedApps)
        Returns an immutable copy of this with just the restrictedApps 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 the device to not have the specified apps installed. This collection can contain a maximum of 100 elements.”

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

        public com.github.davidmoten.odata.client.CollectionPage<AppListItem> getRestrictedApps​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “Require the device to not have the specified apps installed. This collection can contain a maximum of 100 elements.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property restrictedApps
      • getSecurityBlockJailbrokenDevices

        public Optional<Boolean> getSecurityBlockJailbrokenDevices()
        “Devices must not be jailbroken or rooted.”
        Returns:
        property securityBlockJailbrokenDevices
      • withSecurityBlockJailbrokenDevices

        public IosCompliancePolicy withSecurityBlockJailbrokenDevices​(Boolean securityBlockJailbrokenDevices)
        Returns an immutable copy of this with just the securityBlockJailbrokenDevices 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.

        “Devices must not be jailbroken or rooted.”

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