public EnumTrait getEnumTrait() {
        return shape().expectTrait(EnumTrait.class);
    }
Gets the {@link EnumTrait} of the shape.

@return Returns the enum trait.
smithy-codegen-core/src/main/java/software/amazon/smithy/codegen/core/directed/GenerateEnumDirective.java