Class DeviceManagementSettingStringLengthConstraint

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

    public class DeviceManagementSettingStringLengthConstraint
    extends DeviceManagementConstraint
    implements com.github.davidmoten.odata.client.ODataType
    “Constraint enforcing a given string length range”
    • Field Detail

      • maximumLength

        protected Integer maximumLength
      • minimumLength

        protected Integer minimumLength
    • Constructor Detail

      • DeviceManagementSettingStringLengthConstraint

        protected DeviceManagementSettingStringLengthConstraint()
    • Method Detail

      • getMaximumLength

        public Optional<Integer> getMaximumLength()
        “The maximum permitted string length”
        Returns:
        property maximumLength
      • withMaximumLength

        public DeviceManagementSettingStringLengthConstraint 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 permitted string length”

        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 permitted string length”
        Returns:
        property minimumLength
      • withMinimumLength

        public DeviceManagementSettingStringLengthConstraint 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 permitted string length”

        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
      • builderDeviceManagementSettingStringLengthConstraint

        public static DeviceManagementSettingStringLengthConstraint.Builder builderDeviceManagementSettingStringLengthConstraint()
        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