@Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        ArnResource that = (ArnResource) o;

        if (resourceType != null ? !resourceType.equals(that.resourceType) : that.resourceType != null) {
            return false;
        }
        if (!resource.equals(that.resource)) {
            return false;
        }
        return qualifier != null ? qualifier.equals(that.qualifier) : that.qualifier == null;
    }
Parses a string containing either a resource, resource type and resource or
resource type, resource and qualifier into an {@link ArnResource}.
<p>
Matches:
<p><pre>
resource-id
resource-type:resource-id
resource-type/resource-id
resource-type:resource-id:qualifier
resource-type/resource-id:qualifier
</pre><p>
resource-id can be a resource name or a resource path.

@param resource - The resource string to parse.
@return {@link ArnResource}
aws-java-sdk-core/src/main/java/com/amazonaws/arn/ArnResource.java