@Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        } else if (!(o instanceof IndexExpression)) {
            return false;
        }
        IndexExpression other = (IndexExpression) o;
        return getIndex() == other.getIndex();
    }
Gets the index to retrieve.

@return Returns the index.
smithy-jmespath/src/main/java/software/amazon/smithy/jmespath/ast/IndexExpression.java