public Builder addMember(String memberName, int enumValue, Consumer<MemberShape.Builder> memberUpdater) {
            if (getId() == null) {
                throw new IllegalStateException("An id must be set before setting a member with a target");
            }

            MemberShape.Builder builder = MemberShape.builder()
                    .target(UnitTypeTrait.UNIT)
                    .id(getId().withMember(memberName))
                    .addTrait(EnumValueTrait.builder().intValue(enumValue).build());

            if (memberUpdater != null) {
                memberUpdater.accept(builder);
            }

            return addMember(builder.build());
        }
Adds a member to the builder.

@param memberName Member name to add.
@param enumValue The value of the enum.
@param memberUpdater Consumer that can update the created member shape.
@return Returns the builder.
smithy-model/src/main/java/software/amazon/smithy/model/shapes/IntEnumShape.java