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

com.seeq.model.GraphQLOutputV1 Maven / Gradle / Ivy

There is a newer version: 66.0.0-v202410141803
Show newest version
/*
 * Seeq REST API
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 65.1.3-v202408082312
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */

package com.seeq.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
 * GraphQLOutputV1
 */
public class GraphQLOutputV1 {
  @JsonProperty("data")
  private Object data = null;

  @JsonProperty("errors")
  private List errors = new ArrayList();

  public GraphQLOutputV1 data(Object data) {
    this.data = data;
    return this;
  }

   /**
   * The operation results
   * @return data
  **/
  @Schema(description = "The operation results")
  public Object getData() {
    return data;
  }

  public void setData(Object data) {
    this.data = data;
  }

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

  public GraphQLOutputV1 addErrorsItem(Object errorsItem) {
    if (this.errors == null) {
      this.errors = new ArrayList();
    }
    this.errors.add(errorsItem);
    return this;
  }

   /**
   * All errors that occurred during the operation
   * @return errors
  **/
  @Schema(description = "All errors that occurred during the operation")
  public List getErrors() {
    return errors;
  }

  public void setErrors(List errors) {
    this.errors = errors;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    GraphQLOutputV1 graphQLOutputV1 = (GraphQLOutputV1) o;
    return Objects.equals(this.data, graphQLOutputV1.data) &&
        Objects.equals(this.errors, graphQLOutputV1.errors);
  }

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


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class GraphQLOutputV1 {\n");
    
    sb.append("    data: ").append(toIndentedString(data)).append("\n");
    sb.append("    errors: ").append(toIndentedString(errors)).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    ");
  }
  
}