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

io.fabric8.kubernetes.api.model.NodeSystemInfoFluentImpl Maven / Gradle / Ivy

package io.fabric8.kubernetes.api.model;

import java.lang.Deprecated;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;
import java.util.Map;
import java.util.LinkedHashMap;

 /**
  * Generated
  */
public class NodeSystemInfoFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements io.fabric8.kubernetes.api.model.NodeSystemInfoFluent{
  public NodeSystemInfoFluentImpl() {
  }
  public NodeSystemInfoFluentImpl(io.fabric8.kubernetes.api.model.NodeSystemInfo instance) {
    this.withArchitecture(instance.getArchitecture()); 
    this.withBootID(instance.getBootID()); 
    this.withContainerRuntimeVersion(instance.getContainerRuntimeVersion()); 
    this.withKernelVersion(instance.getKernelVersion()); 
    this.withKubeProxyVersion(instance.getKubeProxyVersion()); 
    this.withKubeletVersion(instance.getKubeletVersion()); 
    this.withMachineID(instance.getMachineID()); 
    this.withOperatingSystem(instance.getOperatingSystem()); 
    this.withOsImage(instance.getOsImage()); 
    this.withSystemUUID(instance.getSystemUUID()); 
    this.withAdditionalProperties(instance.getAdditionalProperties());

  }
  private java.lang.String architecture;
  private java.lang.String bootID;
  private java.lang.String containerRuntimeVersion;
  private java.lang.String kernelVersion;
  private java.lang.String kubeProxyVersion;
  private java.lang.String kubeletVersion;
  private java.lang.String machineID;
  private java.lang.String operatingSystem;
  private java.lang.String osImage;
  private java.lang.String systemUUID;
  private java.util.Map additionalProperties;
  public java.lang.String getArchitecture() {
    return this.architecture;
  }
  public A withArchitecture(java.lang.String architecture) {
    this.architecture=architecture; return (A) this;
  }
  public java.lang.Boolean hasArchitecture() {
    return this.architecture != null;
  }
  
  /**
   * Method is deprecated. use withArchitecture instead.
   */
  @java.lang.Deprecated
  public A withNewArchitecture(java.lang.String arg0) {
    return (A)withArchitecture(new String(arg0));
  }
  public java.lang.String getBootID() {
    return this.bootID;
  }
  public A withBootID(java.lang.String bootID) {
    this.bootID=bootID; return (A) this;
  }
  public java.lang.Boolean hasBootID() {
    return this.bootID != null;
  }
  
  /**
   * Method is deprecated. use withBootID instead.
   */
  @java.lang.Deprecated
  public A withNewBootID(java.lang.String arg0) {
    return (A)withBootID(new String(arg0));
  }
  public java.lang.String getContainerRuntimeVersion() {
    return this.containerRuntimeVersion;
  }
  public A withContainerRuntimeVersion(java.lang.String containerRuntimeVersion) {
    this.containerRuntimeVersion=containerRuntimeVersion; return (A) this;
  }
  public java.lang.Boolean hasContainerRuntimeVersion() {
    return this.containerRuntimeVersion != null;
  }
  
  /**
   * Method is deprecated. use withContainerRuntimeVersion instead.
   */
  @java.lang.Deprecated
  public A withNewContainerRuntimeVersion(java.lang.String arg0) {
    return (A)withContainerRuntimeVersion(new String(arg0));
  }
  public java.lang.String getKernelVersion() {
    return this.kernelVersion;
  }
  public A withKernelVersion(java.lang.String kernelVersion) {
    this.kernelVersion=kernelVersion; return (A) this;
  }
  public java.lang.Boolean hasKernelVersion() {
    return this.kernelVersion != null;
  }
  
  /**
   * Method is deprecated. use withKernelVersion instead.
   */
  @java.lang.Deprecated
  public A withNewKernelVersion(java.lang.String arg0) {
    return (A)withKernelVersion(new String(arg0));
  }
  public java.lang.String getKubeProxyVersion() {
    return this.kubeProxyVersion;
  }
  public A withKubeProxyVersion(java.lang.String kubeProxyVersion) {
    this.kubeProxyVersion=kubeProxyVersion; return (A) this;
  }
  public java.lang.Boolean hasKubeProxyVersion() {
    return this.kubeProxyVersion != null;
  }
  
  /**
   * Method is deprecated. use withKubeProxyVersion instead.
   */
  @java.lang.Deprecated
  public A withNewKubeProxyVersion(java.lang.String arg0) {
    return (A)withKubeProxyVersion(new String(arg0));
  }
  public java.lang.String getKubeletVersion() {
    return this.kubeletVersion;
  }
  public A withKubeletVersion(java.lang.String kubeletVersion) {
    this.kubeletVersion=kubeletVersion; return (A) this;
  }
  public java.lang.Boolean hasKubeletVersion() {
    return this.kubeletVersion != null;
  }
  
  /**
   * Method is deprecated. use withKubeletVersion instead.
   */
  @java.lang.Deprecated
  public A withNewKubeletVersion(java.lang.String arg0) {
    return (A)withKubeletVersion(new String(arg0));
  }
  public java.lang.String getMachineID() {
    return this.machineID;
  }
  public A withMachineID(java.lang.String machineID) {
    this.machineID=machineID; return (A) this;
  }
  public java.lang.Boolean hasMachineID() {
    return this.machineID != null;
  }
  
