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
public static class EnumTrait.Builder extends AbstractTraitBuilder<EnumTrait,EnumTrait.Builder>
Builder used to create the enum trait.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnumTrait.Builder
addEnum(EnumDefinition value)
EnumTrait
build()
Creates an immutable object that is created from the properties that have been set on the builder.EnumTrait.Builder
clearEnums()
EnumTrait.Builder
removeEnum(java.lang.String value)
EnumTrait.Builder
removeEnumByName(java.lang.String name)
-
Methods inherited from class software.amazon.smithy.model.traits.AbstractTraitBuilder
getSourceLocation, sourceLocation
-
-
-
-
Method Detail
-
addEnum
public EnumTrait.Builder addEnum(EnumDefinition value)
-
removeEnum
public EnumTrait.Builder removeEnum(java.lang.String value)
-
removeEnumByName
public EnumTrait.Builder removeEnumByName(java.lang.String name)
-
clearEnums
public EnumTrait.Builder clearEnums()
-
build
public EnumTrait 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
-
-