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

    • Constructor Summary

      Constructors 
      Constructor Description
      Builder()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      BUILDER addValue​(java.lang.String value)
      Adds a value to the builder.
      BUILDER clearValues()
      Clears all values out of the builder.
      java.util.List<java.lang.String> getValues()
      Gets the values set in the builder.
      BUILDER removeValue​(java.lang.String value)
      Removes a value from the builder.
      BUILDER values​(java.util.Collection<java.lang.String> values)
      Replaces all of the values in the builder with the given values.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface software.amazon.smithy.utils.SmithyBuilder

        build
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • getValues

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

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

        public BUILDER values​(java.util.Collection<java.lang.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​(java.lang.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.