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 java.lang.SuppressWarnings;
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;

 /**
  * Generated
  */
  @SuppressWarnings(value = "unchecked")
  public class V1OverheadFluentImpl> extends BaseFluent implements V1OverheadFluent{
  public V1OverheadFluentImpl() {
  }
  public V1OverheadFluentImpl(V1Overhead instance) {
    this.withPodFixed(instance.getPodFixed());

  }
  private Map podFixed;
  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());
  }
  public 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