io.kubernetes.client.openapi.models.V1beta1OverheadFluentImpl Maven / Gradle / Ivy
/*
Copyright 2022 The Kubernetes Authors.
Licensed 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.kubernetes.client.openapi.models;
import io.kubernetes.client.custom.Quantity;
import io.kubernetes.client.fluent.BaseFluent;
import java.util.LinkedHashMap;
import java.util.Map;
/** Generated */
@SuppressWarnings(value = "unchecked")
public class V1beta1OverheadFluentImpl> extends BaseFluent
implements V1beta1OverheadFluent {
public V1beta1OverheadFluentImpl() {}
public V1beta1OverheadFluentImpl(io.kubernetes.client.openapi.models.V1beta1Overhead instance) {
this.withPodFixed(instance.getPodFixed());
}
private Map podFixed;
public A addToPodFixed(java.lang.String key, io.kubernetes.client.custom.Quantity value) {
if (this.podFixed == null && key != null && value != null) {
this.podFixed = new LinkedHashMap();
}
if (key != null && value != null) {
this.podFixed.put(key, value);
}
return (A) this;
}
public A addToPodFixed(
java.util.Map map) {
if (this.podFixed == null && map != null) {
this.podFixed = new java.util.LinkedHashMap();
}
if (map != null) {
this.podFixed.putAll(map);
}
return (A) this;
}
public A removeFromPodFixed(java.lang.String key) {
if (this.podFixed == null) {
return (A) this;
}
if (key != null && this.podFixed != null) {
this.podFixed.remove(key);
}
return (A) this;
}
public A removeFromPodFixed(
java.util.Map map) {
if (this.podFixed == null) {
return (A) this;
}
if (map != null) {
for (Object key : map.keySet()) {
if (this.podFixed != null) {
this.podFixed.remove(key);
}
}
}
return (A) this;
}
public java.util.Map getPodFixed() {
return this.podFixed;
}
public A withPodFixed(
java.util.Map podFixed) {
if (podFixed == null) {
this.podFixed = null;
} else {
this.podFixed = new java.util.LinkedHashMap(podFixed);
}
return (A) this;
}
public Boolean hasPodFixed() {
return this.podFixed != null;
}
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
V1beta1OverheadFluentImpl that = (V1beta1OverheadFluentImpl) o;
if (podFixed != null ? !podFixed.equals(that.podFixed) : that.podFixed != null) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(podFixed, super.hashCode());
}
public java.lang.String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (podFixed != null && !podFixed.isEmpty()) {
sb.append("podFixed:");
sb.append(podFixed);
}
sb.append("}");
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy