io.camunda.zeebe.management.cluster.ExporterConfig Maven / Gradle / Ivy
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 com.fasterxml.jackson.annotation.JsonValue;
import io.camunda.zeebe.management.cluster.ExporterStateCode;
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;
/**
* ExporterConfig
*/
@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 ExporterConfig {
private String id;
private ExporterStateCode state;
public ExporterConfig id(String id) {
this.id = id;
return this;
}
/**
* The ID of an exporter
* @return id
*/
@Schema(name = "id", example = "my-exporter", description = "The ID of an exporter", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("id")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public ExporterConfig state(ExporterStateCode state) {
this.state = state;
return this;
}
/**
* Get state
* @return state
*/
@Valid
@Schema(name = "state", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("state")
public ExporterStateCode getState() {
return state;
}
public void setState(ExporterStateCode state) {
this.state = state;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ExporterConfig exporterConfig = (ExporterConfig) o;
return Objects.equals(this.id, exporterConfig.id) &&
Objects.equals(this.state, exporterConfig.state);
}
@Override
public int hashCode() {
return Objects.hash(id, state);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ExporterConfig {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" state: ").append(toIndentedString(state)).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 ");
}
}