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

io.camunda.zeebe.management.cluster.ExportingConfig Maven / Gradle / Ivy

There is a newer version: 8.7.0-alpha1
Show newest version
package io.camunda.zeebe.management.cluster;

import java.net.URI;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.camunda.zeebe.management.cluster.ExporterConfig;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.openapitools.jackson.nullable.JsonNullable;
import java.time.OffsetDateTime;
import jakarta.validation.Valid;
import jakarta.validation.constraints.*;
import io.swagger.v3.oas.annotations.media.Schema;


import java.util.*;
import jakarta.annotation.Generated;

/**
 * ExportingConfig
 */
@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)

@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-10-02T11:21:27.419777225Z[GMT]", comments = "Generator version: 7.8.0")
public class ExportingConfig {

  @Valid
  private List<@Valid ExporterConfig> exporters = new ArrayList<>();

  public ExportingConfig exporters(List<@Valid ExporterConfig> exporters) {
    this.exporters = exporters;
    return this;
  }

  public ExportingConfig addExportersItem(ExporterConfig exportersItem) {
    if (this.exporters == null) {
      this.exporters = new ArrayList<>();
    }
    this.exporters.add(exportersItem);
    return this;
  }

  /**
   * Get exporters
   * @return exporters
   */
  @Valid 
  @Schema(name = "exporters", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
  @JsonProperty("exporters")
  public List<@Valid ExporterConfig> getExporters() {
    return exporters;
  }

  public void setExporters(List<@Valid ExporterConfig> exporters) {
    this.exporters = exporters;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ExportingConfig exportingConfig = (ExportingConfig) o;
    return Objects.equals(this.exporters, exportingConfig.exporters);
  }

  @Override
  public int hashCode() {
    return Objects.hash(exporters);
  }

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





© 2015 - 2024 Weber Informatics LLC | Privacy Policy