annotations.io.fabric8.kubernetes.api.model.LimitRangeItemFluentImpl Maven / Gradle / Ivy
package io.fabric8.kubernetes.api.model;
import java.util.Map;
import java.util.HashMap;
import java.io.Serializable;
import java.util.Map;
import java.util.Map;
import java.util.AbstractMap;
import io.fabric8.kubernetes.api.builder.Visitable;
import io.fabric8.kubernetes.api.builder.Fluent;
import io.fabric8.kubernetes.api.builder.BaseFluent;
public class LimitRangeItemFluentImpl> extends BaseFluent implements LimitRangeItemFluent{
Map _default = new HashMap(); Map defaultRequest = new HashMap(); Map max = new HashMap(); Map maxLimitRequestRatio = new HashMap(); Map min = new HashMap(); String type; Map additionalProperties = new HashMap();
public LimitRangeItemFluentImpl(){
}
public LimitRangeItemFluentImpl( LimitRangeItem instance ){
this.withDefault(instance.getDefault()); this.withDefaultRequest(instance.getDefaultRequest()); this.withMax(instance.getMax()); this.withMaxLimitRequestRatio(instance.getMaxLimitRequestRatio()); this.withMin(instance.getMin()); this.withType(instance.getType());
}
public T addToDefault( String key, Quantity value){
if(key != null && value != null) {this._default.put(key, value);} return (T)this;
}
public T addToDefault( Map map){
if(map != null) { this._default.putAll(map);} return (T)this;
}
public T removeFromDefault( String key){
if(key != null) {this._default.remove(key);} return (T)this;
}
public T removeFromDefault( Map map){
if(map != null) { for(Object key : map.keySet()) {this._default.remove(key);}} return (T)this;
}
public Map getDefault(){
return this._default;
}
public T withDefault( Map _default){
this._default.clear();if (_default != null) {this._default.putAll(_default);} return (T) this;
}
public T addToDefaultRequest( String key, Quantity value){
if(key != null && value != null) {this.defaultRequest.put(key, value);} return (T)this;
}
public T addToDefaultRequest( Map map){
if(map != null) { this.defaultRequest.putAll(map);} return (T)this;
}
public T removeFromDefaultRequest( String key){
if(key != null) {this.defaultRequest.remove(key);} return (T)this;
}
public T removeFromDefaultRequest( Map map){
if(map != null) { for(Object key : map.keySet()) {this.defaultRequest.remove(key);}} return (T)this;
}
public Map getDefaultRequest(){
return this.defaultRequest;
}
public T withDefaultRequest( Map defaultRequest){
this.defaultRequest.clear();if (defaultRequest != null) {this.defaultRequest.putAll(defaultRequest);} return (T) this;
}
public T addToMax( String key, Quantity value){
if(key != null && value != null) {this.max.put(key, value);} return (T)this;
}
public T addToMax( Map map){
if(map != null) { this.max.putAll(map);} return (T)this;
}
public T removeFromMax( String key){
if(key != null) {this.max.remove(key);} return (T)this;
}
public T removeFromMax( Map map){
if(map != null) { for(Object key : map.keySet()) {this.max.remove(key);}} return (T)this;
}
public Map getMax(){
return this.max;
}
public T withMax( Map max){
this.max.clear();if (max != null) {this.max.putAll(max);} return (T) this;
}
public T addToMaxLimitRequestRatio( String key, Quantity value){
if(key != null && value != null) {this.maxLimitRequestRatio.put(key, value);} return (T)this;
}
public T addToMaxLimitRequestRatio( Map map){
if(map != null) { this.maxLimitRequestRatio.putAll(map);} return (T)this;
}
public T removeFromMaxLimitRequestRatio( String key){
if(key != null) {this.maxLimitRequestRatio.remove(key);} return (T)this;
}
public T removeFromMaxLimitRequestRatio( Map map){
if(map != null) { for(Object key : map.keySet()) {this.maxLimitRequestRatio.remove(key);}} return (T)this;
}
public Map getMaxLimitRequestRatio(){
return this.maxLimitRequestRatio;
}
public T withMaxLimitRequestRatio( Map maxLimitRequestRatio){
this.maxLimitRequestRatio.clear();if (maxLimitRequestRatio != null) {this.maxLimitRequestRatio.putAll(maxLimitRequestRatio);} return (T) this;
}
public T addToMin( String key, Quantity value){
if(key != null && value != null) {this.min.put(key, value);} return (T)this;
}
public T addToMin( Map map){
if(map != null) { this.min.putAll(map);} return (T)this;
}
public T removeFromMin( String key){
if(key != null) {this.min.remove(key);} return (T)this;
}
public T removeFromMin( Map map){
if(map != null) { for(Object key : map.keySet()) {this.min.remove(key);}} return (T)this;
}
public Map getMin(){
return this.min;
}
public T withMin( Map min){
this.min.clear();if (min != null) {this.min.putAll(min);} return (T) this;
}
public String getType(){
return this.type;
}
public T withType( String type){
this.type=type; return (T) this;
}
public T addToAdditionalProperties( String key, Object value){
if(key != null && value != null) {this.additionalProperties.put(key, value);} return (T)this;
}
public T addToAdditionalProperties( Map map){
if(map != null) { this.additionalProperties.putAll(map);} return (T)this;
}
public T removeFromAdditionalProperties( String key){
if(key != null) {this.additionalProperties.remove(key);} return (T)this;
}
public T removeFromAdditionalProperties( Map map){
if(map != null) { for(Object key : map.keySet()) {this.additionalProperties.remove(key);}} return (T)this;
}
public Map getAdditionalProperties(){
return this.additionalProperties;
}
public T withAdditionalProperties( Map additionalProperties){
this.additionalProperties.clear();if (additionalProperties != null) {this.additionalProperties.putAll(additionalProperties);} return (T) this;
}
public boolean equals( Object o){
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
LimitRangeItemFluentImpl that = (LimitRangeItemFluentImpl) o;
if (_default != null ? !_default.equals(that._default) :that._default != null) return false;
if (defaultRequest != null ? !defaultRequest.equals(that.defaultRequest) :that.defaultRequest != null) return false;
if (max != null ? !max.equals(that.max) :that.max != null) return false;
if (maxLimitRequestRatio != null ? !maxLimitRequestRatio.equals(that.maxLimitRequestRatio) :that.maxLimitRequestRatio != null) return false;
if (min != null ? !min.equals(that.min) :that.min != null) return false;
if (type != null ? !type.equals(that.type) :that.type != null) return false;
if (additionalProperties != null ? !additionalProperties.equals(that.additionalProperties) :that.additionalProperties != null) return false;
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy