Class WindowsInformationProtectionPolicy

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

    public class WindowsInformationProtectionPolicy
    extends WindowsInformationProtection
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Policy for Windows information protection without MDM”
    • Constructor Detail

      • WindowsInformationProtectionPolicy

        protected WindowsInformationProtectionPolicy()
    • Method Detail

      • builderWindowsInformationProtectionPolicy

        public static WindowsInformationProtectionPolicy.Builder builderWindowsInformationProtectionPolicy()
        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 WindowsInformationProtection
      • postInject

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

        public Optional<Integer> getDaysWithoutContactBeforeUnenroll()
        “Offline interval before app data is wiped (days)”
        Returns:
        property daysWithoutContactBeforeUnenroll
      • withDaysWithoutContactBeforeUnenroll

        public WindowsInformationProtectionPolicy withDaysWithoutContactBeforeUnenroll​(Integer daysWithoutContactBeforeUnenroll)
        Returns an immutable copy of this with just the daysWithoutContactBeforeUnenroll 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.

        “Offline interval before app data is wiped (days)”

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

        public Optional<String> getMdmEnrollmentUrl()
        “Enrollment url for the MDM”
        Returns:
        property mdmEnrollmentUrl
      • withMdmEnrollmentUrl

        public WindowsInformationProtectionPolicy withMdmEnrollmentUrl​(String mdmEnrollmentUrl)
        Returns an immutable copy of this with just the mdmEnrollmentUrl 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.

        “Enrollment url for the MDM”

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

        public Optional<Integer> getMinutesOfInactivityBeforeDeviceLock()
        “Specifies the maximum amount of time (in minutes) allowed after the device is idle that will cause the device to become PIN or password locked. Range is an integer X where 0 &lt;= X &lt;= 999.”
        Returns:
        property minutesOfInactivityBeforeDeviceLock
      • withMinutesOfInactivityBeforeDeviceLock

        public WindowsInformationProtectionPolicy withMinutesOfInactivityBeforeDeviceLock​(Integer minutesOfInactivityBeforeDeviceLock)
        Returns an immutable copy of this with just the minutesOfInactivityBeforeDeviceLock 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.

        “Specifies the maximum amount of time (in minutes) allowed after the device is idle that will cause the device to become PIN or password locked. Range is an integer X where 0 &lt;= X &lt;= 999.”

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

        public Optional<Integer> getNumberOfPastPinsRemembered()
        “Integer value that specifies the number of past PINs that can be associated to a user account that can't be reused. The largest number you can configure for this policy setting is 50. The lowest number you can configure for this policy setting is 0. If this policy is set to 0, then storage of previous PINs is not required. This node was added in Windows 10, version 1511. Default is 0.”
        Returns:
        property numberOfPastPinsRemembered
      • withNumberOfPastPinsRemembered

        public WindowsInformationProtectionPolicy withNumberOfPastPinsRemembered​(Integer numberOfPastPinsRemembered)
        Returns an immutable copy of this with just the numberOfPastPinsRemembered 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.

        “Integer value that specifies the number of past PINs that can be associated to a user account that can't be reused. The largest number you can configure for this policy setting is 50. The lowest number you can configure for this policy setting is 0. If this policy is set to 0, then storage of previous PINs is not required. This node was added in Windows 10, version 1511. Default is 0.”

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

        public Optional<Integer> getPasswordMaximumAttemptCount()
        “The number of authentication failures allowed before the device will be wiped. A value of 0 disables device wipe functionality. Range is an integer X where 4 &lt;= X &lt;= 16 for desktop and 0 &lt;= X &lt;= 999 for mobile devices.”
        Returns:
        property passwordMaximumAttemptCount
      • withPasswordMaximumAttemptCount

        public WindowsInformationProtectionPolicy withPasswordMaximumAttemptCount​(Integer passwordMaximumAttemptCount)
        Returns an immutable copy of this with just the passwordMaximumAttemptCount 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 authentication failures allowed before the device will be wiped. A value of 0 disables device wipe functionality. Range is an integer X where 4 &lt;= X &lt;= 16 for desktop and 0 &lt;= X &lt;= 999 for mobile devices.”

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

        public Optional<Integer> getPinExpirationDays()
        “Integer value specifies the period of time (in days) that a PIN can be used before the system requires the user to change it. The largest number you can configure for this policy setting is 730. The lowest number you can configure for this policy setting is 0. If this policy is set to 0, then the user's PIN will never expire. This node was added in Windows 10, version 1511. Default is 0 .”
        Returns:
        property pinExpirationDays
      • withPinExpirationDays

        public WindowsInformationProtectionPolicy withPinExpirationDays​(Integer pinExpirationDays)
        Returns an immutable copy of this with just the pinExpirationDays 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.

        “Integer value specifies the period of time (in days) that a PIN can be used before the system requires the user to change it. The largest number you can configure for this policy setting is 730. The lowest number you can configure for this policy setting is 0. If this policy is set to 0, then the user's PIN will never expire. This node was added in Windows 10, version 1511. Default is 0 .”

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

        public WindowsInformationProtectionPolicy withPinLowercaseLetters​(WindowsInformationProtectionPinCharacterRequirements pinLowercaseLetters)
        Returns an immutable copy of this with just the pinLowercaseLetters 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.

        “Integer value that configures the use of lowercase letters in the Windows Hello for Business PIN. Default is NotAllow.”

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

        public Optional<Integer> getPinMinimumLength()
        “Integer value that sets the minimum number of characters required for the PIN. Default value is 4. The lowest number you can configure for this policy setting is 4. The largest number you can configure must be less than the number configured in the Maximum PIN length policy setting or the number 127, whichever is the lowest.”
        Returns:
        property pinMinimumLength
      • withPinMinimumLength

        public WindowsInformationProtectionPolicy withPinMinimumLength​(Integer pinMinimumLength)
        Returns an immutable copy of this with just the pinMinimumLength 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.

        “Integer value that sets the minimum number of characters required for the PIN. Default value is 4. The lowest number you can configure for this policy setting is 4. The largest number you can configure must be less than the number configured in the Maximum PIN length policy setting or the number 127, whichever is the lowest.”

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

        public Optional<WindowsInformationProtectionPinCharacterRequirements> getPinSpecialCharacters()
        “Integer value that configures the use of special characters in the Windows Hello for Business PIN. Valid special characters for Windows Hello for Business PIN gestures include: ! " # $ % & ' ( ) * + , - . / : ; &lt; = &gt; ? &#064; [ \ ] ^ _ ` { | } ~. Default is NotAllow.”
        Returns:
        property pinSpecialCharacters
      • withPinSpecialCharacters

        public WindowsInformationProtectionPolicy withPinSpecialCharacters​(WindowsInformationProtectionPinCharacterRequirements pinSpecialCharacters)
        Returns an immutable copy of this with just the pinSpecialCharacters 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.

        “Integer value that configures the use of special characters in the Windows Hello for Business PIN. Valid special characters for Windows Hello for Business PIN gestures include: ! " # $ % & ' ( ) * + , - . / : ; &lt; = &gt; ? &#064; [ \ ] ^ _ ` { | } ~. Default is NotAllow.”

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

        public WindowsInformationProtectionPolicy withPinUppercaseLetters​(WindowsInformationProtectionPinCharacterRequirements pinUppercaseLetters)
        Returns an immutable copy of this with just the pinUppercaseLetters 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.

        “Integer value that configures the use of uppercase letters in the Windows Hello for Business PIN. Default is NotAllow.”

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

        public Optional<Boolean> getRevokeOnMdmHandoffDisabled()
        “New property in RS2, pending documentation”
        Returns:
        property revokeOnMdmHandoffDisabled
      • withRevokeOnMdmHandoffDisabled

        public WindowsInformationProtectionPolicy withRevokeOnMdmHandoffDisabled​(Boolean revokeOnMdmHandoffDisabled)
        Returns an immutable copy of this with just the revokeOnMdmHandoffDisabled 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.

        “New property in RS2, pending documentation”

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

        public Optional<Boolean> getWindowsHelloForBusinessBlocked()
        “Boolean value that sets Windows Hello for Business as a method for signing into Windows.”
        Returns:
        property windowsHelloForBusinessBlocked
      • withWindowsHelloForBusinessBlocked

        public WindowsInformationProtectionPolicy withWindowsHelloForBusinessBlocked​(Boolean windowsHelloForBusinessBlocked)
        Returns an immutable copy of this with just the windowsHelloForBusinessBlocked 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.

        “Boolean value that sets Windows Hello for Business as a method for signing into Windows.”

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

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