public String expectStringValue() {
        return getStringValue().orElseThrow(() -> new ExpectationNotMetException(
                "Expected string value was not set.",
                this));
    }
Gets the string value.

@return Returns the string value.
@throws ExpectationNotMetException if the string value was not set.
smithy-model/src/main/java/software/amazon/smithy/model/traits/EnumValueTrait.java