C - CodegenContext type.S - Codegen settings type.public final class GenerateEnumDirective<C extends CodegenContext<S,?>,S> extends ShapeDirective<Shape,C,S>
| Modifier and Type | Class and Description |
|---|---|
static class |
GenerateEnumDirective.EnumType
Represents the type of enum to generate.
|
| Modifier and Type | Method and Description |
|---|---|
EnumTrait |
getEnumTrait()
Gets the
EnumTrait of the shape. |
GenerateEnumDirective.EnumType |
getEnumType()
Gets the type of enum being generated, whether it's a string shape marked with
the enum trait or, in Smithy IDL 2.0, an actual enum shape.
|
shape, symbolcontext, fileManifest, symbolProviderconnectedShapes, model, operations, service, settingspublic GenerateEnumDirective.EnumType getEnumType()
Note that Smithy IDL 2.0 generators can perform a pre-processing transform to convert eligible string shape enums to proper enums, removing the need to check this property.
getEnumTrait()