All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.kubernetes.client.openapi.models.V1OverheadFluentImpl Maven / Gradle / Ivy

There is a newer version: 22.0.0
Show newest version
package io.kubernetes.client.openapi.models;

import com.google.gson.annotations.SerializedName;
import io.kubernetes.client.fluent.BaseFluent;
import io.kubernetes.client.custom.Quantity;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;
import java.util.Map;
import java.util.LinkedHashMap;

public class V1OverheadFluentImpl> extends io.kubernetes.client.fluent.BaseFluent implements V1OverheadFluent {

    private Map podFixed;

    public V1OverheadFluentImpl() { 
    }


    public V1OverheadFluentImpl(V1Overhead instance) { 
        this.withPodFixed(instance.getPodFixed());

    }


    public A addToPodFixed(String key,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(Map map) {
        if(this.podFixed == null && map != null) { this.podFixed = new LinkedHashMap(); }
        if(map != null) { this.podFixed.putAll(map);} return (A)this;
    }

    public A removeFromPodFixed(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(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 Map getPodFixed() {
        return this.podFixed;
    }

    public A withPodFixed(Map podFixed) {
        if (podFixed == null) { this.podFixed =  null;} else {this.podFixed = new 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;
        V1OverheadFluentImpl that = (V1OverheadFluentImpl) 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());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy