com.anaptecs.jeaf.openapi.Person Maven / Gradle / Ivy
/*
* Product Base Definitions
* This component represents the Open API interface of the accounting service.
*
* OpenAPI spec version: 0.0.1
* Contact: [email protected]
*
* 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 com.anaptecs.jeaf.openapi;
import java.util.Objects;
import java.util.Arrays;
import com.anaptecs.jeaf.openapi.Partner;
import com.anaptecs.jeaf.openapi.PostalAddress;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.List;
/**
* Person
*/
public class Person extends Partner {
@JsonProperty("surname")
private String surname = null;
@JsonProperty("firstName")
private String firstName = null;
public Person surname(String surname) {
this.surname = surname;
return this;
}
/**
* <br><br> Alternate Name: Vorname
* @return surname
**/
@Schema(required = true, description = "
Alternate Name: Vorname ")
public String getSurname() {
return surname;
}
public void setSurname(String surname) {
this.surname = surname;
}
public Person firstName(String firstName) {
this.firstName = firstName;
return this;
}
/**
* Get firstName
* @return firstName
**/
@Schema(required = true, description = "")
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Person person = (Person) o;
return Objects.equals(this.surname, person.surname) &&
Objects.equals(this.firstName, person.firstName) &&
super.equals(o);
}
@Override
public int hashCode() {
return Objects.hash(surname, firstName, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Person {\n");
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append(" surname: ").append(toIndentedString(surname)).append("\n");
sb.append(" firstName: ").append(toIndentedString(firstName)).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 ");
}
}