public final class EnumTrait extends AbstractTrait implements ToSmithyBuilder<EnumTrait>
Modifier and Type | Class and Description |
---|---|
static class |
EnumTrait.Builder
Builder used to create the enum trait.
|
static class |
EnumTrait.Provider |
Modifier and Type | Method and Description |
---|---|
static EnumTrait.Builder |
builder() |
protected Node |
createNode()
The result of toNode is used for hashCodes and equality.
|
java.util.List<java.lang.String> |
getEnumDefinitionValues()
Gets the acceptable enum literal values.
|
java.util.List<EnumDefinition> |
getValues()
Gets the enum value to body.
|
boolean |
hasNames()
Checks if all of the constants of an enum define a name.
|
EnumTrait.Builder |
toBuilder()
Take this object and create a builder that contains all of the
current property values of this object.
|
equals, getSourceLocation, hashCode, setNodeCache, toNode, toShapeId, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
flatMapStream, getIdiomaticTraitName, getIdiomaticTraitName, isSynthetic, makeAbsoluteName, makeAbsoluteName
public static final ShapeId ID
public java.util.List<EnumDefinition> getValues()
public java.util.List<java.lang.String> getEnumDefinitionValues()
public boolean hasNames()
Note that either all constants must have a name or no constants can have a name.
protected Node createNode()
AbstractTrait
createNode
in class AbstractTrait
public EnumTrait.Builder toBuilder()
ToSmithyBuilder
toBuilder
in interface ToSmithyBuilder<EnumTrait>
public static EnumTrait.Builder builder()