de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/Contact.java
/*
* RAKIP Generic model
* TODO
*
* OpenAPI spec version: 1.0.4
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package de.bund.bfr.metadata.swagger;
import java.util.Objects;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* Contact
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-02T16:22:48.194+02:00")
public class Contact {
@SerializedName("title")
private String title = null;
@SerializedName("familyName")
private String familyName = null;
@SerializedName("givenName")
private String givenName = null;
@SerializedName("email")
private String email = null;
@SerializedName("telephone")
private String telephone = null;
@SerializedName("streetAddress")
private String streetAddress = null;
@SerializedName("country")
private String country = null;
@SerializedName("zipCode")
private String zipCode = null;
@SerializedName("region")
private String region = null;
@SerializedName("timeZone")
private String timeZone = null;
@SerializedName("gender")
private String gender = null;
@SerializedName("note")
private String note = null;
@SerializedName("organization")
private String organization = null;
public Contact title(String title) {
this.title = title;
return this;
}
/**
* Get title
* @return title
**/
@ApiModelProperty(value = "")
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public Contact familyName(String familyName) {
this.familyName = familyName;
return this;
}
/**
* Get familyName
* @return familyName
**/
@ApiModelProperty(value = "")
public String getFamilyName() {
return familyName;
}
public void setFamilyName(String familyName) {
this.familyName = familyName;
}
public Contact givenName(String givenName) {
this.givenName = givenName;
return this;
}
/**
* Get givenName
* @return givenName
**/
@ApiModelProperty(value = "")
public String getGivenName() {
return givenName;
}
public void setGivenName(String givenName) {
this.givenName = givenName;
}
public Contact email(String email) {
this.email = email;
return this;
}
/**
* Get email
* @return email
**/
@ApiModelProperty(required = true, value = "")
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public Contact telephone(String telephone) {
this.telephone = telephone;
return this;
}
/**
* Get telephone
* @return telephone
**/
@ApiModelProperty(value = "")
public String getTelephone() {
return telephone;
}
public void setTelephone(String telephone) {
this.telephone = telephone;
}
public Contact streetAddress(String streetAddress) {
this.streetAddress = streetAddress;
return this;
}
/**
* Get streetAddress
* @return streetAddress
**/
@ApiModelProperty(value = "")
public String getStreetAddress() {
return streetAddress;
}
public void setStreetAddress(String streetAddress) {
this.streetAddress = streetAddress;
}
public Contact country(String country) {
this.country = country;
return this;
}
/**
* Get country
* @return country
**/
@ApiModelProperty(value = "")
public String getCountry() {
return country;
}
public void setCountry(String country) {
this.country = country;
}
public Contact zipCode(String zipCode) {
this.zipCode = zipCode;
return this;
}
/**
* Get zipCode
* @return zipCode
**/
@ApiModelProperty(value = "")
public String getZipCode() {
return zipCode;
}
public void setZipCode(String zipCode) {
this.zipCode = zipCode;
}
public Contact region(String region) {
this.region = region;
return this;
}
/**
* Get region
* @return region
**/
@ApiModelProperty(value = "")
public String getRegion() {
return region;
}
public void setRegion(String region) {
this.region = region;
}
public Contact timeZone(String timeZone) {
this.timeZone = timeZone;
return this;
}
/**
* Get timeZone
* @return timeZone
**/
@ApiModelProperty(value = "")
public String getTimeZone() {
return timeZone;
}
public void setTimeZone(String timeZone) {
this.timeZone = timeZone;
}
public Contact gender(String gender) {
this.gender = gender;
return this;
}
/**
* Get gender
* @return gender
**/
@ApiModelProperty(value = "")
public String getGender() {
return gender;
}
public void setGender(String gender) {
this.gender = gender;
}
public Contact note(String note) {
this.note = note;
return this;
}
/**
* Get note
* @return note
**/
@ApiModelProperty(value = "")
public String getNote() {
return note;
}
public void setNote(String note) {
this.note = note;
}
public Contact organization(String organization) {
this.organization = organization;
return this;
}
/**
* Get organization
* @return organization
**/
@ApiModelProperty(value = "")
public String getOrganization() {
return organization;
}
public void setOrganization(String organization) {
this.organization = organization;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Contact contact = (Contact) o;
return Objects.equals(this.title, contact.title) &&
Objects.equals(this.familyName, contact.familyName) &&
Objects.equals(this.givenName, contact.givenName) &&
Objects.equals(this.email, contact.email) &&
Objects.equals(this.telephone, contact.telephone) &&
Objects.equals(this.streetAddress, contact.streetAddress) &&
Objects.equals(this.country, contact.country) &&
Objects.equals(this.zipCode, contact.zipCode) &&
Objects.equals(this.region, contact.region) &&
Objects.equals(this.timeZone, contact.timeZone) &&
Objects.equals(this.gender, contact.gender) &&
Objects.equals(this.note, contact.note) &&
Objects.equals(this.organization, contact.organization);
}
@Override
public int hashCode() {
return Objects.hash(title, familyName, givenName, email, telephone, streetAddress, country, zipCode, region, timeZone, gender, note, organization);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Contact {\n");
sb.append(" title: ").append(toIndentedString(title)).append("\n");
sb.append(" familyName: ").append(toIndentedString(familyName)).append("\n");
sb.append(" givenName: ").append(toIndentedString(givenName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append(" telephone: ").append(toIndentedString(telephone)).append("\n");
sb.append(" streetAddress: ").append(toIndentedString(streetAddress)).append("\n");
sb.append(" country: ").append(toIndentedString(country)).append("\n");
sb.append(" zipCode: ").append(toIndentedString(zipCode)).append("\n");
sb.append(" region: ").append(toIndentedString(region)).append("\n");
sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n");
sb.append(" gender: ").append(toIndentedString(gender)).append("\n");
sb.append(" note: ").append(toIndentedString(note)).append("\n");
sb.append(" organization: ").append(toIndentedString(organization)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}