Interface ArraySetting.Builder

  • Method Details

    • minLength

      ArraySetting.Builder minLength(Integer minLength)

      The fewest items the array may hold.

      Parameters:
      minLength - The fewest items the array may hold.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxLength

      ArraySetting.Builder maxLength(Integer maxLength)

      The most items the array may hold, between 1 and 100. Must be at least minLength.

      Parameters:
      maxLength - The most items the array may hold, between 1 and 100. Must be at least minLength.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • itemDefinition

      ArraySetting.Builder itemDefinition(SettingDefinition itemDefinition)

      The definition for each element in the array.

      Parameters:
      itemDefinition - The definition for each element in the array.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • itemDefinition

      default ArraySetting.Builder itemDefinition(Consumer<SettingDefinition.Builder> itemDefinition)

      The definition for each element in the array.

      This is a convenience method that creates an instance of the SettingDefinition.Builder avoiding the need to create one manually via SettingDefinition.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to itemDefinition(SettingDefinition).

      Parameters:
      itemDefinition - a consumer that will call methods on SettingDefinition.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: