Class DeviceEnrollmentPlatformRestrictionConfiguration

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

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

      • DeviceEnrollmentPlatformRestrictionConfiguration

        protected DeviceEnrollmentPlatformRestrictionConfiguration()
    • Method Detail

      • builderDeviceEnrollmentPlatformRestrictionConfiguration

        public static DeviceEnrollmentPlatformRestrictionConfiguration.Builder builderDeviceEnrollmentPlatformRestrictionConfiguration()
        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
      • getPlatformRestriction

        public Optional<DeviceEnrollmentPlatformRestriction> getPlatformRestriction()
        “Restrictions based on platform, platform operating system version, and device ownership”
        Returns:
        property platformRestriction
      • withPlatformRestriction

        public DeviceEnrollmentPlatformRestrictionConfiguration withPlatformRestriction​(DeviceEnrollmentPlatformRestriction platformRestriction)
        Returns an immutable copy of this with just the platformRestriction 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.

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

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

        public DeviceEnrollmentPlatformRestrictionConfiguration withPlatformType​(EnrollmentRestrictionPlatformType platformType)
        Returns an immutable copy of this with just the platformType 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.

        “Type of platform for which this restriction applies.”

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