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 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 software.amazon.smithy.model.traits.AbstractTraitBuilder
getSourceLocation, sourceLocation
-
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
-
-
-
-
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.
-
-