/*
 * InfluxDB OSS API Service
 * The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. 
 *
 * OpenAPI spec version: 2.0.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 com.influxdb.client.domain;

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 java.io.IOException;

/**
 * ReplicationCreationRequest
 */

public class ReplicationCreationRequest {
  public static final String SERIALIZED_NAME_NAME = "name";
  @SerializedName(SERIALIZED_NAME_NAME)
  private String name;

  public static final String SERIALIZED_NAME_DESCRIPTION = "description";
  @SerializedName(SERIALIZED_NAME_DESCRIPTION)
  private String description;

  public static final String SERIALIZED_NAME_ORG_I_D = "orgID";
  @SerializedName(SERIALIZED_NAME_ORG_I_D)
  private String orgID;

  public static final String SERIALIZED_NAME_REMOTE_I_D = "remoteID";
  @SerializedName(SERIALIZED_NAME_REMOTE_I_D)
  private String remoteID;

  public static final String SERIALIZED_NAME_LOCAL_BUCKET_I_D = "localBucketID";
  @SerializedName(SERIALIZED_NAME_LOCAL_BUCKET_I_D)
  private String localBucketID;

  public static final String SERIALIZED_NAME_REMOTE_BUCKET_I_D = "remoteBucketID";
  @SerializedName(SERIALIZED_NAME_REMOTE_BUCKET_I_D)
  private String remoteBucketID;

  public static final String SERIALIZED_NAME_MAX_QUEUE_SIZE_BYTES = "maxQueueSizeBytes";
  @SerializedName(SERIALIZED_NAME_MAX_QUEUE_SIZE_BYTES)
  private Long maxQueueSizeBytes = 67108860l;

  public static final String SERIALIZED_NAME_DROP_NON_RETRYABLE_DATA = "dropNonRetryableData";
  @SerializedName(SERIALIZED_NAME_DROP_NON_RETRYABLE_DATA)
  private Boolean dropNonRetryableData = false;

  public static final String SERIALIZED_NAME_MAX_AGE_SECONDS = "maxAgeSeconds";
  @SerializedName(SERIALIZED_NAME_MAX_AGE_SECONDS)
  private Long maxAgeSeconds = 604800l;

  public ReplicationCreationRequest name(String name) {
    this.name = name;
    return this;
  }

   /**
   * Get name
   * @return name
  **/
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public ReplicationCreationRequest description(String description) {
    this.description = description;
    return this;
  }

   /**
   * Get description
   * @return description
  **/
  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public ReplicationCreationRequest orgID(String orgID) {
    this.orgID = orgID;
    return this;
  }

   /**
   * Get orgID
   * @return orgID
  **/
  public String getOrgID() {
    return orgID;
  }

  public void setOrgID(String orgID) {
    this.orgID = orgID;
  }

  public ReplicationCreationRequest remoteID(String remoteID) {
    this.remoteID = remoteID;
    return this;
  }

   /**
   * Get remoteID
   * @return remoteID
  **/
  public String getRemoteID() {
    return remoteID;
  }

  public void setRemoteID(String remoteID) {
    this.remoteID = remoteID;
  }

  public ReplicationCreationRequest localBucketID(String localBucketID) {
    this.localBucketID = localBucketID;
    return this;
  }

   /**
   * Get localBucketID
   * @return localBucketID
  **/
  public String getLocalBucketID() {
    return localBucketID;
  }

  public void setLocalBucketID(String localBucketID) {
    this.localBucketID = localBucketID;
  }

  public ReplicationCreationRequest remoteBucketID(String remoteBucketID) {
    this.remoteBucketID = remoteBucketID;
    return this;
  }

   /**
   * Get remoteBucketID
   * @return remoteBucketID
  **/
  public String getRemoteBucketID() {
    return remoteBucketID;
  }

  public void setRemoteBucketID(String remoteBucketID) {
    this.remoteBucketID = remoteBucketID;
  }

  public ReplicationCreationRequest maxQueueSizeBytes(Long maxQueueSizeBytes) {
    this.maxQueueSizeBytes = maxQueueSizeBytes;
    return this;
  }

   /**
   * Get maxQueueSizeBytes
   * minimum: 33554430
   * @return maxQueueSizeBytes
  **/
  public Long getMaxQueueSizeBytes() {
    return maxQueueSizeBytes;
  }

  public void setMaxQueueSizeBytes(Long maxQueueSizeBytes) {
    this.maxQueueSizeBytes = maxQueueSizeBytes;
  }

  public ReplicationCreationRequest dropNonRetryableData(Boolean dropNonRetryableData) {
    this.dropNonRetryableData = dropNonRetryableData;
    return this;
  }

   /**
   * Get dropNonRetryableData
   * @return dropNonRetryableData
  **/
  public Boolean getDropNonRetryableData() {
    return dropNonRetryableData;
  }

  public void setDropNonRetryableData(Boolean dropNonRetryableData) {
    this.dropNonRetryableData = dropNonRetryableData;
  }

  public ReplicationCreationRequest maxAgeSeconds(Long maxAgeSeconds) {
    this.maxAgeSeconds = maxAgeSeconds;
    return this;
  }

   /**
   * Get maxAgeSeconds
   * minimum: 0
   * @return maxAgeSeconds
  **/
  public Long getMaxAgeSeconds() {
    return maxAgeSeconds;
  }

  public void setMaxAgeSeconds(Long maxAgeSeconds) {
    this.maxAgeSeconds = maxAgeSeconds;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ReplicationCreationRequest replicationCreationRequest = (ReplicationCreationRequest) o;
    return Objects.equals(this.name, replicationCreationRequest.name) &&
        Objects.equals(this.description, replicationCreationRequest.description) &&
        Objects.equals(this.orgID, replicationCreationRequest.orgID) &&
        Objects.equals(this.remoteID, replicationCreationRequest.remoteID) &&
        Objects.equals(this.localBucketID, replicationCreationRequest.localBucketID) &&
        Objects.equals(this.remoteBucketID, replicationCreationRequest.remoteBucketID) &&
        Objects.equals(this.maxQueueSizeBytes, replicationCreationRequest.maxQueueSizeBytes) &&
        Objects.equals(this.dropNonRetryableData, replicationCreationRequest.dropNonRetryableData) &&
        Objects.equals(this.maxAgeSeconds, replicationCreationRequest.maxAgeSeconds);
  }

  @Override
  public int hashCode() {
    return Objects.hash(name, description, orgID, remoteID, localBucketID, remoteBucketID, maxQueueSizeBytes, dropNonRetryableData, maxAgeSeconds);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ReplicationCreationRequest {\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    orgID: ").append(toIndentedString(orgID)).append("\n");
    sb.append("    remoteID: ").append(toIndentedString(remoteID)).append("\n");
    sb.append("    localBucketID: ").append(toIndentedString(localBucketID)).append("\n");
    sb.append("    remoteBucketID: ").append(toIndentedString(remoteBucketID)).append("\n");
    sb.append("    maxQueueSizeBytes: ").append(toIndentedString(maxQueueSizeBytes)).append("\n");
    sb.append("    dropNonRetryableData: ").append(toIndentedString(dropNonRetryableData)).append("\n");
    sb.append("    maxAgeSeconds: ").append(toIndentedString(maxAgeSeconds)).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    ");
  }

}

