fi.metatavu.restfulptv.client.model.Address Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of restful-ptv-rest-client Show documentation
Show all versions of restful-ptv-rest-client Show documentation
Restful way to use Palvelutietovaranto.
/**
* RESTful PTV
* Restful way to use Palvelutietovaranto.
*
* OpenAPI spec version: v1
*
*
* 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.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package fi.metatavu.restfulptv.client.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import fi.metatavu.restfulptv.client.model.LanguageItem;
import fi.metatavu.restfulptv.client.model.Municipality;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
/**
* Address
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-04-11T07:17:18.637+03:00")
public class Address {
@JsonProperty("latitude")
private String latitude = null;
@JsonProperty("longitude")
private String longitude = null;
@JsonProperty("coordinateState")
private String coordinateState = null;
@JsonProperty("type")
private String type = null;
@JsonProperty("postOfficeBox")
private String postOfficeBox = null;
@JsonProperty("postalCode")
private String postalCode = null;
@JsonProperty("postOffice")
private List postOffice = new ArrayList();
@JsonProperty("streetAddress")
private List streetAddress = new ArrayList();
@JsonProperty("streetNumber")
private String streetNumber = null;
@JsonProperty("municipality")
private Municipality municipality = null;
@JsonProperty("country")
private String country = null;
@JsonProperty("additionalInformations")
private List additionalInformations = new ArrayList();
public Address latitude(String latitude) {
this.latitude = latitude;
return this;
}
/**
* Service location latitude coordinate.
* @return latitude
**/
@ApiModelProperty(example = "null", value = "Service location latitude coordinate.")
public String getLatitude() {
return latitude;
}
public void setLatitude(String latitude) {
this.latitude = latitude;
}
public Address longitude(String longitude) {
this.longitude = longitude;
return this;
}
/**
* Service location longitude coordinate.
* @return longitude
**/
@ApiModelProperty(example = "null", value = "Service location longitude coordinate.")
public String getLongitude() {
return longitude;
}
public void setLongitude(String longitude) {
this.longitude = longitude;
}
public Address coordinateState(String coordinateState) {
this.coordinateState = coordinateState;
return this;
}
/**
* State of coordinates. Coordinates are fetched from a service provided by Maanmittauslaitos (WFS). Possible values are: Loading, Ok, Failed, NotReceived, EmptyInputReceived, MultipleResultsReceived or WrongFormatReceived.
* @return coordinateState
**/
@ApiModelProperty(example = "null", value = "State of coordinates. Coordinates are fetched from a service provided by Maanmittauslaitos (WFS). Possible values are: Loading, Ok, Failed, NotReceived, EmptyInputReceived, MultipleResultsReceived or WrongFormatReceived.")
public String getCoordinateState() {
return coordinateState;
}
public void setCoordinateState(String coordinateState) {
this.coordinateState = coordinateState;
}
public Address type(String type) {
this.type = type;
return this;
}
/**
* Address type, Visiting or Postal.
* @return type
**/
@ApiModelProperty(example = "null", value = "Address type, Visiting or Postal.")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public Address postOfficeBox(String postOfficeBox) {
this.postOfficeBox = postOfficeBox;
return this;
}
/**
* Post office box like PL 310
* @return postOfficeBox
**/
@ApiModelProperty(example = "null", value = "Post office box like PL 310")
public String getPostOfficeBox() {
return postOfficeBox;
}
public void setPostOfficeBox(String postOfficeBox) {
this.postOfficeBox = postOfficeBox;
}
public Address postalCode(String postalCode) {
this.postalCode = postalCode;
return this;
}
/**
* Postal code, for example 00010.
* @return postalCode
**/
@ApiModelProperty(example = "null", value = "Postal code, for example 00010.")
public String getPostalCode() {
return postalCode;
}
public void setPostalCode(String postalCode) {
this.postalCode = postalCode;
}
public Address postOffice(List postOffice) {
this.postOffice = postOffice;
return this;
}
public Address addPostOfficeItem(LanguageItem postOfficeItem) {
this.postOffice.add(postOfficeItem);
return this;
}
/**
* List of localized Post offices, for example Helsinki, Helsingfors.
* @return postOffice
**/
@ApiModelProperty(example = "null", value = "List of localized Post offices, for example Helsinki, Helsingfors.")
public List getPostOffice() {
return postOffice;
}
public void setPostOffice(List postOffice) {
this.postOffice = postOffice;
}
public Address streetAddress(List streetAddress) {
this.streetAddress = streetAddress;
return this;
}
public Address addStreetAddressItem(LanguageItem streetAddressItem) {
this.streetAddress.add(streetAddressItem);
return this;
}
/**
* List of localized street addresses.
* @return streetAddress
**/
@ApiModelProperty(example = "null", value = "List of localized street addresses.")
public List getStreetAddress() {
return streetAddress;
}
public void setStreetAddress(List streetAddress) {
this.streetAddress = streetAddress;
}
public Address streetNumber(String streetNumber) {
this.streetNumber = streetNumber;
return this;
}
/**
* Street number for street address.
* @return streetNumber
**/
@ApiModelProperty(example = "null", value = "Street number for street address.")
public String getStreetNumber() {
return streetNumber;
}
public void setStreetNumber(String streetNumber) {
this.streetNumber = streetNumber;
}
public Address municipality(Municipality municipality) {
this.municipality = municipality;
return this;
}
/**
* Get municipality
* @return municipality
**/
@ApiModelProperty(example = "null", value = "")
public Municipality getMunicipality() {
return municipality;
}
public void setMunicipality(Municipality municipality) {
this.municipality = municipality;
}
public Address country(String country) {
this.country = country;
return this;
}
/**
* Country code (ISO 3166-1 alpha-2), for example FI.
* @return country
**/
@ApiModelProperty(example = "null", value = "Country code (ISO 3166-1 alpha-2), for example FI.")
public String getCountry() {
return country;
}
public void setCountry(String country) {
this.country = country;
}
public Address additionalInformations(List additionalInformations) {
this.additionalInformations = additionalInformations;
return this;
}
public Address addAdditionalInformationsItem(LanguageItem additionalInformationsItem) {
this.additionalInformations.add(additionalInformationsItem);
return this;
}
/**
* Localized list of additional information about the address.
* @return additionalInformations
**/
@ApiModelProperty(example = "null", value = "Localized list of additional information about the address.")
public List getAdditionalInformations() {
return additionalInformations;
}
public void setAdditionalInformations(List additionalInformations) {
this.additionalInformations = additionalInformations;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Address address = (Address) o;
return Objects.equals(this.latitude, address.latitude) &&
Objects.equals(this.longitude, address.longitude) &&
Objects.equals(this.coordinateState, address.coordinateState) &&
Objects.equals(this.type, address.type) &&
Objects.equals(this.postOfficeBox, address.postOfficeBox) &&
Objects.equals(this.postalCode, address.postalCode) &&
Objects.equals(this.postOffice, address.postOffice) &&
Objects.equals(this.streetAddress, address.streetAddress) &&
Objects.equals(this.streetNumber, address.streetNumber) &&
Objects.equals(this.municipality, address.municipality) &&
Objects.equals(this.country, address.country) &&
Objects.equals(this.additionalInformations, address.additionalInformations);
}
@Override
public int hashCode() {
return Objects.hash(latitude, longitude, coordinateState, type, postOfficeBox, postalCode, postOffice, streetAddress, streetNumber, municipality, country, additionalInformations);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Address {\n");
sb.append(" latitude: ").append(toIndentedString(latitude)).append("\n");
sb.append(" longitude: ").append(toIndentedString(longitude)).append("\n");
sb.append(" coordinateState: ").append(toIndentedString(coordinateState)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" postOfficeBox: ").append(toIndentedString(postOfficeBox)).append("\n");
sb.append(" postalCode: ").append(toIndentedString(postalCode)).append("\n");
sb.append(" postOffice: ").append(toIndentedString(postOffice)).append("\n");
sb.append(" streetAddress: ").append(toIndentedString(streetAddress)).append("\n");
sb.append(" streetNumber: ").append(toIndentedString(streetNumber)).append("\n");
sb.append(" municipality: ").append(toIndentedString(municipality)).append("\n");
sb.append(" country: ").append(toIndentedString(country)).append("\n");
sb.append(" additionalInformations: ").append(toIndentedString(additionalInformations)).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 ");
}
}