@Override
    protected Model transformWithConfig(TransformContext context, Config config) {
        if (config.getShapeTypes().isEmpty()) {
            throw new SmithyBuildException(getName() + ": shapeTypes must not be empty");
        }

        if (config.getSynthesizeEnumNames()) {
            return context.getTransformer()
                    .changeShapeType(
                            context.getModel(),
                            config.getShapeTypes(),
                            ChangeShapeTypeOption.SYNTHESIZE_ENUM_NAMES);
        }

        return context.getTransformer()
                .changeShapeType(
                        context.getModel(),
                        config.getShapeTypes());
    }
Sets whether to synthesize names for enums that don't already have them.

@param synthesizeEnumNames Whether to synthesize enum names.
smithy-build/src/main/java/software/amazon/smithy/build/transforms/ChangeTypes.java