
io.fabric8.kubernetes.api.model.TolerationFluentImpl Maven / Gradle / Ivy
package io.fabric8.kubernetes.api.model;
import java.lang.Deprecated;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Long;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;
import java.util.Map;
import java.util.LinkedHashMap;
/**
* Generated
*/
public class TolerationFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements io.fabric8.kubernetes.api.model.TolerationFluent{
public TolerationFluentImpl() {
}
public TolerationFluentImpl(io.fabric8.kubernetes.api.model.Toleration instance) {
this.withEffect(instance.getEffect());
this.withKey(instance.getKey());
this.withOperator(instance.getOperator());
this.withTolerationSeconds(instance.getTolerationSeconds());
this.withValue(instance.getValue());
this.withAdditionalProperties(instance.getAdditionalProperties());
}
private java.lang.String effect;
private java.lang.String key;
private java.lang.String operator;
private java.lang.Long tolerationSeconds;
private java.lang.String value;
private java.util.Map additionalProperties;
public java.lang.String getEffect() {
return this.effect;
}
public A withEffect(java.lang.String effect) {
this.effect=effect; return (A) this;
}
public java.lang.Boolean hasEffect() {
return this.effect != null;
}
/**
* Method is deprecated. use withEffect instead.
*/
@java.lang.Deprecated
public A withNewEffect(java.lang.String arg0) {
return (A)withEffect(new String(arg0));
}
public java.lang.String getKey() {
return this.key;
}
public A withKey(java.lang.String key) {
this.key=key; return (A) this;
}
public java.lang.Boolean hasKey() {
return this.key != null;
}
/**
* Method is deprecated. use withKey instead.
*/
@java.lang.Deprecated
public A withNewKey(java.lang.String arg0) {
return (A)withKey(new String(arg0));
}
public java.lang.String getOperator() {
return this.operator;
}
public A withOperator(java.lang.String operator) {
this.operator=operator; return (A) this;
}
public java.lang.Boolean hasOperator() {
return this.operator != null;
}
/**
* Method is deprecated. use withOperator instead.
*/
@java.lang.Deprecated
public A withNewOperator(java.lang.String arg0) {
return (A)withOperator(new String(arg0));
}
public java.lang.Long getTolerationSeconds() {
return this.tolerationSeconds;
}
public A withTolerationSeconds(java.lang.Long tolerationSeconds) {
this.tolerationSeconds=tolerationSeconds; return (A) this;
}
public java.lang.Boolean hasTolerationSeconds() {
return this.tolerationSeconds != null;
}
public java.lang.String getValue() {
return this.value;
}
public A withValue(java.lang.String value) {
this.value=value; return (A) this;
}
public java.lang.Boolean hasValue() {
return this.value != null;
}
/**
* Method is deprecated. use withValue instead.
*/
@java.lang.Deprecated
public A withNewValue(java.lang.String arg0) {
return (A)withValue(new String(arg0));
}
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;
TolerationFluentImpl that = (TolerationFluentImpl) o;
if (effect != null ? !effect.equals(that.effect) :that.effect != null) return false;
if (key != null ? !key.equals(that.key) :that.key != null) return false;
if (operator != null ? !operator.equals(that.operator) :that.operator != null) return false;
if (tolerationSeconds != null ? !tolerationSeconds.equals(that.tolerationSeconds) :that.tolerationSeconds != null) return false;
if (value != null ? !value.equals(that.value) :that.value != 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(effect, key, operator, tolerationSeconds, value, additionalProperties, super.hashCode());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy