public Optional<Integer> getIntValue() {
        return value.asNumberNode().map(NumberNode::getValue).map(Number::intValue);
    }
Gets the int value if an int value was set.

@return Returns the set int value.
smithy-model/src/main/java/software/amazon/smithy/model/traits/EnumValueTrait.java