Interface StringSetting.Builder

  • Method Details

    • defaultValue

      StringSetting.Builder defaultValue(String defaultValue)

      The default value used when the deployer does not provide one.

      Parameters:
      defaultValue - The default value used when the deployer does not provide one.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • format

      StringSetting.Builder format(String format)

      A named format constraint that implies additional validation (e.g. 'arn' or 'filepath').

      Parameters:
      format - A named format constraint that implies additional validation (e.g. 'arn' or 'filepath').
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • format

      A named format constraint that implies additional validation (e.g. 'arn' or 'filepath').

      Parameters:
      format - A named format constraint that implies additional validation (e.g. 'arn' or 'filepath').
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • pattern

      StringSetting.Builder pattern(String pattern)

      A regular expression the value must match.

      Parameters:
      pattern - A regular expression the value must match.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • enumValue

      StringSetting.Builder enumValue(Collection<String> enumValue)

      An explicit list of allowed values. The deployer must choose from this set.

      Parameters:
      enumValue - An explicit list of allowed values. The deployer must choose from this set.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • enumValue

      StringSetting.Builder enumValue(String... enumValue)

      An explicit list of allowed values. The deployer must choose from this set.

      Parameters:
      enumValue - An explicit list of allowed values. The deployer must choose from this set.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • minLength

      StringSetting.Builder minLength(Integer minLength)

      The shortest length the value may have.

      Parameters:
      minLength - The shortest length the value may have.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxLength

      StringSetting.Builder maxLength(Integer maxLength)

      The longest length the value may have. Must be greater than 0 and at least minLength.

      Parameters:
      maxLength - The longest length the value may have. Must be greater than 0 and at least minLength.
      Returns:
      Returns a reference to this object so that method calls can be chained together.