com.anaptecs.jeaf.openapi.PostalAddress Maven / Gradle / Ivy
The newest version!
/*
* 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.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* PostalAddress
*/
public class PostalAddress {
@JsonProperty("street")
private String street = null;
@JsonProperty("houseNumber")
private String houseNumber = null;
@JsonProperty("city")
private String city = null;
@JsonProperty("postalCode")
private Integer postalCode = null;
public PostalAddress street(String street) {
this.street = street;
return this;
}
/**
* Get street
* @return street
**/
@Schema(required = true, description = "")
public String getStreet() {
return street;
}
public void setStreet(String street) {
this.street = street;
}
public PostalAddress houseNumber(String houseNumber) {
this.houseNumber = houseNumber;
return this;
}
/**
* Get houseNumber
* @return houseNumber
**/
@Schema(required = true, description = "")
public String getHouseNumber() {
return houseNumber;
}
public void setHouseNumber(String houseNumber) {
this.houseNumber = houseNumber;
}
public PostalAddress city(String city) {
this.city = city;
return this;
}
/**
* Get city
* @return city
**/
@Schema(required = true, description = "")
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public PostalAddress postalCode(Integer postalCode) {
this.postalCode = postalCode;
return this;
}
/**
* Get postalCode
* @return postalCode
**/
@Schema(required = true, description = "")
public Integer getPostalCode() {
return postalCode;
}
public void setPostalCode(Integer postalCode) {
this.postalCode = postalCode;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PostalAddress postalAddress = (PostalAddress) o;
return Objects.equals(this.street, postalAddress.street) &&
Objects.equals(this.houseNumber, postalAddress.houseNumber) &&
Objects.equals(this.city, postalAddress.city) &&
Objects.equals(this.postalCode, postalAddress.postalCode);
}
@Override
public int hashCode() {
return Objects.hash(street, houseNumber, city, postalCode);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PostalAddress {\n");
sb.append(" street: ").append(toIndentedString(street)).append("\n");
sb.append(" houseNumber: ").append(toIndentedString(houseNumber)).append("\n");
sb.append(" city: ").append(toIndentedString(city)).append("\n");
sb.append(" postalCode: ").append(toIndentedString(postalCode)).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 ");
}
}