Class DeviceEnrollmentPlatformRestrictionsConfiguration

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

    public class DeviceEnrollmentPlatformRestrictionsConfiguration
    extends DeviceEnrollmentConfiguration
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Device Enrollment Configuration that restricts the types of devices a user can enroll”
    • Constructor Detail

      • DeviceEnrollmentPlatformRestrictionsConfiguration

        protected DeviceEnrollmentPlatformRestrictionsConfiguration()
    • Method Detail

      • builderDeviceEnrollmentPlatformRestrictionsConfiguration

        public static DeviceEnrollmentPlatformRestrictionsConfiguration.Builder builderDeviceEnrollmentPlatformRestrictionsConfiguration()
        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 DeviceEnrollmentConfiguration
      • postInject

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

        public Optional<DeviceEnrollmentPlatformRestriction> getAndroidForWorkRestriction()
        “Android for work restrictions based on platform, platform operating system version, and device ownership”
        Returns:
        property androidForWorkRestriction
      • withAndroidForWorkRestriction

        public DeviceEnrollmentPlatformRestrictionsConfiguration withAndroidForWorkRestriction​(DeviceEnrollmentPlatformRestriction androidForWorkRestriction)
        Returns an immutable copy of this with just the androidForWorkRestriction 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.

        “Android for work restrictions based on platform, platform operating system version, and device ownership”

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

        public Optional<DeviceEnrollmentPlatformRestriction> getAndroidRestriction()
        “Android restrictions based on platform, platform operating system version, and device ownership”
        Returns:
        property androidRestriction
      • withAndroidRestriction

        public DeviceEnrollmentPlatformRestrictionsConfiguration withAndroidRestriction​(DeviceEnrollmentPlatformRestriction androidRestriction)
        Returns an immutable copy of this with just the androidRestriction 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.

        “Android restrictions based on platform, platform operating system version, and device ownership”

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

        public Optional<DeviceEnrollmentPlatformRestriction> getIosRestriction()
        “Ios restrictions based on platform, platform operating system version, and device ownership”
        Returns:
        property iosRestriction
      • withIosRestriction

        public DeviceEnrollmentPlatformRestrictionsConfiguration withIosRestriction​(DeviceEnrollmentPlatformRestriction iosRestriction)
        Returns an immutable copy of this with just the iosRestriction 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.

        “Ios restrictions based on platform, platform operating system version, and device ownership”

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

        public Optional<DeviceEnrollmentPlatformRestriction> getMacOSRestriction()
        “Mac restrictions based on platform, platform operating system version, and device ownership”
        Returns:
        property macOSRestriction
      • withMacOSRestriction

        public DeviceEnrollmentPlatformRestrictionsConfiguration withMacOSRestriction​(DeviceEnrollmentPlatformRestriction macOSRestriction)
        Returns an immutable copy of this with just the macOSRestriction 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.

        “Mac restrictions based on platform, platform operating system version, and device ownership”

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

        public Optional<DeviceEnrollmentPlatformRestriction> getMacRestriction()
        “Mac restrictions based on platform, platform operating system version, and device ownership”
        Returns:
        property macRestriction
      • withMacRestriction

        public DeviceEnrollmentPlatformRestrictionsConfiguration withMacRestriction​(DeviceEnrollmentPlatformRestriction macRestriction)
        Returns an immutable copy of this with just the macRestriction 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.

        “Mac restrictions based on platform, platform operating system version, and device ownership”

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

        public Optional<DeviceEnrollmentPlatformRestriction> getWindowsHomeSkuRestriction()
        “Windows Home Sku restrictions based on platform, platform operating system version, and device ownership”
        Returns:
        property windowsHomeSkuRestriction
      • withWindowsHomeSkuRestriction

        public DeviceEnrollmentPlatformRestrictionsConfiguration withWindowsHomeSkuRestriction​(DeviceEnrollmentPlatformRestriction windowsHomeSkuRestriction)
        Returns an immutable copy of this with just the windowsHomeSkuRestriction 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.

        “Windows Home Sku restrictions based on platform, platform operating system version, and device ownership”

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

        public Optional<DeviceEnrollmentPlatformRestriction> getWindowsMobileRestriction()
        “Windows mobile restrictions based on platform, platform operating system version , and device ownership”
        Returns:
        property windowsMobileRestriction
      • withWindowsMobileRestriction

        public DeviceEnrollmentPlatformRestrictionsConfiguration withWindowsMobileRestriction​(DeviceEnrollmentPlatformRestriction windowsMobileRestriction)
        Returns an immutable copy of this with just the windowsMobileRestriction 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.

        “Windows mobile restrictions based on platform, platform operating system version , and device ownership”

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

        public Optional<DeviceEnrollmentPlatformRestriction> getWindowsRestriction()
        “Windows restrictions based on platform, platform operating system version, and device ownership”
        Returns:
        property windowsRestriction
      • withWindowsRestriction

        public DeviceEnrollmentPlatformRestrictionsConfiguration withWindowsRestriction​(DeviceEnrollmentPlatformRestriction windowsRestriction)
        Returns an immutable copy of this with just the windowsRestriction 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.

        “Windows restrictions based on platform, platform operating system version, and device ownership”

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