  /**
   * Method is deprecated. use withMachineID instead.
   */
  @java.lang.Deprecated
  public A withNewMachineID(java.lang.String arg0) {
    return (A)withMachineID(new String(arg0));
  }
  public java.lang.String getOperatingSystem() {
    return this.operatingSystem;
  }
  public A withOperatingSystem(java.lang.String operatingSystem) {
    this.operatingSystem=operatingSystem; return (A) this;
  }
  public java.lang.Boolean hasOperatingSystem() {
    return this.operatingSystem != null;
  }
  
  /**
   * Method is deprecated. use withOperatingSystem instead.
   */
  @java.lang.Deprecated
  public A withNewOperatingSystem(java.lang.String arg0) {
    return (A)withOperatingSystem(new String(arg0));
  }
  public java.lang.String getOsImage() {
    return this.osImage;
  }
  public A withOsImage(java.lang.String osImage) {
    this.osImage=osImage; return (A) this;
  }
  public java.lang.Boolean hasOsImage() {
    return this.osImage != null;
  }
  
  /**
   * Method is deprecated. use withOsImage instead.
   */
  @java.lang.Deprecated
  public A withNewOsImage(java.lang.String arg0) {
    return (A)withOsImage(new String(arg0));
  }
  public java.lang.String getSystemUUID() {
    return this.systemUUID;
  }
  public A withSystemUUID(java.lang.String systemUUID) {
    this.systemUUID=systemUUID; return (A) this;
  }
  public java.lang.Boolean hasSystemUUID() {
    return this.systemUUID != null;
  }
  
  /**
   * Method is deprecated. use withSystemUUID instead.
   */
  @java.lang.Deprecated
  public A withNewSystemUUID(java.lang.String arg0) {
    return (A)withSystemUUID(new String(arg0));
  }
  public A addToAdditionalProperties(java.lang.String key,java.lang.Object value) {
    if(this.additionalProperties == null && key != null && value != null) { this.additionalProperties = new java.util.LinkedHashMap(); }
    if(key != null && value != null) {this.additionalProperties.put(key, value);} return (A)this;
  }
  public A addToAdditionalProperties(java.util.Map map) {
    if(this.additionalProperties == null && map != null) { this.additionalProperties = new java.util.LinkedHashMap(); }
    if(map != null) { this.additionalProperties.putAll(map);} return (A)this;
  }
  public A removeFromAdditionalProperties(java.lang.String key) {
    if(this.additionalProperties == null) { return (A) this; }
    if(key != null && this.additionalProperties != null) {this.additionalProperties.remove(key);} return (A)this;
  }
  public A removeFromAdditionalProperties(java.util.Map map) {
    if(this.additionalProperties == null) { return (A) this; }
    if(map != null) { for(Object key : map.keySet()) {if (this.additionalProperties != null){this.additionalProperties.remove(key);}}} return (A)this;
  }
  public java.util.Map getAdditionalProperties() {
    return this.additionalProperties;
  }
  public A withAdditionalProperties(java.util.Map additionalProperties) {
    if (additionalProperties == null) { this.additionalProperties =  null;} else {this.additionalProperties = new java.util.LinkedHashMap(additionalProperties);} return (A) this;
  }
  public java.lang.Boolean hasAdditionalProperties() {
    return this.additionalProperties != null;
  }
  public boolean equals(java.lang.Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    NodeSystemInfoFluentImpl that = (NodeSystemInfoFluentImpl) o;
    if (architecture != null ? !architecture.equals(that.architecture) :that.architecture != null) return false;
    if (bootID != null ? !bootID.equals(that.bootID) :that.bootID != null) return false;
    if (containerRuntimeVersion != null ? !containerRuntimeVersion.equals(that.containerRuntimeVersion) :that.containerRuntimeVersion != null) return false;
    if (kernelVersion != null ? !kernelVersion.equals(that.kernelVersion) :that.kernelVersion != null) return false;
    if (kubeProxyVersion != null ? !kubeProxyVersion.equals(that.kubeProxyVersion) :that.kubeProxyVersion != null) return false;
    if (kubeletVersion != null ? !kubeletVersion.equals(that.kubeletVersion) :that.kubeletVersion != null) return false;
    if (machineID != null ? !machineID.equals(that.machineID) :that.machineID != null) return false;
    if (operatingSystem != null ? !operatingSystem.equals(that.operatingSystem) :that.operatingSystem != null) return false;
    if (osImage != null ? !osImage.equals(that.osImage) :that.osImage != null) return false;
    if (systemUUID != null ? !systemUUID.equals(that.systemUUID) :that.systemUUID != null) return false;
    if (additionalProperties != null ? !additionalProperties.equals(that.additionalProperties) :that.additionalProperties != null) return false;
    return true;
  }
  public int hashCode() {
    return java.util.Objects.hash(architecture,  bootID,  containerRuntimeVersion,  kernelVersion,  kubeProxyVersion,  kubeletVersion,  machineID,  operatingSystem,  osImage,  systemUUID,  additionalProperties,  super.hashCode());
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy