All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.easilydo.sift.model.gen.Person Maven / Gradle / Ivy

The newest version!

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;


/**
 * Person
 * 

* * */ @JsonInclude(JsonInclude.Include.NON_NULL) @Generated("org.jsonschema2pojo") @JsonPropertyOrder({ "name", "ticketNumber", "email", "familyName", "faxNumber", "givenName", "homeLocation", "jobTitle", "telephone", "workLocation", "worksFor" }) public class Person { @JsonProperty("name") private String name; @JsonProperty("ticketNumber") private String ticketNumber; @JsonProperty("email") private String email; @JsonProperty("familyName") private String familyName; @JsonProperty("faxNumber") private String faxNumber; @JsonProperty("givenName") private String givenName; /** * ContactPoint *

* * */ @JsonProperty("homeLocation") private ContactPoint homeLocation; @JsonProperty("jobTitle") private String jobTitle; @JsonProperty("telephone") private String telephone; /** * ContactPoint *

* * */ @JsonProperty("workLocation") private ContactPoint workLocation; /** * Organization *

* * */ @JsonProperty("worksFor") private Organization worksFor; @JsonIgnore private Map additionalProperties = new HashMap(); /** * * @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 ticketNumber */ @JsonProperty("ticketNumber") public String getTicketNumber() { return ticketNumber; } /** * * @param ticketNumber * The ticketNumber */ @JsonProperty("ticketNumber") public void setTicketNumber(String ticketNumber) { this.ticketNumber = ticketNumber; } /** * * @return * The email */ @JsonProperty("email") public String getEmail() { return email; } /** * * @param email * The email */ @JsonProperty("email") public void setEmail(String email) { this.email = email; } /** * * @return * The familyName */ @JsonProperty("familyName") public String getFamilyName() { return familyName; } /** * * @param familyName * The familyName */ @JsonProperty("familyName") public void setFamilyName(String familyName) { this.familyName = familyName; } /** * * @return * The faxNumber */ @JsonProperty("faxNumber") public String getFaxNumber() { return faxNumber; } /** * * @param faxNumber * The faxNumber */ @JsonProperty("faxNumber") public void setFaxNumber(String faxNumber) { this.faxNumber = faxNumber; } /** * * @return * The givenName */ @JsonProperty("givenName") public String getGivenName() { return givenName; } /** * * @param givenName * The givenName */ @JsonProperty("givenName") public void setGivenName(String givenName) { this.givenName = givenName; } /** * ContactPoint *

* * * @return * The homeLocation */ @JsonProperty("homeLocation") public ContactPoint getHomeLocation() { return homeLocation; } /** * ContactPoint *

* * * @param homeLocation * The homeLocation */ @JsonProperty("homeLocation") public void setHomeLocation(ContactPoint homeLocation) { this.homeLocation = homeLocation; } /** * * @return * The jobTitle */ @JsonProperty("jobTitle") public String getJobTitle() { return jobTitle; } /** * * @param jobTitle * The jobTitle */ @JsonProperty("jobTitle") public void setJobTitle(String jobTitle) { this.jobTitle = jobTitle; } /** * * @return * The telephone */ @JsonProperty("telephone") public String getTelephone() { return telephone; } /** * * @param telephone * The telephone */ @JsonProperty("telephone") public void setTelephone(String telephone) { this.telephone = telephone; } /** * ContactPoint *

* * * @return * The workLocation */ @JsonProperty("workLocation") public ContactPoint getWorkLocation() { return workLocation; } /** * ContactPoint *

* * * @param workLocation * The workLocation */ @JsonProperty("workLocation") public void setWorkLocation(ContactPoint workLocation) { this.workLocation = workLocation; } /** * Organization *

* * * @return * The worksFor */ @JsonProperty("worksFor") public Organization getWorksFor() { return worksFor; } /** * Organization *

* * * @param worksFor * The worksFor */ @JsonProperty("worksFor") public void setWorksFor(Organization worksFor) { this.worksFor = worksFor; } @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(name).append(ticketNumber).append(email).append(familyName).append(faxNumber).append(givenName).append(homeLocation).append(jobTitle).append(telephone).append(workLocation).append(worksFor).append(additionalProperties).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof Person) == false) { return false; } Person rhs = ((Person) other); return new EqualsBuilder().append(name, rhs.name).append(ticketNumber, rhs.ticketNumber).append(email, rhs.email).append(familyName, rhs.familyName).append(faxNumber, rhs.faxNumber).append(givenName, rhs.givenName).append(homeLocation, rhs.homeLocation).append(jobTitle, rhs.jobTitle).append(telephone, rhs.telephone).append(workLocation, rhs.workLocation).append(worksFor, rhs.worksFor).append(additionalProperties, rhs.additionalProperties).isEquals(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy