public IntEnumShape expectIntEnumShape() {
        return shape().asIntEnumShape()
                .orElseThrow(() -> new ExpectationNotMetException(
                        "Expected an IntEnum shape, but found " + shape(),
                        shape()));
    }
Directive used to generate an intEnum.

@param <C> CodegenContext type.
@param <S> Codegen settings type.
@see DirectedCodegen#generateIntEnumShape
smithy-codegen-core/src/main/java/software/amazon/smithy/codegen/core/directed/GenerateIntEnumDirective.java