com.aylien.newsapi.models.Author 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;
/**
* Author
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-01-09T15:04:35.817Z[Europe/Dublin]")
public class Author {
public static final String SERIALIZED_NAME_AVATAR_URL = "avatar_url";
@SerializedName(SERIALIZED_NAME_AVATAR_URL)
private String avatarUrl;
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private Long id;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
private String name;
public Author avatarUrl(String avatarUrl) {
this.avatarUrl = avatarUrl;
return this;
}
/**
* A URL which points to the author avatar
* @return avatarUrl
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "A URL which points to the author avatar")
public String getAvatarUrl() {
return avatarUrl;
}
public void setAvatarUrl(String avatarUrl) {
this.avatarUrl = avatarUrl;
}
public Author id(Long id) {
this.id = id;
return this;
}
/**
* A unique identification for the author
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "A unique identification for the author")
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Author name(String name) {
this.name = name;
return this;
}
/**
* The extracted author full name
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The extracted author full name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Author author = (Author) o;
return Objects.equals(this.avatarUrl, author.avatarUrl) &&
Objects.equals(this.id, author.id) &&
Objects.equals(this.name, author.name);
}
@Override
public int hashCode() {
return Objects.hash(avatarUrl, id, name);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Author {\n");
sb.append(" avatarUrl: ").append(toIndentedString(avatarUrl)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).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