
org.easytravelapi.swagger.client.model.GetPortfolioRS Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of easytravelapi-swagger-java-client Show documentation
Show all versions of easytravelapi-swagger-java-client Show documentation
This is a java client SDK for the easy travel api. Use it to send requests to an easy travel api server.
package org.easytravelapi.swagger.client.model;
import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* Container for the getportfolio response
*/
@ApiModel(description = "Container for the getportfolio response")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-09-18T08:43:59.135Z")
public class GetPortfolioRS {
@SerializedName("statusCode")
private Integer statusCode = null;
@SerializedName("msg")
private String msg = null;
@SerializedName("systemTime")
private String systemTime = null;
@SerializedName("countries")
private List countries = new ArrayList();
public GetPortfolioRS statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* status code for the operation. It will be 200 if it was OK and any other value if something went wrong. Provider dependant
* @return statusCode
**/
@ApiModelProperty(value = "status code for the operation. It will be 200 if it was OK and any other value if something went wrong. Provider dependant")
public Integer getStatusCode() {
return statusCode;
}
public void setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
}
public GetPortfolioRS msg(String msg) {
this.msg = msg;
return this;
}
/**
* error message, if needed
* @return msg
**/
@ApiModelProperty(value = "error message, if needed")
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
public GetPortfolioRS systemTime(String systemTime) {
this.systemTime = systemTime;
return this;
}
/**
* System time in ISO8651 format. Useful for bug resolution
* @return systemTime
**/
@ApiModelProperty(value = "System time in ISO8651 format. Useful for bug resolution")
public String getSystemTime() {
return systemTime;
}
public void setSystemTime(String systemTime) {
this.systemTime = systemTime;
}
public GetPortfolioRS countries(List countries) {
this.countries = countries;
return this;
}
public GetPortfolioRS addCountriesItem(Country countriesItem) {
this.countries.add(countriesItem);
return this;
}
/**
* List of countries. This is the first level in the portfolio hierarchy
* @return countries
**/
@ApiModelProperty(value = "List of countries. This is the first level in the portfolio hierarchy")
public List getCountries() {
return countries;
}
public void setCountries(List countries) {
this.countries = countries;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetPortfolioRS getPortfolioRS = (GetPortfolioRS) o;
return Objects.equals(this.statusCode, getPortfolioRS.statusCode) &&
Objects.equals(this.msg, getPortfolioRS.msg) &&
Objects.equals(this.systemTime, getPortfolioRS.systemTime) &&
Objects.equals(this.countries, getPortfolioRS.countries);
}
@Override
public int hashCode() {
return Objects.hash(statusCode, msg, systemTime, countries);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class GetPortfolioRS {\n");
sb.append(" statusCode: ").append(toIndentedString(statusCode)).append("\n");
sb.append(" msg: ").append(toIndentedString(msg)).append("\n");
sb.append(" systemTime: ").append(toIndentedString(systemTime)).append("\n");
sb.append(" countries: ").append(toIndentedString(countries)).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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy