All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aylien.newsapi.models.Rank 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;
import org.threeten.bp.OffsetDateTime;

/**
 * Rank
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-01-09T15:04:35.817Z[Europe/Dublin]")
public class Rank {
  public static final String SERIALIZED_NAME_COUNTRY = "country";
  @SerializedName(SERIALIZED_NAME_COUNTRY)
  private String country;

  public static final String SERIALIZED_NAME_FETCHED_AT = "fetched_at";
  @SerializedName(SERIALIZED_NAME_FETCHED_AT)
  private OffsetDateTime fetchedAt;

  public static final String SERIALIZED_NAME_RANK = "rank";
  @SerializedName(SERIALIZED_NAME_RANK)
  private Integer rank;


  public Rank country(String country) {
    
    this.country = country;
    return this;
  }

   /**
   * The country code which the rank is in it
   * @return country
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The country code which the rank is in it")

  public String getCountry() {
    return country;
  }


  public void setCountry(String country) {
    this.country = country;
  }


  public Rank fetchedAt(OffsetDateTime fetchedAt) {
    
    this.fetchedAt = fetchedAt;
    return this;
  }

   /**
   * The fetched date of the rank
   * @return fetchedAt
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The fetched date of the rank")

  public OffsetDateTime getFetchedAt() {
    return fetchedAt;
  }


  public void setFetchedAt(OffsetDateTime fetchedAt) {
    this.fetchedAt = fetchedAt;
  }


  public Rank rank(Integer rank) {
    
    this.rank = rank;
    return this;
  }

   /**
   * The rank
   * @return rank
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The rank")

  public Integer getRank() {
    return rank;
  }


  public void setRank(Integer rank) {
    this.rank = rank;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Rank rank = (Rank) o;
    return Objects.equals(this.country, rank.country) &&
        Objects.equals(this.fetchedAt, rank.fetchedAt) &&
        Objects.equals(this.rank, rank.rank);
  }

  @Override
  public int hashCode() {
    return Objects.hash(country, fetchedAt, rank);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Rank {\n");
    sb.append("    country: ").append(toIndentedString(country)).append("\n");
    sb.append("    fetchedAt: ").append(toIndentedString(fetchedAt)).append("\n");
    sb.append("    rank: ").append(toIndentedString(rank)).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