annotations.io.fabric8.kubernetes.api.model.ResourceRequirementsFluent Maven / Gradle / Ivy
package io.fabric8.kubernetes.api.model;
import io.fabric8.kubernetes.api.model.resource.Quantity;
import java.util.HashMap;
import java.util.Map;
import io.fabric8.common.Fluent;
import io.fabric8.common.BaseFluent;
import io.fabric8.common.Visitable;
public class ResourceRequirementsFluent> extends BaseFluent implements Fluent{
Map limits = new HashMap(); Map requests = new HashMap(); Map additionalProperties = new HashMap();
public T addToLimits( String key, Quantity value){
if(key != null && value != null) {this.limits.put(key, value);} return (T)this;
}
public Map getLimits(){
return this.limits;
}
public T withLimits( Map limits){
this.limits.clear();if (limits != null) {this.limits.putAll(limits);} return (T) this;
}
public T addToRequests( String key, Quantity value){
if(key != null && value != null) {this.requests.put(key, value);} return (T)this;
}
public Map getRequests(){
return this.requests;
}
public T withRequests( Map requests){
this.requests.clear();if (requests != null) {this.requests.putAll(requests);} return (T) this;
}
public T addToAdditionalProperties( String key, Object value){
if(key != null && value != null) {this.additionalProperties.put(key, value);} 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;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy