@Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        AwsArn awsArn = (AwsArn) o;
        return partition.equals(awsArn.partition) && service.equals(awsArn.service)
                && region.equals(awsArn.region)
                && accountId.equals(awsArn.accountId)
                && resource.equals(awsArn.resource);
    }
Gets the ARN's resource components.

@return returns the ARN's resource components.
smithy-aws-endpoints/src/main/java/software/amazon/smithy/rulesengine/aws/language/functions/AwsArn.java