io.streamthoughts.jikkou.kafka.models.V1KafkaClientQuotaChange Maven / Gradle / Ivy
/*
* Copyright 2023 StreamThoughts.
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.streamthoughts.jikkou.kafka.models;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.streamthoughts.jikkou.api.model.HasMetadataChange;
import io.streamthoughts.jikkou.api.model.ObjectMeta;
import io.streamthoughts.jikkou.api.model.Resource;
import io.streamthoughts.jikkou.api.model.annotations.ApiVersion;
import io.streamthoughts.jikkou.api.model.annotations.Description;
import io.streamthoughts.jikkou.api.model.annotations.Kind;
import java.beans.ConstructorProperties;
import javax.annotation.processing.Generated;
import lombok.Builder;
import lombok.With;
/**
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@Builder(builderMethodName = "builder", toBuilder = true, setterPrefix = "with")
@With
@Description("")
@JsonPropertyOrder({
"apiVersion",
"kind",
"metadata",
"change"
})
@ApiVersion("kafka.jikkou.io/v1beta2")
@Kind("KafkaClientQuotaChange")
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
@Generated("jsonschema2pojo")
public class V1KafkaClientQuotaChange implements HasMetadataChange , Resource
{
/**
*
* (Required)
*
*/
@JsonProperty("apiVersion")
private String apiVersion = "kafka.jikkou.io/v1beta2";
/**
*
* (Required)
*
*/
@JsonProperty("kind")
private String kind = "KafkaClientQuotaChange";
/**
*
* (Required)
*
*/
@JsonProperty("metadata")
private ObjectMeta metadata;
@JsonProperty("change")
private io.streamthoughts.jikkou.kafka.control.change.QuotaChange change;
/**
* No args constructor for use in serialization
*
*/
public V1KafkaClientQuotaChange() {
}
/**
*
* @param metadata
* @param apiVersion
* @param kind
* @param change
*/
@ConstructorProperties({
"apiVersion",
"kind",
"metadata",
"change"
})
public V1KafkaClientQuotaChange(String apiVersion, String kind, ObjectMeta metadata, io.streamthoughts.jikkou.kafka.control.change.QuotaChange change) {
super();
this.apiVersion = apiVersion;
this.kind = kind;
this.metadata = metadata;
this.change = change;
}
/**
*
* (Required)
*
*/
@JsonProperty("apiVersion")
public String getApiVersion() {
return apiVersion;
}
/**
*
* (Required)
*
*/
@JsonProperty("kind")
public String getKind() {
return kind;
}
/**
*
* (Required)
*
*/
@JsonProperty("metadata")
public ObjectMeta getMetadata() {
return metadata;
}
@JsonProperty("change")
public io.streamthoughts.jikkou.kafka.control.change.QuotaChange getChange() {
return change;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(V1KafkaClientQuotaChange.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("apiVersion");
sb.append('=');
sb.append(((this.apiVersion == null)?"":this.apiVersion));
sb.append(',');
sb.append("kind");
sb.append('=');
sb.append(((this.kind == null)?"":this.kind));
sb.append(',');
sb.append("metadata");
sb.append('=');
sb.append(((this.metadata == null)?"":this.metadata));
sb.append(',');
sb.append("change");
sb.append('=');
sb.append(((this.change == null)?"":this.change));
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.metadata == null)? 0 :this.metadata.hashCode()));
result = ((result* 31)+((this.apiVersion == null)? 0 :this.apiVersion.hashCode()));
result = ((result* 31)+((this.kind == null)? 0 :this.kind.hashCode()));
result = ((result* 31)+((this.change == null)? 0 :this.change.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof V1KafkaClientQuotaChange) == false) {
return false;
}
V1KafkaClientQuotaChange rhs = ((V1KafkaClientQuotaChange) other);
return (((((this.metadata == rhs.metadata)||((this.metadata!= null)&&this.metadata.equals(rhs.metadata)))&&((this.apiVersion == rhs.apiVersion)||((this.apiVersion!= null)&&this.apiVersion.equals(rhs.apiVersion))))&&((this.kind == rhs.kind)||((this.kind!= null)&&this.kind.equals(rhs.kind))))&&((this.change == rhs.change)||((this.change!= null)&&this.change.equals(rhs.change))));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy