com.aylien.newsapi.models.Autocomplete Maven / Gradle / Ivy
/*
* AYLIEN News API
* The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
*
* The version of the OpenAPI document: 3.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.aylien.newsapi.models;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* Autocomplete
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-01-09T15:04:35.817Z[Europe/Dublin]")
public class Autocomplete {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private String id;
public static final String SERIALIZED_NAME_TEXT = "text";
@SerializedName(SERIALIZED_NAME_TEXT)
private String text;
public Autocomplete id(String id) {
this.id = id;
return this;
}
/**
* ID of the autocomplete
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "ID of the autocomplete")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public Autocomplete text(String text) {
this.text = text;
return this;
}
/**
* Text of the autocomplete
* @return text
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Text of the autocomplete")
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Autocomplete autocomplete = (Autocomplete) o;
return Objects.equals(this.id, autocomplete.id) &&
Objects.equals(this.text, autocomplete.text);
}
@Override
public int hashCode() {
return Objects.hash(id, text);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Autocomplete {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" text: ").append(toIndentedString(text)).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