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

io.streamthoughts.jikkou.kafka.models.V1KafkaClientQuotaSpec Maven / Gradle / Ivy

The newest version!
/*
 * SPDX-License-Identifier: Apache-2.0
 * Copyright (c) The original authors
 *
 * Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
 */
package io.streamthoughts.jikkou.kafka.models;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import io.streamthoughts.jikkou.core.annotation.Description;
import io.streamthoughts.jikkou.core.annotation.Reflectable;
import io.streamthoughts.jikkou.kafka.model.KafkaClientQuotaConfigs;
import io.streamthoughts.jikkou.kafka.model.KafkaClientQuotaEntity;
import io.streamthoughts.jikkou.kafka.model.KafkaClientQuotaType;
import java.beans.ConstructorProperties;
import javax.annotation.processing.Generated;
import lombok.Builder;
import lombok.With;
import lombok.extern.jackson.Jacksonized;


/**
 * Client quota specification
 * 
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Builder(builderMethodName = "builder", toBuilder = true, setterPrefix = "with")
@With
@Description("Client quota specification")
@JsonPropertyOrder({
    "type",
    "entity",
    "configs"
})
@Jacksonized
@Reflectable
@Generated("jsonschema2pojo")
public class V1KafkaClientQuotaSpec {

    @JsonProperty("type")
    private KafkaClientQuotaType type;
    /**
     * V1KafkaClientQuotaEntity
     * 

* A secure logical group of clients that share both user principal and client ID. * */ @JsonProperty("entity") @JsonPropertyDescription("A secure logical group of clients that share both user principal and client ID.") private KafkaClientQuotaEntity entity; @JsonProperty("configs") private KafkaClientQuotaConfigs configs; /** * No args constructor for use in serialization * */ public V1KafkaClientQuotaSpec() { } /** * * @param configs * @param type * @param entity */ @ConstructorProperties({ "type", "entity", "configs" }) public V1KafkaClientQuotaSpec(KafkaClientQuotaType type, KafkaClientQuotaEntity entity, KafkaClientQuotaConfigs configs) { super(); this.type = type; this.entity = entity; this.configs = configs; } @JsonProperty("type") public KafkaClientQuotaType getType() { return type; } /** * V1KafkaClientQuotaEntity *

* A secure logical group of clients that share both user principal and client ID. * */ @JsonProperty("entity") public KafkaClientQuotaEntity getEntity() { return entity; } @JsonProperty("configs") public KafkaClientQuotaConfigs getConfigs() { return configs; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(V1KafkaClientQuotaSpec.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('['); sb.append("type"); sb.append('='); sb.append(((this.type == null)?"":this.type)); sb.append(','); sb.append("entity"); sb.append('='); sb.append(((this.entity == null)?"":this.entity)); sb.append(','); sb.append("configs"); sb.append('='); sb.append(((this.configs == null)?"":this.configs)); sb.append(','); if (sb.charAt((sb.length()- 1)) == ',') { sb.setCharAt((sb.length()- 1), ']'); } else { sb.append(']'); } return sb.toString(); } @Override public int hashCode() { int result = 1; result = ((result* 31)+((this.type == null)? 0 :this.type.hashCode())); result = ((result* 31)+((this.configs == null)? 0 :this.configs.hashCode())); result = ((result* 31)+((this.entity == null)? 0 :this.entity.hashCode())); return result; } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof V1KafkaClientQuotaSpec) == false) { return false; } V1KafkaClientQuotaSpec rhs = ((V1KafkaClientQuotaSpec) other); return ((((this.type == rhs.type)||((this.type!= null)&&this.type.equals(rhs.type)))&&((this.configs == rhs.configs)||((this.configs!= null)&&this.configs.equals(rhs.configs))))&&((this.entity == rhs.entity)||((this.entity!= null)&&this.entity.equals(rhs.entity)))); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy