io.camunda.zeebe.management.cluster.ClusterConfigPatchRequestPartitions 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.JsonTypeName;
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;
/**
* ClusterConfigPatchRequestPartitions
*/
@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
@JsonTypeName("ClusterConfigPatchRequest_partitions")
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-10-02T11:21:26.842697815Z[GMT]", comments = "Generator version: 7.8.0")
public class ClusterConfigPatchRequestPartitions {
private Integer count;
private Integer replicationFactor;
public ClusterConfigPatchRequestPartitions count(Integer count) {
this.count = count;
return this;
}
/**
* The new number of partitions. Can be omitted if the partition count is not changed. This is an experimental feature.
* @return count
*/
@Schema(name = "count", example = "12", description = "The new number of partitions. Can be omitted if the partition count is not changed. This is an experimental feature.", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("count")
public Integer getCount() {
return count;
}
public void setCount(Integer count) {
this.count = count;
}
public ClusterConfigPatchRequestPartitions replicationFactor(Integer replicationFactor) {
this.replicationFactor = replicationFactor;
return this;
}
/**
* The new replication factor. Can be omitted if the replication factor is not changed.
* @return replicationFactor
*/
@Schema(name = "replicationFactor", example = "3", description = "The new replication factor. Can be omitted if the replication factor is not changed.", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("replicationFactor")
public Integer getReplicationFactor() {
return replicationFactor;
}
public void setReplicationFactor(Integer replicationFactor) {
this.replicationFactor = replicationFactor;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ClusterConfigPatchRequestPartitions clusterConfigPatchRequestPartitions = (ClusterConfigPatchRequestPartitions) o;
return Objects.equals(this.count, clusterConfigPatchRequestPartitions.count) &&
Objects.equals(this.replicationFactor, clusterConfigPatchRequestPartitions.replicationFactor);
}
@Override
public int hashCode() {
return Objects.hash(count, replicationFactor);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ClusterConfigPatchRequestPartitions {\n");
sb.append(" count: ").append(toIndentedString(count)).append("\n");
sb.append(" replicationFactor: ").append(toIndentedString(replicationFactor)).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 ");
}
}