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

io.vertx.kafka.admin.ClientQuotaAlteration Maven / Gradle / Ivy

package io.vertx.kafka.admin;

import io.vertx.codegen.annotations.DataObject;
import io.vertx.core.json.JsonObject;

import java.util.List;

@DataObject(generateConverter = true)
public class ClientQuotaAlteration {

  private ClientQuotaEntity entity;
  private List ops;

  public ClientQuotaAlteration() {
  }

  public ClientQuotaAlteration(ClientQuotaEntity entity, List ops) {
    this.entity = entity;
    this.ops = ops;
  }

  public ClientQuotaAlteration(JsonObject json) {
    ClientQuotaAlterationConverter.fromJson(json, this);
  }

  public ClientQuotaEntity getEntity() {
    return entity;
  }

  public ClientQuotaAlteration setEntity(ClientQuotaEntity entity) {
    this.entity = entity;
    return this;
  }

  public List getOps() {
    return ops;
  }

  public ClientQuotaAlteration setOps(List ops) {
    this.ops = ops;
    return this;
  }

  public JsonObject toJson() {
    JsonObject json = new JsonObject();
    ClientQuotaAlterationConverter.toJson(this, json);
    return json;
  }

  @Override
  public String toString() {
    return "ClientQuotaAlteration{" +
      "entity=" + entity +
      ", ops=" + ops +
      '}';
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;

    ClientQuotaAlteration that = (ClientQuotaAlteration) o;

    if (entity != null ? !entity.equals(that.entity) : that.entity != null) return false;
    return ops != null ? ops.equals(that.ops) : that.ops == null;
  }

  @Override
  public int hashCode() {
    int result = entity != null ? entity.hashCode() : 0;
    result = 31 * result + (ops != null ? ops.hashCode() : 0);
    return result;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy