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
-
Method Summary
Modifier and TypeMethodDescriptionAdds a value to the builder.Clears all values out of the builder.Gets the values set in the builder.removeValue
(String value) Removes a value from the builder.values
(Collection<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
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
getValues
Gets the values set in the builder.- Returns:
- Returns the set values.
-
addValue
Adds a value to the builder.- Parameters:
value
- Value to add.- Returns:
- Returns the builder.
-
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
Removes a value from the builder.- Parameters:
value
- Value to remove.- Returns:
- Returns the builder.
-
clearValues
Clears all values out of the builder.- Returns:
- Returns the builder.
-