io.camunda.zeebe.management.cluster.EnableExporterRequest 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 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;
/**
* EnableExporterRequest
*/
@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 EnableExporterRequest {
private String initializeFrom;
public EnableExporterRequest initializeFrom(String initializeFrom) {
this.initializeFrom = initializeFrom;
return this;
}
/**
* Id of the exporter to initialize from
* @return initializeFrom
*/
@Schema(name = "initializeFrom", example = "exporter-1", description = "Id of the exporter to initialize from", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("initializeFrom")
public String getInitializeFrom() {
return initializeFrom;
}
public void setInitializeFrom(String initializeFrom) {
this.initializeFrom = initializeFrom;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EnableExporterRequest enableExporterRequest = (EnableExporterRequest) o;
return Objects.equals(this.initializeFrom, enableExporterRequest.initializeFrom);
}
@Override
public int hashCode() {
return Objects.hash(initializeFrom);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EnableExporterRequest {\n");
sb.append(" initializeFrom: ").append(toIndentedString(initializeFrom)).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 ");
}
}