com.easilydo.sift.model.gen.Ticket Maven / Gradle / Ivy
Show all versions of sift-sdk Show documentation
package com.easilydo.sift.model.gen;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.Generated;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
/**
* Ticket
*
*
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@Generated("org.jsonschema2pojo")
@JsonPropertyOrder({
"ticketNumber",
"ticketedSeat",
"underName",
"ticketToken",
"url",
"ticketUrl",
"description"
})
public class Ticket {
@JsonProperty("ticketNumber")
private String ticketNumber;
/**
* Seat
*
*
*
*/
@JsonProperty("ticketedSeat")
private Seat ticketedSeat;
/**
* Person
*
*
*
*/
@JsonProperty("underName")
private Person underName;
@JsonProperty("ticketToken")
private String ticketToken;
@JsonProperty("url")
private String url;
@JsonProperty("ticketUrl")
private String ticketUrl;
@JsonProperty("description")
private String description;
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
*
* @return
* The ticketNumber
*/
@JsonProperty("ticketNumber")
public String getTicketNumber() {
return ticketNumber;
}
/**
*
* @param ticketNumber
* The ticketNumber
*/
@JsonProperty("ticketNumber")
public void setTicketNumber(String ticketNumber) {
this.ticketNumber = ticketNumber;
}
/**
* Seat
*
*
*
* @return
* The ticketedSeat
*/
@JsonProperty("ticketedSeat")
public Seat getTicketedSeat() {
return ticketedSeat;
}
/**
* Seat
*
*
*
* @param ticketedSeat
* The ticketedSeat
*/
@JsonProperty("ticketedSeat")
public void setTicketedSeat(Seat ticketedSeat) {
this.ticketedSeat = ticketedSeat;
}
/**
* Person
*
*
*
* @return
* The underName
*/
@JsonProperty("underName")
public Person getUnderName() {
return underName;
}
/**
* Person
*
*
*
* @param underName
* The underName
*/
@JsonProperty("underName")
public void setUnderName(Person underName) {
this.underName = underName;
}
/**
*
* @return
* The ticketToken
*/
@JsonProperty("ticketToken")
public String getTicketToken() {
return ticketToken;
}
/**
*
* @param ticketToken
* The ticketToken
*/
@JsonProperty("ticketToken")
public void setTicketToken(String ticketToken) {
this.ticketToken = ticketToken;
}
/**
*
* @return
* The url
*/
@JsonProperty("url")
public String getUrl() {
return url;
}
/**
*
* @param url
* The url
*/
@JsonProperty("url")
public void setUrl(String url) {
this.url = url;
}
/**
*
* @return
* The ticketUrl
*/
@JsonProperty("ticketUrl")
public String getTicketUrl() {
return ticketUrl;
}
/**
*
* @param ticketUrl
* The ticketUrl
*/
@JsonProperty("ticketUrl")
public void setTicketUrl(String ticketUrl) {
this.ticketUrl = ticketUrl;
}
/**
*
* @return
* The description
*/
@JsonProperty("description")
public String getDescription() {
return description;
}
/**
*
* @param description
* The description
*/
@JsonProperty("description")
public void setDescription(String description) {
this.description = description;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(ticketNumber).append(ticketedSeat).append(underName).append(ticketToken).append(url).append(ticketUrl).append(description).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof Ticket) == false) {
return false;
}
Ticket rhs = ((Ticket) other);
return new EqualsBuilder().append(ticketNumber, rhs.ticketNumber).append(ticketedSeat, rhs.ticketedSeat).append(underName, rhs.underName).append(ticketToken, rhs.ticketToken).append(url, rhs.url).append(ticketUrl, rhs.ticketUrl).append(description, rhs.description).append(additionalProperties, rhs.additionalProperties).isEquals();
}
}