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

com.rockset.client.model.GetIntegrationResponse Maven / Gradle / Ivy

There is a newer version: 0.13.0
Show newest version
/*
 * REST API
 * Rockset's REST API allows for creating and managing all resources in Rockset. Each supported endpoint is documented below.  All requests must be authorized with a Rockset API key, which can be created in the [Rockset console](https://console.rockset.com). The API key must be provided as `ApiKey ` in the `Authorization` request header. For example: ``` Authorization: ApiKey aB35kDjg93J5nsf4GjwMeErAVd832F7ad4vhsW1S02kfZiab42sTsfW5Sxt25asT ```  All endpoints are only accessible via https.  Build something awesome!
 *
 * OpenAPI spec version: v1
 * 
 *
 * 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.rockset.client.model;

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 com.rockset.client.model.Integration;
import com.rockset.client.model.Resource;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

/**
 * GetIntegrationResponse
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-01-24T01:18:37.603Z")
public class GetIntegrationResponse {
  @SerializedName("data")
  private Integration data = null;

  @SerializedName("collections")
  private List collections = null;

  public GetIntegrationResponse data(Integration data) {
    this.data = data;
    return this;
  }

   /**
   * integration object
   * @return data
  **/
  @ApiModelProperty(value = "integration object")
  public Integration getData() {
    return data;
  }

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

  public GetIntegrationResponse collections(List collections) {
    this.collections = collections;
    return this;
  }

  public GetIntegrationResponse addCollectionsItem(Resource collectionsItem) {
    if (this.collections == null) {
      this.collections = new ArrayList();
    }
    this.collections.add(collectionsItem);
    return this;
  }

   /**
   * list of collections that use the integration
   * @return collections
  **/
  @ApiModelProperty(value = "list of collections that use the integration")
  public List getCollections() {
    return collections;
  }

  public void setCollections(List collections) {
    this.collections = collections;
  }


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

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


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class GetIntegrationResponse {\n");
    
    sb.append("    data: ").append(toIndentedString(data)).append("\n");
    sb.append("    collections: ").append(toIndentedString(collections)).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 - 2024 Weber Informatics LLC | Privacy Policy