public int expectIntValue() {
        return getIntValue().orElseThrow(() -> new ExpectationNotMetException(
                "Expected integer value was not set.",
                this));
    }
Gets the int value.

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