@Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || ! (obj instanceof MetadataEntry)) {
            return false;
        }

        final MetadataEntry other = (MetadataEntry) obj;

        if (other.getName() == null ^ this.getName() == null)
            return false;
        if (other.getName() != null && !other.getName().equals(this.getName()))
            return false;
        if (other.getValue() == null ^ this.getValue() == null)
            return false;
        if (other.getValue() != null && !other.getValue().equals(this.getValue()))
            return false;
        return true;
    }
Set the metadata value.

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