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

        hashCode = prime * hashCode + ((getBucketName() == null) ? 0 : getBucketName().hashCode());
        hashCode = prime * hashCode + ((getPrefix() == null) ? 0 : getPrefix().hashCode());
        hashCode = prime * hashCode + ((getEncryption() == null) ? 0 : getEncryption().hashCode());
        hashCode = prime * hashCode + ((getCannedACL() == null) ? 0 : getCannedACL().hashCode());
        hashCode = prime * hashCode + ((getAccessControlList() == null) ? 0 : getAccessControlList().hashCode());
        hashCode = prime * hashCode + (getTagging() != null ? getTagging().hashCode() : 0);
        hashCode = prime * hashCode + (getUserMetadata() != null ? getUserMetadata().hashCode() : 0);
        hashCode = prime * hashCode + (getStorageClass() != null ? getStorageClass().hashCode() : 0);
        return hashCode;
    }
Sets the class of storage used to store the restore results.

@param storageClass The new storageClass value.
@return This object for method chaining.
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/S3Location.java