Class DeviceManagementSettingCollectionConstraint

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

    public class DeviceManagementSettingCollectionConstraint
    extends DeviceManagementConstraint
    implements com.github.davidmoten.odata.client.ODataType
    “Constraint that enforces the maximum number of elements a collection”
    • Field Detail

      • maximumLength

        protected Integer maximumLength
      • minimumLength

        protected Integer minimumLength
    • Constructor Detail

      • DeviceManagementSettingCollectionConstraint

        protected DeviceManagementSettingCollectionConstraint()
    • Method Detail

      • getMaximumLength

        public Optional<Integer> getMaximumLength()
        “The maximum number of elements in the collection”
        Returns:
        property maximumLength
      • withMaximumLength

        public DeviceManagementSettingCollectionConstraint withMaximumLength​(Integer maximumLength)
        Returns an immutable copy of this with just the maximumLength 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 maximum number of elements in the collection”

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

        public Optional<Integer> getMinimumLength()
        “The minimum number of elements in the collection”
        Returns:
        property minimumLength
      • withMinimumLength

        public DeviceManagementSettingCollectionConstraint withMinimumLength​(Integer minimumLength)
        Returns an immutable copy of this with just the minimumLength 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 minimum number of elements in the collection”

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

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

        public static DeviceManagementSettingCollectionConstraint.Builder builderDeviceManagementSettingCollectionConstraint()
        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