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

com.ziqni.admin.sdk.model.EntrantCountResponse Maven / Gradle / Ivy

There is a newer version: 1.0.24
Show newest version
/*
 * ZIQNI Admin API
 * Ziqni Application Services are used to manage and configure spaces.  Change log:  2024-02-27 Added rewards reduced to the LeaderboardEntry response
 *
 * The version of the OpenAPI document: 3.0.17
 * 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.ziqni.admin.sdk.model;

import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import com.ziqni.admin.sdk.model.Error;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;


/**
 * EntrantCountResponse
 */
@JsonPropertyOrder({
  EntrantCountResponse.JSON_PROPERTY_ERRORS,
  EntrantCountResponse.JSON_PROPERTY_NUMBER_OF_RECORDS,
  EntrantCountResponse.JSON_PROPERTY_DOWNLOAD_URL
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class EntrantCountResponse {
  public static final String JSON_PROPERTY_ERRORS = "errors";
  private List errors = null;

  public static final String JSON_PROPERTY_NUMBER_OF_RECORDS = "numberOfRecords";
  private Integer numberOfRecords;

  public static final String JSON_PROPERTY_DOWNLOAD_URL = "downloadUrl";
  private String downloadUrl;


  public EntrantCountResponse errors(List errors) {
    this.errors = errors;
    return this;
  }

  public EntrantCountResponse addErrorsItem(Error errorsItem) {
    if (this.errors == null) {
      this.errors = new ArrayList<>();
    }
    this.errors.add(errorsItem);
    return this;
  }

   /**
   * Get errors
   * @return errors
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_ERRORS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public List getErrors() {
    return errors;
  }


  @JsonProperty(JSON_PROPERTY_ERRORS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setErrors(List errors) {
    this.errors = errors;
  }


  public EntrantCountResponse numberOfRecords(Integer numberOfRecords) {
    this.numberOfRecords = numberOfRecords;
    return this;
  }

   /**
   * Get numberOfRecords
   * @return numberOfRecords
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(required = true, value = "")
  @JsonProperty(JSON_PROPERTY_NUMBER_OF_RECORDS)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public Integer getNumberOfRecords() {
    return numberOfRecords;
  }


  @JsonProperty(JSON_PROPERTY_NUMBER_OF_RECORDS)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setNumberOfRecords(Integer numberOfRecords) {
    this.numberOfRecords = numberOfRecords;
  }


  public EntrantCountResponse downloadUrl(String downloadUrl) {
    this.downloadUrl = downloadUrl;
    return this;
  }

   /**
   * Get downloadUrl
   * @return downloadUrl
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(required = true, value = "")
  @JsonProperty(JSON_PROPERTY_DOWNLOAD_URL)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getDownloadUrl() {
    return downloadUrl;
  }


  @JsonProperty(JSON_PROPERTY_DOWNLOAD_URL)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setDownloadUrl(String downloadUrl) {
    this.downloadUrl = downloadUrl;
  }


  /**
   * Return true if this EntrantCountResponse object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    EntrantCountResponse entrantCountResponse = (EntrantCountResponse) o;
    return Objects.equals(this.errors, entrantCountResponse.errors) &&
        Objects.equals(this.numberOfRecords, entrantCountResponse.numberOfRecords) &&
        Objects.equals(this.downloadUrl, entrantCountResponse.downloadUrl);
  }

  @Override
  public int hashCode() {
    return Objects.hash(errors, numberOfRecords, downloadUrl);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class EntrantCountResponse {\n");
    sb.append("    errors: ").append(toIndentedString(errors)).append("\n");
    sb.append("    numberOfRecords: ").append(toIndentedString(numberOfRecords)).append("\n");
    sb.append("    downloadUrl: ").append(toIndentedString(downloadUrl)).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(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy