Class StringListTrait.Builder<TRAIT extends StringListTrait,BUILDER extends StringListTrait.Builder>

java.lang.Object
software.amazon.smithy.model.traits.AbstractTraitBuilder<TRAIT,BUILDER>
software.amazon.smithy.model.traits.StringListTrait.Builder<TRAIT,BUILDER>
All Implemented Interfaces:
SmithyBuilder<TRAIT>
Direct Known Subclasses:
ConditionKeysTrait.Builder, RequiredActionsTrait.Builder, SupportedPrincipalTypesTrait.Builder, SuppressTrait.Builder, TagsTrait.Builder
Enclosing class:
StringListTrait

public abstract static class StringListTrait.Builder<TRAIT extends StringListTrait,BUILDER extends StringListTrait.Builder> extends AbstractTraitBuilder<TRAIT,BUILDER>
Abstract builder to build a StringList trait.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • getValues

      public List<String> getValues()
      Gets the values set in the builder.
      Returns:
      Returns the set values.
    • addValue

      public BUILDER addValue(String value)
      Adds a value to the builder.
      Parameters:
      value - Value to add.
      Returns:
      Returns the builder.
    • values

      public BUILDER values(Collection<String> values)
      Replaces all of the values in the builder with the given values.
      Parameters:
      values - Value to replace into the builder.
      Returns:
      Returns the builder.
    • removeValue

      public BUILDER removeValue(String value)
      Removes a value from the builder.
      Parameters:
      value - Value to remove.
      Returns:
      Returns the builder.
    • clearValues

      public BUILDER clearValues()
      Clears all values out of the builder.
      Returns:
      Returns the builder.