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

com.influxdb.client.domain.ReplicationUpdateRequest Maven / Gradle / Ivy

/*
 * 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;

/**
 * ReplicationUpdateRequest
 */

public class ReplicationUpdateRequest {
  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_REMOTE_I_D = "remoteID";
  @SerializedName(SERIALIZED_NAME_REMOTE_I_D)
  private String remoteID;

  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;

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

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

  public ReplicationUpdateRequest 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 ReplicationUpdateRequest 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 ReplicationUpdateRequest 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 ReplicationUpdateRequest 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 ReplicationUpdateRequest 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 ReplicationUpdateRequest 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 ReplicationUpdateRequest 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;
    }
    ReplicationUpdateRequest replicationUpdateRequest = (ReplicationUpdateRequest) o;
    return Objects.equals(this.name, replicationUpdateRequest.name) &&
        Objects.equals(this.description, replicationUpdateRequest.description) &&
        Objects.equals(this.remoteID, replicationUpdateRequest.remoteID) &&
        Objects.equals(this.remoteBucketID, replicationUpdateRequest.remoteBucketID) &&
        Objects.equals(this.maxQueueSizeBytes, replicationUpdateRequest.maxQueueSizeBytes) &&
        Objects.equals(this.dropNonRetryableData, replicationUpdateRequest.dropNonRetryableData) &&
        Objects.equals(this.maxAgeSeconds, replicationUpdateRequest.maxAgeSeconds);
  }

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


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

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy