@Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;

        hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
        hashCode = prime * hashCode + ((getValue() == null) ? 0 : getValue().hashCode());
        return hashCode;
    }
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