com.easilydo.sift.model.gen.Event Maven / Gradle / Ivy
Show all versions of sift-sdk Show documentation
package com.easilydo.sift.model.gen;
import java.util.Date;
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;
/**
* Event
*
*
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@Generated("org.jsonschema2pojo")
@JsonPropertyOrder({
"endDate",
"location",
"name",
"startDate"
})
public class Event {
@JsonProperty("endDate")
private Date endDate;
/**
* Place
*
*
*
*/
@JsonProperty("location")
private Place location;
@JsonProperty("name")
private String name;
@JsonProperty("startDate")
private Date startDate;
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
*
* @return
* The endDate
*/
@JsonProperty("endDate")
public Date getEndDate() {
return endDate;
}
/**
*
* @param endDate
* The endDate
*/
@JsonProperty("endDate")
public void setEndDate(Date endDate) {
this.endDate = endDate;
}
/**
* Place
*
*
*
* @return
* The location
*/
@JsonProperty("location")
public Place getLocation() {
return location;
}
/**
* Place
*
*
*
* @param location
* The location
*/
@JsonProperty("location")
public void setLocation(Place location) {
this.location = location;
}
/**
*
* @return
* The name
*/
@JsonProperty("name")
public String getName() {
return name;
}
/**
*
* @param name
* The name
*/
@JsonProperty("name")
public void setName(String name) {
this.name = name;
}
/**
*
* @return
* The startDate
*/
@JsonProperty("startDate")
public Date getStartDate() {
return startDate;
}
/**
*
* @param startDate
* The startDate
*/
@JsonProperty("startDate")
public void setStartDate(Date startDate) {
this.startDate = startDate;
}
@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(endDate).append(location).append(name).append(startDate).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof Event) == false) {
return false;
}
Event rhs = ((Event) other);
return new EqualsBuilder().append(endDate, rhs.endDate).append(location, rhs.location).append(name, rhs.name).append(startDate, rhs.startDate).append(additionalProperties, rhs.additionalProperties).isEquals();
}
}