Class EnumTrait.Builder
java.lang.Object
software.amazon.smithy.model.traits.AbstractTraitBuilder<EnumTrait,EnumTrait.Builder>
software.amazon.smithy.model.traits.EnumTrait.Builder
- All Implemented Interfaces:
SmithyBuilder<EnumTrait>
- Direct Known Subclasses:
SyntheticEnumTrait.Builder
- Enclosing class:
- EnumTrait
Builder used to create the enum trait.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddEnum
(EnumDefinition value) build()
Creates an immutable object that is created from the properties that have been set on the builder.removeEnum
(String value) removeEnumByName
(String name) Methods inherited from class software.amazon.smithy.model.traits.AbstractTraitBuilder
getSourceLocation, sourceLocation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addEnum
-
removeEnum
-
removeEnumByName
-
clearEnums
-
build
Description copied from interface:SmithyBuilder
Creates an immutable object that is created from the properties that have been set on the builder.- Returns:
- an instance of T
-