com.easilydo.sift.model.gen.FlightReservation Maven / Gradle / Ivy
Show all versions of sift-sdk Show documentation
package com.easilydo.sift.model.gen;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
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;
import com.easilydo.sift.model.Sift;
/**
* FlightReservation
*
*
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@Generated("org.jsonschema2pojo")
@JsonPropertyOrder({
"broker",
"programMembershipUsed",
"reservationFor",
"reservationId",
"reservationStatus",
"reservedTicket"
})
public class FlightReservation extends Sift {
/**
* Organization
*
*
*
*/
@JsonProperty("broker")
private Organization broker;
@JsonProperty("programMembershipUsed")
private List programMembershipUsed = new ArrayList();
@JsonProperty("reservationFor")
private List reservationFor = new ArrayList();
@JsonProperty("reservationId")
private String reservationId;
/**
* ReservationStatus
*
*
*
*/
@JsonProperty("reservationStatus")
private ReservationStatus reservationStatus;
@JsonProperty("reservedTicket")
private List reservedTicket = new ArrayList();
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
* Organization
*
*
*
* @return
* The broker
*/
@JsonProperty("broker")
public Organization getBroker() {
return broker;
}
/**
* Organization
*
*
*
* @param broker
* The broker
*/
@JsonProperty("broker")
public void setBroker(Organization broker) {
this.broker = broker;
}
/**
*
* @return
* The programMembershipUsed
*/
@JsonProperty("programMembershipUsed")
public List getProgramMembershipUsed() {
return programMembershipUsed;
}
/**
*
* @param programMembershipUsed
* The programMembershipUsed
*/
@JsonProperty("programMembershipUsed")
public void setProgramMembershipUsed(List programMembershipUsed) {
this.programMembershipUsed = programMembershipUsed;
}
/**
*
* @return
* The reservationFor
*/
@JsonProperty("reservationFor")
public List getReservationFor() {
return reservationFor;
}
/**
*
* @param reservationFor
* The reservationFor
*/
@JsonProperty("reservationFor")
public void setReservationFor(List reservationFor) {
this.reservationFor = reservationFor;
}
/**
*
* @return
* The reservationId
*/
@JsonProperty("reservationId")
public String getReservationId() {
return reservationId;
}
/**
*
* @param reservationId
* The reservationId
*/
@JsonProperty("reservationId")
public void setReservationId(String reservationId) {
this.reservationId = reservationId;
}
/**
* ReservationStatus
*
*
*
* @return
* The reservationStatus
*/
@JsonProperty("reservationStatus")
public ReservationStatus getReservationStatus() {
return reservationStatus;
}
/**
* ReservationStatus
*
*
*
* @param reservationStatus
* The reservationStatus
*/
@JsonProperty("reservationStatus")
public void setReservationStatus(ReservationStatus reservationStatus) {
this.reservationStatus = reservationStatus;
}
/**
*
* @return
* The reservedTicket
*/
@JsonProperty("reservedTicket")
public List getReservedTicket() {
return reservedTicket;
}
/**
*
* @param reservedTicket
* The reservedTicket
*/
@JsonProperty("reservedTicket")
public void setReservedTicket(List reservedTicket) {
this.reservedTicket = reservedTicket;
}
@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(broker).append(programMembershipUsed).append(reservationFor).append(reservationId).append(reservationStatus).append(reservedTicket).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof FlightReservation) == false) {
return false;
}
FlightReservation rhs = ((FlightReservation) other);
return new EqualsBuilder().append(broker, rhs.broker).append(programMembershipUsed, rhs.programMembershipUsed).append(reservationFor, rhs.reservationFor).append(reservationId, rhs.reservationId).append(reservationStatus, rhs.reservationStatus).append(reservedTicket, rhs.reservedTicket).append(additionalProperties, rhs.additionalProperties).isEquals();
}
}