public Optional<BigDecimal> getMax() {
        return Optional.ofNullable(max);
    }
Gets the max value.

@return returns the optional max value.
smithy-model/src/main/java/software/amazon/smithy/model/traits/RangeTrait.java