@Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (!(obj instanceof UploadDocumentStreamRequest)) {
            return false;
        }
        
        UploadDocumentStreamRequest other = (UploadDocumentStreamRequest) obj;
        if (other.authenticationToken == null ^ this.authenticationToken == null) {
            return false;
        }
        if (other.authenticationToken != null && !other.authenticationToken.equals(this.authenticationToken)) {
            return false;
        }
        if (other.documentId == null ^ this.documentId == null) {
            return false;
        }
        if (other.documentId != null && !other.documentId.equals(this.documentId)) {
            return false;
        }
        if (other.parentFolderId == null ^ this.parentFolderId == null) {
            return false;
        }
        if (other.parentFolderId != null && !other.parentFolderId.equals(this.parentFolderId)) {
            return false;
        }
        if (other.documentName == null ^ this.documentName == null) {
            return false;
        }
        if (other.documentName != null && !other.documentName.equals(this.documentName)) {
            return false;
        }
        if (other.contentType == null ^ this.contentType == null) {
            return false;
        }
        if (other.contentType != null && !other.contentType.equals(this.contentType)) {
            return false;
        }
        if (other.contentCreatedTimestamp == null ^ this.contentCreatedTimestamp == null) {
            return false;
        }
        if (other.contentCreatedTimestamp != null && !other.contentCreatedTimestamp.equals(this.contentCreatedTimestamp)) {
            return false;
        }
        if (other.contentModifiedTimestamp == null ^ this.contentModifiedTimestamp == null) {
            return false;
        }
        if (other.contentModifiedTimestamp != null && !other.contentModifiedTimestamp.equals(this.contentModifiedTimestamp)) {
            return false;
        }
        if (other.documentSizeInBytes == null ^ this.documentSizeInBytes == null) {
            return false;
        }
        if (other.documentSizeInBytes != null && !other.documentSizeInBytes.equals(this.documentSizeInBytes)) {
            return false;
        }
        if (other.stream == null ^ this.stream == null) {
            return false;
        }
        if (other.stream != null && !other.stream.equals(this.stream)) {
            return false;
        }
        return true;
    }
Sets authentication token.
@param authenticationToken Authentication token.
@return This object for method chaining.
aws-java-sdk-workdocs/src/main/java/com/amazonaws/services/workdocs/UploadDocumentStreamRequest.java