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

        Tag tag = (Tag) o;

        if (key != null ? !key.equals(tag.key) : tag.key != null) return false;
        return value != null ? value.equals(tag.value) : tag.value == null;

    }
Set the tag value.

@param value
           The tag value.
@return
           This object for chaining.
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/Tag.java