
org.easytravelapi.swagger.client.model.Pair 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.Objects;
/**
* Pair name-value container
*/
@ApiModel(description = "Pair name-value container")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-09-18T08:43:59.135Z")
public class Pair {
@SerializedName("key")
private String key = null;
@SerializedName("value")
private String value = null;
public Pair key(String key) {
this.key = key;
return this;
}
/**
* The name of this property
* @return key
**/
@ApiModelProperty(value = "The name of this property")
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public Pair value(String value) {
this.value = value;
return this;
}
/**
* The associated value
* @return value
**/
@ApiModelProperty(value = "The associated value")
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Pair pair = (Pair) o;
return Objects.equals(this.key, pair.key) &&
Objects.equals(this.value, pair.value);
}
@Override
public int hashCode() {
return Objects.hash(key, value);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Pair {\n");
sb.append(" key: ").append(toIndentedString(key)).append("\n");
sb.append(" value: ").append(toIndentedString(value)).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