io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.QueuingConfigurationFluentImpl Maven / Gradle / Ivy
package io.fabric8.kubernetes.api.model.flowcontrol.v1beta1;
import java.lang.Integer;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;
import java.util.Map;
import java.util.LinkedHashMap;
/**
* Generated
*/
public class QueuingConfigurationFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.QueuingConfigurationFluent{
public QueuingConfigurationFluentImpl() {
}
public QueuingConfigurationFluentImpl(io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.QueuingConfiguration instance) {
this.withHandSize(instance.getHandSize());
this.withQueueLengthLimit(instance.getQueueLengthLimit());
this.withQueues(instance.getQueues());
this.withAdditionalProperties(instance.getAdditionalProperties());
}
private java.lang.Integer handSize;
private java.lang.Integer queueLengthLimit;
private java.lang.Integer queues;
private java.util.Map additionalProperties;
public java.lang.Integer getHandSize() {
return this.handSize;
}
public A withHandSize(java.lang.Integer handSize) {
this.handSize=handSize; return (A) this;
}
public java.lang.Boolean hasHandSize() {
return this.handSize != null;
}
public java.lang.Integer getQueueLengthLimit() {
return this.queueLengthLimit;
}
public A withQueueLengthLimit(java.lang.Integer queueLengthLimit) {
this.queueLengthLimit=queueLengthLimit; return (A) this;
}
public java.lang.Boolean hasQueueLengthLimit() {
return this.queueLengthLimit != null;
}
public java.lang.Integer getQueues() {
return this.queues;
}
public A withQueues(java.lang.Integer queues) {
this.queues=queues; return (A) this;
}
public java.lang.Boolean hasQueues() {
return this.queues != null;
}
public A addToAdditionalProperties(java.lang.String key,java.lang.Object value) {
if(this.additionalProperties == null && key != null && value != null) { this.additionalProperties = new java.util.LinkedHashMap(); }
if(key != null && value != null) {this.additionalProperties.put(key, value);} return (A)this;
}
public A addToAdditionalProperties(java.util.Map map) {
if(this.additionalProperties == null && map != null) { this.additionalProperties = new java.util.LinkedHashMap(); }
if(map != null) { this.additionalProperties.putAll(map);} return (A)this;
}
public A removeFromAdditionalProperties(java.lang.String key) {
if(this.additionalProperties == null) { return (A) this; }
if(key != null && this.additionalProperties != null) {this.additionalProperties.remove(key);} return (A)this;
}
public A removeFromAdditionalProperties(java.util.Map map) {
if(this.additionalProperties == null) { return (A) this; }
if(map != null) { for(Object key : map.keySet()) {if (this.additionalProperties != null){this.additionalProperties.remove(key);}}} return (A)this;
}
public java.util.Map getAdditionalProperties() {
return this.additionalProperties;
}
public A withAdditionalProperties(java.util.Map additionalProperties) {
if (additionalProperties == null) { this.additionalProperties = null;} else {this.additionalProperties = new java.util.LinkedHashMap(additionalProperties);} return (A) this;
}
public java.lang.Boolean hasAdditionalProperties() {
return this.additionalProperties != null;
}
public boolean equals(java.lang.Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
QueuingConfigurationFluentImpl that = (QueuingConfigurationFluentImpl) o;
if (handSize != null ? !handSize.equals(that.handSize) :that.handSize != null) return false;
if (queueLengthLimit != null ? !queueLengthLimit.equals(that.queueLengthLimit) :that.queueLengthLimit != null) return false;
if (queues != null ? !queues.equals(that.queues) :that.queues != null) return false;
if (additionalProperties != null ? !additionalProperties.equals(that.additionalProperties) :that.additionalProperties != null) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(handSize, queueLengthLimit, queues, additionalProperties, super.hashCode());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy