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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitflatMapStream, getIdiomaticTraitName, getIdiomaticTraitName, isSynthetic, makeAbsoluteName, makeAbsoluteNamepublic 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()
AbstractTraitcreateNode in class AbstractTraitpublic EnumTrait.Builder toBuilder()
ToSmithyBuildertoBuilder in interface ToSmithyBuilder<EnumTrait>public static EnumTrait.Builder builder()