/*
 * lakeFS API
 * lakeFS HTTP API
 *
 * The version of the OpenAPI document: 0.1.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package io.lakefs.clients.api.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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;

/**
 * ImportPagination
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ImportPagination {
  public static final String SERIALIZED_NAME_HAS_MORE = "has_more";
  @SerializedName(SERIALIZED_NAME_HAS_MORE)
  private Boolean hasMore;

  public static final String SERIALIZED_NAME_CONTINUATION_TOKEN = "continuation_token";
  @SerializedName(SERIALIZED_NAME_CONTINUATION_TOKEN)
  private String continuationToken;

  public static final String SERIALIZED_NAME_LAST_KEY = "last_key";
  @SerializedName(SERIALIZED_NAME_LAST_KEY)
  private String lastKey;

  public static final String SERIALIZED_NAME_STAGING_TOKEN = "staging_token";
  @SerializedName(SERIALIZED_NAME_STAGING_TOKEN)
  private String stagingToken;


  public ImportPagination hasMore(Boolean hasMore) {
    
    this.hasMore = hasMore;
    return this;
  }

   /**
   * More keys to be ingested.
   * @return hasMore
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(required = true, value = "More keys to be ingested.")

  public Boolean getHasMore() {
    return hasMore;
  }


  public void setHasMore(Boolean hasMore) {
    this.hasMore = hasMore;
  }


  public ImportPagination continuationToken(String continuationToken) {
    
    this.continuationToken = continuationToken;
    return this;
  }

   /**
   * Opaque. Token used to import the next range.
   * @return continuationToken
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Opaque. Token used to import the next range.")

  public String getContinuationToken() {
    return continuationToken;
  }


  public void setContinuationToken(String continuationToken) {
    this.continuationToken = continuationToken;
  }


  public ImportPagination lastKey(String lastKey) {
    
    this.lastKey = lastKey;
    return this;
  }

   /**
   * Last object store key that was ingested.
   * @return lastKey
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(required = true, value = "Last object store key that was ingested.")

  public String getLastKey() {
    return lastKey;
  }


  public void setLastKey(String lastKey) {
    this.lastKey = lastKey;
  }


  public ImportPagination stagingToken(String stagingToken) {
    
    this.stagingToken = stagingToken;
    return this;
  }

   /**
   * Staging token for skipped objects during ingest
   * @return stagingToken
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Staging token for skipped objects during ingest")

  public String getStagingToken() {
    return stagingToken;
  }


  public void setStagingToken(String stagingToken) {
    this.stagingToken = stagingToken;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ImportPagination importPagination = (ImportPagination) o;
    return Objects.equals(this.hasMore, importPagination.hasMore) &&
        Objects.equals(this.continuationToken, importPagination.continuationToken) &&
        Objects.equals(this.lastKey, importPagination.lastKey) &&
        Objects.equals(this.stagingToken, importPagination.stagingToken);
  }

  @Override
  public int hashCode() {
    return Objects.hash(hasMore, continuationToken, lastKey, stagingToken);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ImportPagination {\n");
    sb.append("    hasMore: ").append(toIndentedString(hasMore)).append("\n");
    sb.append("    continuationToken: ").append(toIndentedString(continuationToken)).append("\n");
    sb.append("    lastKey: ").append(toIndentedString(lastKey)).append("\n");
    sb.append("    stagingToken: ").append(toIndentedString(stagingToken)).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    ");
  }

}

