UserDocumentFileRequest.java

package org.oxerr.stubhub.client.model;

import java.io.Serializable;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

public class UserDocumentFileRequest implements Serializable {

	private static final long serialVersionUID = 2026051801L;

	/**
	 * Name of the file
	 */
	private String name;

	/**
	 * Base64 encoded content of the file
	 */
	private String content;

	/**
	 * Content type of the file
	 * application/pdf - pdf eticket application/vnd.apple.pkpass - Apple iPhone eticket application/json - Google Wallet eticket
	 */
	private String contentType;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getContentType() {
		return contentType;
	}

	public void setContentType(String contentType) {
		this.contentType = contentType;
	}

	@Override
	public int hashCode() {
		return HashCodeBuilder.reflectionHashCode(this);
	}

	@Override
	public boolean equals(Object obj) {
		return EqualsBuilder.reflectionEquals(this, obj);
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}