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

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

There is a newer version: 22.0.0
Show newest version
/*
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 io.kubernetes.client.fluent.Nested;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.function.Predicate;

/** Generated */
@SuppressWarnings(value = "unchecked")
public class V1NodeStatusFluentImpl> extends BaseFluent
    implements V1NodeStatusFluent {
  public V1NodeStatusFluentImpl() {}

  public V1NodeStatusFluentImpl(io.kubernetes.client.openapi.models.V1NodeStatus instance) {
    this.withAddresses(instance.getAddresses());

    this.withAllocatable(instance.getAllocatable());

    this.withCapacity(instance.getCapacity());

    this.withConditions(instance.getConditions());

    this.withConfig(instance.getConfig());

    this.withDaemonEndpoints(instance.getDaemonEndpoints());

    this.withImages(instance.getImages());

    this.withNodeInfo(instance.getNodeInfo());

    this.withPhase(instance.getPhase());

    this.withVolumesAttached(instance.getVolumesAttached());

    this.withVolumesInUse(instance.getVolumesInUse());
  }

  private ArrayList addresses;
  private Map allocatable;
  private java.util.Map capacity;
  private java.util.ArrayList conditions;
  private V1NodeConfigStatusBuilder config;
  private V1NodeDaemonEndpointsBuilder daemonEndpoints;
  private java.util.ArrayList images;
  private V1NodeSystemInfoBuilder nodeInfo;
  private java.lang.String phase;
  private java.util.ArrayList volumesAttached;
  private List volumesInUse;

  public A addToAddresses(Integer index, V1NodeAddress item) {
    if (this.addresses == null) {
      this.addresses =
          new java.util.ArrayList();
    }
    io.kubernetes.client.openapi.models.V1NodeAddressBuilder builder =
        new io.kubernetes.client.openapi.models.V1NodeAddressBuilder(item);
    _visitables
        .get("addresses")
        .add(index >= 0 ? index : _visitables.get("addresses").size(), builder);
    this.addresses.add(index >= 0 ? index : addresses.size(), builder);
    return (A) this;
  }

  public A setToAddresses(
      java.lang.Integer index, io.kubernetes.client.openapi.models.V1NodeAddress item) {
    if (this.addresses == null) {
      this.addresses =
          new java.util.ArrayList();
    }
    io.kubernetes.client.openapi.models.V1NodeAddressBuilder builder =
        new io.kubernetes.client.openapi.models.V1NodeAddressBuilder(item);
    if (index < 0 || index >= _visitables.get("addresses").size()) {
      _visitables.get("addresses").add(builder);
    } else {
      _visitables.get("addresses").set(index, builder);
    }
    if (index < 0 || index >= addresses.size()) {
      addresses.add(builder);
    } else {
      addresses.set(index, builder);
    }
    return (A) this;
  }

  public A addToAddresses(io.kubernetes.client.openapi.models.V1NodeAddress... items) {
    if (this.addresses == null) {
      this.addresses =
          new java.util.ArrayList();
    }
    for (io.kubernetes.client.openapi.models.V1NodeAddress item : items) {
      io.kubernetes.client.openapi.models.V1NodeAddressBuilder builder =
          new io.kubernetes.client.openapi.models.V1NodeAddressBuilder(item);
      _visitables.get("addresses").add(builder);
      this.addresses.add(builder);
    }
    return (A) this;
  }

  public A addAllToAddresses(Collection items) {
    if (this.addresses == null) {
      this.addresses =
          new java.util.ArrayList();
    }
    for (io.kubernetes.client.openapi.models.V1NodeAddress item : items) {
      io.kubernetes.client.openapi.models.V1NodeAddressBuilder builder =
          new io.kubernetes.client.openapi.models.V1NodeAddressBuilder(item);
      _visitables.get("addresses").add(builder);
      this.addresses.add(builder);
    }
    return (A) this;
  }

  public A removeFromAddresses(io.kubernetes.client.openapi.models.V1NodeAddress... items) {
    for (io.kubernetes.client.openapi.models.V1NodeAddress item : items) {
      io.kubernetes.client.openapi.models.V1NodeAddressBuilder builder =
          new io.kubernetes.client.openapi.models.V1NodeAddressBuilder(item);
      _visitables.get("addresses").remove(builder);
      if (this.addresses != null) {
        this.addresses.remove(builder);
      }
    }
    return (A) this;
  }

  public A removeAllFromAddresses(
      java.util.Collection items) {
    for (io.kubernetes.client.openapi.models.V1NodeAddress item : items) {
      io.kubernetes.client.openapi.models.V1NodeAddressBuilder builder =
          new io.kubernetes.client.openapi.models.V1NodeAddressBuilder(item);
      _visitables.get("addresses").remove(builder);
      if (this.addresses != null) {
        this.addresses.remove(builder);
      }
    }
    return (A) this;
  }

  public A removeMatchingFromAddresses(
      Predicate predicate) {
    if (addresses == null) return (A) this;
    final Iterator each =
        addresses.iterator();
    final List visitables = _visitables.get("addresses");
    while (each.hasNext()) {
      io.kubernetes.client.openapi.models.V1NodeAddressBuilder builder = each.next();
      if (predicate.test(builder)) {
        visitables.remove(builder);
        each.remove();
      }
    }
    return (A) this;
  }

  /**
   * This method has been deprecated, please use method buildAddresses instead.
   *
   * @return The buildable object.
   */
  @Deprecated
  public java.util.List getAddresses() {
    return addresses != null ? build(addresses) : null;
  }

  public java.util.List buildAddresses() {
    return addresses != null ? build(addresses) : null;
  }

  public io.kubernetes.client.openapi.models.V1NodeAddress buildAddress(java.lang.Integer index) {
    return this.addresses.get(index).build();
  }

  public io.kubernetes.client.openapi.models.V1NodeAddress buildFirstAddress() {
    return this.addresses.get(0).build();
  }

  public io.kubernetes.client.openapi.models.V1NodeAddress buildLastAddress() {
    return this.addresses.get(addresses.size() - 1).build();
  }

  public io.kubernetes.client.openapi.models.V1NodeAddress buildMatchingAddress(
      java.util.function.Predicate
          predicate) {
    for (io.kubernetes.client.openapi.models.V1NodeAddressBuilder item : addresses) {
      if (predicate.test(item)) {
        return item.build();
      }
    }
    return null;
  }

  public Boolean hasMatchingAddress(
      java.util.function.Predicate
          predicate) {
    for (io.kubernetes.client.openapi.models.V1NodeAddressBuilder item : addresses) {
      if (predicate.test(item)) {
        return true;
      }
    }
    return false;
  }

  public A withAddresses(
      java.util.List addresses) {
    if (this.addresses != null) {
      _visitables.get("addresses").removeAll(this.addresses);
    }
    if (addresses != null) {
      this.addresses = new java.util.ArrayList();
      for (io.kubernetes.client.openapi.models.V1NodeAddress item : addresses) {
        this.addToAddresses(item);
      }
    } else {
      this.addresses = null;
    }
    return (A) this;
  }

  public A withAddresses(io.kubernetes.client.openapi.models.V1NodeAddress... addresses) {
    if (this.addresses != null) {
      this.addresses.clear();
    }
    if (addresses != null) {
      for (io.kubernetes.client.openapi.models.V1NodeAddress item : addresses) {
        this.addToAddresses(item);
      }
    }
    return (A) this;
  }

  public java.lang.Boolean hasAddresses() {
    return addresses != null && !addresses.isEmpty();
  }

  public V1NodeStatusFluent.AddressesNested addNewAddress() {
    return new V1NodeStatusFluentImpl.AddressesNestedImpl();
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.AddressesNested
      addNewAddressLike(io.kubernetes.client.openapi.models.V1NodeAddress item) {
    return new V1NodeStatusFluentImpl.AddressesNestedImpl(-1, item);
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.AddressesNested
      setNewAddressLike(
          java.lang.Integer index, io.kubernetes.client.openapi.models.V1NodeAddress item) {
    return new io.kubernetes.client.openapi.models.V1NodeStatusFluentImpl.AddressesNestedImpl(
        index, item);
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.AddressesNested editAddress(
      java.lang.Integer index) {
    if (addresses.size() <= index)
      throw new RuntimeException("Can't edit addresses. Index exceeds size.");
    return setNewAddressLike(index, buildAddress(index));
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.AddressesNested
      editFirstAddress() {
    if (addresses.size() == 0)
      throw new RuntimeException("Can't edit first addresses. The list is empty.");
    return setNewAddressLike(0, buildAddress(0));
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.AddressesNested
      editLastAddress() {
    int index = addresses.size() - 1;
    if (index < 0) throw new RuntimeException("Can't edit last addresses. The list is empty.");
    return setNewAddressLike(index, buildAddress(index));
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.AddressesNested
      editMatchingAddress(
          java.util.function.Predicate
              predicate) {
    int index = -1;
    for (int i = 0; i < addresses.size(); i++) {
      if (predicate.test(addresses.get(i))) {
        index = i;
        break;
      }
    }
    if (index < 0) throw new RuntimeException("Can't edit matching addresses. No match found.");
    return setNewAddressLike(index, buildAddress(index));
  }

  public A addToAllocatable(java.lang.String key, io.kubernetes.client.custom.Quantity value) {
    if (this.allocatable == null && key != null && value != null) {
      this.allocatable = new LinkedHashMap();
    }
    if (key != null && value != null) {
      this.allocatable.put(key, value);
    }
    return (A) this;
  }

  public A addToAllocatable(
      java.util.Map map) {
    if (this.allocatable == null && map != null) {
      this.allocatable = new java.util.LinkedHashMap();
    }
    if (map != null) {
      this.allocatable.putAll(map);
    }
    return (A) this;
  }

  public A removeFromAllocatable(java.lang.String key) {
    if (this.allocatable == null) {
      return (A) this;
    }
    if (key != null && this.allocatable != null) {
      this.allocatable.remove(key);
    }
    return (A) this;
  }

  public A removeFromAllocatable(
      java.util.Map map) {
    if (this.allocatable == null) {
      return (A) this;
    }
    if (map != null) {
      for (Object key : map.keySet()) {
        if (this.allocatable != null) {
          this.allocatable.remove(key);
        }
      }
    }
    return (A) this;
  }

  public java.util.Map getAllocatable() {
    return this.allocatable;
  }

  public  A withAllocatable(
      java.util.Map allocatable) {
    if (allocatable == null) {
      this.allocatable = null;
    } else {
      this.allocatable = new java.util.LinkedHashMap(allocatable);
    }
    return (A) this;
  }

  public java.lang.Boolean hasAllocatable() {
    return this.allocatable != null;
  }

  public A addToCapacity(java.lang.String key, io.kubernetes.client.custom.Quantity value) {
    if (this.capacity == null && key != null && value != null) {
      this.capacity = new java.util.LinkedHashMap();
    }
    if (key != null && value != null) {
      this.capacity.put(key, value);
    }
    return (A) this;
  }

  public A addToCapacity(
      java.util.Map map) {
    if (this.capacity == null && map != null) {
      this.capacity = new java.util.LinkedHashMap();
    }
    if (map != null) {
      this.capacity.putAll(map);
    }
    return (A) this;
  }

  public A removeFromCapacity(java.lang.String key) {
    if (this.capacity == null) {
      return (A) this;
    }
    if (key != null && this.capacity != null) {
      this.capacity.remove(key);
    }
    return (A) this;
  }

  public A removeFromCapacity(
      java.util.Map map) {
    if (this.capacity == null) {
      return (A) this;
    }
    if (map != null) {
      for (Object key : map.keySet()) {
        if (this.capacity != null) {
          this.capacity.remove(key);
        }
      }
    }
    return (A) this;
  }

  public java.util.Map getCapacity() {
    return this.capacity;
  }

  public  A withCapacity(
      java.util.Map capacity) {
    if (capacity == null) {
      this.capacity = null;
    } else {
      this.capacity = new java.util.LinkedHashMap(capacity);
    }
    return (A) this;
  }

  public java.lang.Boolean hasCapacity() {
    return this.capacity != null;
  }

  public A addToConditions(
      java.lang.Integer index, io.kubernetes.client.openapi.models.V1NodeCondition item) {
    if (this.conditions == null) {
      this.conditions = new java.util.ArrayList();
    }
    io.kubernetes.client.openapi.models.V1NodeConditionBuilder builder =
        new io.kubernetes.client.openapi.models.V1NodeConditionBuilder(item);
    _visitables
        .get("conditions")
        .add(index >= 0 ? index : _visitables.get("conditions").size(), builder);
    this.conditions.add(index >= 0 ? index : conditions.size(), builder);
    return (A) this;
  }

  public A setToConditions(
      java.lang.Integer index, io.kubernetes.client.openapi.models.V1NodeCondition item) {
    if (this.conditions == null) {
      this.conditions =
          new java.util.ArrayList();
    }
    io.kubernetes.client.openapi.models.V1NodeConditionBuilder builder =
        new io.kubernetes.client.openapi.models.V1NodeConditionBuilder(item);
    if (index < 0 || index >= _visitables.get("conditions").size()) {
      _visitables.get("conditions").add(builder);
    } else {
      _visitables.get("conditions").set(index, builder);
    }
    if (index < 0 || index >= conditions.size()) {
      conditions.add(builder);
    } else {
      conditions.set(index, builder);
    }
    return (A) this;
  }

  public A addToConditions(io.kubernetes.client.openapi.models.V1NodeCondition... items) {
    if (this.conditions == null) {
      this.conditions =
          new java.util.ArrayList();
    }
    for (io.kubernetes.client.openapi.models.V1NodeCondition item : items) {
      io.kubernetes.client.openapi.models.V1NodeConditionBuilder builder =
          new io.kubernetes.client.openapi.models.V1NodeConditionBuilder(item);
      _visitables.get("conditions").add(builder);
      this.conditions.add(builder);
    }
    return (A) this;
  }

  public A addAllToConditions(
      java.util.Collection items) {
    if (this.conditions == null) {
      this.conditions =
          new java.util.ArrayList();
    }
    for (io.kubernetes.client.openapi.models.V1NodeCondition item : items) {
      io.kubernetes.client.openapi.models.V1NodeConditionBuilder builder =
          new io.kubernetes.client.openapi.models.V1NodeConditionBuilder(item);
      _visitables.get("conditions").add(builder);
      this.conditions.add(builder);
    }
    return (A) this;
  }

  public A removeFromConditions(io.kubernetes.client.openapi.models.V1NodeCondition... items) {
    for (io.kubernetes.client.openapi.models.V1NodeCondition item : items) {
      io.kubernetes.client.openapi.models.V1NodeConditionBuilder builder =
          new io.kubernetes.client.openapi.models.V1NodeConditionBuilder(item);
      _visitables.get("conditions").remove(builder);
      if (this.conditions != null) {
        this.conditions.remove(builder);
      }
    }
    return (A) this;
  }

  public A removeAllFromConditions(
      java.util.Collection items) {
    for (io.kubernetes.client.openapi.models.V1NodeCondition item : items) {
      io.kubernetes.client.openapi.models.V1NodeConditionBuilder builder =
          new io.kubernetes.client.openapi.models.V1NodeConditionBuilder(item);
      _visitables.get("conditions").remove(builder);
      if (this.conditions != null) {
        this.conditions.remove(builder);
      }
    }
    return (A) this;
  }

  public A removeMatchingFromConditions(
      java.util.function.Predicate
          predicate) {
    if (conditions == null) return (A) this;
    final Iterator each =
        conditions.iterator();
    final List visitables = _visitables.get("conditions");
    while (each.hasNext()) {
      io.kubernetes.client.openapi.models.V1NodeConditionBuilder builder = each.next();
      if (predicate.test(builder)) {
        visitables.remove(builder);
        each.remove();
      }
    }
    return (A) this;
  }

  /**
   * This method has been deprecated, please use method buildConditions instead.
   *
   * @return The buildable object.
   */
  @java.lang.Deprecated
  public java.util.List getConditions() {
    return conditions != null ? build(conditions) : null;
  }

  public java.util.List buildConditions() {
    return conditions != null ? build(conditions) : null;
  }

  public io.kubernetes.client.openapi.models.V1NodeCondition buildCondition(
      java.lang.Integer index) {
    return this.conditions.get(index).build();
  }

  public io.kubernetes.client.openapi.models.V1NodeCondition buildFirstCondition() {
    return this.conditions.get(0).build();
  }

  public io.kubernetes.client.openapi.models.V1NodeCondition buildLastCondition() {
    return this.conditions.get(conditions.size() - 1).build();
  }

  public io.kubernetes.client.openapi.models.V1NodeCondition buildMatchingCondition(
      java.util.function.Predicate
          predicate) {
    for (io.kubernetes.client.openapi.models.V1NodeConditionBuilder item : conditions) {
      if (predicate.test(item)) {
        return item.build();
      }
    }
    return null;
  }

  public java.lang.Boolean hasMatchingCondition(
      java.util.function.Predicate
          predicate) {
    for (io.kubernetes.client.openapi.models.V1NodeConditionBuilder item : conditions) {
      if (predicate.test(item)) {
        return true;
      }
    }
    return false;
  }

  public A withConditions(
      java.util.List conditions) {
    if (this.conditions != null) {
      _visitables.get("conditions").removeAll(this.conditions);
    }
    if (conditions != null) {
      this.conditions = new java.util.ArrayList();
      for (io.kubernetes.client.openapi.models.V1NodeCondition item : conditions) {
        this.addToConditions(item);
      }
    } else {
      this.conditions = null;
    }
    return (A) this;
  }

  public A withConditions(io.kubernetes.client.openapi.models.V1NodeCondition... conditions) {
    if (this.conditions != null) {
      this.conditions.clear();
    }
    if (conditions != null) {
      for (io.kubernetes.client.openapi.models.V1NodeCondition item : conditions) {
        this.addToConditions(item);
      }
    }
    return (A) this;
  }

  public java.lang.Boolean hasConditions() {
    return conditions != null && !conditions.isEmpty();
  }

  public V1NodeStatusFluent.ConditionsNested addNewCondition() {
    return new V1NodeStatusFluentImpl.ConditionsNestedImpl();
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConditionsNested
      addNewConditionLike(io.kubernetes.client.openapi.models.V1NodeCondition item) {
    return new io.kubernetes.client.openapi.models.V1NodeStatusFluentImpl.ConditionsNestedImpl(
        -1, item);
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConditionsNested
      setNewConditionLike(
          java.lang.Integer index, io.kubernetes.client.openapi.models.V1NodeCondition item) {
    return new io.kubernetes.client.openapi.models.V1NodeStatusFluentImpl.ConditionsNestedImpl(
        index, item);
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConditionsNested editCondition(
      java.lang.Integer index) {
    if (conditions.size() <= index)
      throw new RuntimeException("Can't edit conditions. Index exceeds size.");
    return setNewConditionLike(index, buildCondition(index));
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConditionsNested
      editFirstCondition() {
    if (conditions.size() == 0)
      throw new RuntimeException("Can't edit first conditions. The list is empty.");
    return setNewConditionLike(0, buildCondition(0));
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConditionsNested
      editLastCondition() {
    int index = conditions.size() - 1;
    if (index < 0) throw new RuntimeException("Can't edit last conditions. The list is empty.");
    return setNewConditionLike(index, buildCondition(index));
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConditionsNested
      editMatchingCondition(
          java.util.function.Predicate
              predicate) {
    int index = -1;
    for (int i = 0; i < conditions.size(); i++) {
      if (predicate.test(conditions.get(i))) {
        index = i;
        break;
      }
    }
    if (index < 0) throw new RuntimeException("Can't edit matching conditions. No match found.");
    return setNewConditionLike(index, buildCondition(index));
  }

  /**
   * This method has been deprecated, please use method buildConfig instead.
   *
   * @return The buildable object.
   */
  @java.lang.Deprecated
  public V1NodeConfigStatus getConfig() {
    return this.config != null ? this.config.build() : null;
  }

  public io.kubernetes.client.openapi.models.V1NodeConfigStatus buildConfig() {
    return this.config != null ? this.config.build() : null;
  }

  public A withConfig(io.kubernetes.client.openapi.models.V1NodeConfigStatus config) {
    _visitables.get("config").remove(this.config);
    if (config != null) {
      this.config = new io.kubernetes.client.openapi.models.V1NodeConfigStatusBuilder(config);
      _visitables.get("config").add(this.config);
    }
    return (A) this;
  }

  public java.lang.Boolean hasConfig() {
    return this.config != null;
  }

  public V1NodeStatusFluent.ConfigNested withNewConfig() {
    return new V1NodeStatusFluentImpl.ConfigNestedImpl();
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConfigNested withNewConfigLike(
      io.kubernetes.client.openapi.models.V1NodeConfigStatus item) {
    return new io.kubernetes.client.openapi.models.V1NodeStatusFluentImpl.ConfigNestedImpl(item);
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConfigNested editConfig() {
    return withNewConfigLike(getConfig());
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConfigNested editOrNewConfig() {
    return withNewConfigLike(
        getConfig() != null
            ? getConfig()
            : new io.kubernetes.client.openapi.models.V1NodeConfigStatusBuilder().build());
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConfigNested editOrNewConfigLike(
      io.kubernetes.client.openapi.models.V1NodeConfigStatus item) {
    return withNewConfigLike(getConfig() != null ? getConfig() : item);
  }

  /**
   * This method has been deprecated, please use method buildDaemonEndpoints instead.
   *
   * @return The buildable object.
   */
  @java.lang.Deprecated
  public io.kubernetes.client.openapi.models.V1NodeDaemonEndpoints getDaemonEndpoints() {
    return this.daemonEndpoints != null ? this.daemonEndpoints.build() : null;
  }

  public io.kubernetes.client.openapi.models.V1NodeDaemonEndpoints buildDaemonEndpoints() {
    return this.daemonEndpoints != null ? this.daemonEndpoints.build() : null;
  }

  public A withDaemonEndpoints(
      io.kubernetes.client.openapi.models.V1NodeDaemonEndpoints daemonEndpoints) {
    _visitables.get("daemonEndpoints").remove(this.daemonEndpoints);
    if (daemonEndpoints != null) {
      this.daemonEndpoints = new V1NodeDaemonEndpointsBuilder(daemonEndpoints);
      _visitables.get("daemonEndpoints").add(this.daemonEndpoints);
    }
    return (A) this;
  }

  public java.lang.Boolean hasDaemonEndpoints() {
    return this.daemonEndpoints != null;
  }

  public V1NodeStatusFluent.DaemonEndpointsNested withNewDaemonEndpoints() {
    return new V1NodeStatusFluentImpl.DaemonEndpointsNestedImpl();
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.DaemonEndpointsNested
      withNewDaemonEndpointsLike(io.kubernetes.client.openapi.models.V1NodeDaemonEndpoints item) {
    return new io.kubernetes.client.openapi.models.V1NodeStatusFluentImpl.DaemonEndpointsNestedImpl(
        item);
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.DaemonEndpointsNested
      editDaemonEndpoints() {
    return withNewDaemonEndpointsLike(getDaemonEndpoints());
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.DaemonEndpointsNested
      editOrNewDaemonEndpoints() {
    return withNewDaemonEndpointsLike(
        getDaemonEndpoints() != null
            ? getDaemonEndpoints()
            : new io.kubernetes.client.openapi.models.V1NodeDaemonEndpointsBuilder().build());
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.DaemonEndpointsNested
      editOrNewDaemonEndpointsLike(io.kubernetes.client.openapi.models.V1NodeDaemonEndpoints item) {
    return withNewDaemonEndpointsLike(getDaemonEndpoints() != null ? getDaemonEndpoints() : item);
  }

  public A addToImages(java.lang.Integer index, V1ContainerImage item) {
    if (this.images == null) {
      this.images =
          new java.util.ArrayList();
    }
    io.kubernetes.client.openapi.models.V1ContainerImageBuilder builder =
        new io.kubernetes.client.openapi.models.V1ContainerImageBuilder(item);
    _visitables.get("images").add(index >= 0 ? index : _visitables.get("images").size(), builder);
    this.images.add(index >= 0 ? index : images.size(), builder);
    return (A) this;
  }

  public A setToImages(
      java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerImage item) {
    if (this.images == null) {
      this.images =
          new java.util.ArrayList();
    }
    io.kubernetes.client.openapi.models.V1ContainerImageBuilder builder =
        new io.kubernetes.client.openapi.models.V1ContainerImageBuilder(item);
    if (index < 0 || index >= _visitables.get("images").size()) {
      _visitables.get("images").add(builder);
    } else {
      _visitables.get("images").set(index, builder);
    }
    if (index < 0 || index >= images.size()) {
      images.add(builder);
    } else {
      images.set(index, builder);
    }
    return (A) this;
  }

  public A addToImages(io.kubernetes.client.openapi.models.V1ContainerImage... items) {
    if (this.images == null) {
      this.images =
          new java.util.ArrayList();
    }
    for (io.kubernetes.client.openapi.models.V1ContainerImage item : items) {
      io.kubernetes.client.openapi.models.V1ContainerImageBuilder builder =
          new io.kubernetes.client.openapi.models.V1ContainerImageBuilder(item);
      _visitables.get("images").add(builder);
      this.images.add(builder);
    }
    return (A) this;
  }

  public A addAllToImages(
      java.util.Collection items) {
    if (this.images == null) {
      this.images =
          new java.util.ArrayList();
    }
    for (io.kubernetes.client.openapi.models.V1ContainerImage item : items) {
      io.kubernetes.client.openapi.models.V1ContainerImageBuilder builder =
          new io.kubernetes.client.openapi.models.V1ContainerImageBuilder(item);
      _visitables.get("images").add(builder);
      this.images.add(builder);
    }
    return (A) this;
  }

  public A removeFromImages(io.kubernetes.client.openapi.models.V1ContainerImage... items) {
    for (io.kubernetes.client.openapi.models.V1ContainerImage item : items) {
      io.kubernetes.client.openapi.models.V1ContainerImageBuilder builder =
          new io.kubernetes.client.openapi.models.V1ContainerImageBuilder(item);
      _visitables.get("images").remove(builder);
      if (this.images != null) {
        this.images.remove(builder);
      }
    }
    return (A) this;
  }

  public A removeAllFromImages(
      java.util.Collection items) {
    for (io.kubernetes.client.openapi.models.V1ContainerImage item : items) {
      io.kubernetes.client.openapi.models.V1ContainerImageBuilder builder =
          new io.kubernetes.client.openapi.models.V1ContainerImageBuilder(item);
      _visitables.get("images").remove(builder);
      if (this.images != null) {
        this.images.remove(builder);
      }
    }
    return (A) this;
  }

  public A removeMatchingFromImages(
      java.util.function.Predicate
          predicate) {
    if (images == null) return (A) this;
    final Iterator each =
        images.iterator();
    final List visitables = _visitables.get("images");
    while (each.hasNext()) {
      io.kubernetes.client.openapi.models.V1ContainerImageBuilder builder = each.next();
      if (predicate.test(builder)) {
        visitables.remove(builder);
        each.remove();
      }
    }
    return (A) this;
  }

  /**
   * This method has been deprecated, please use method buildImages instead.
   *
   * @return The buildable object.
   */
  @java.lang.Deprecated
  public java.util.List getImages() {
    return images != null ? build(images) : null;
  }

  public java.util.List buildImages() {
    return images != null ? build(images) : null;
  }

  public io.kubernetes.client.openapi.models.V1ContainerImage buildImage(java.lang.Integer index) {
    return this.images.get(index).build();
  }

  public io.kubernetes.client.openapi.models.V1ContainerImage buildFirstImage() {
    return this.images.get(0).build();
  }

  public io.kubernetes.client.openapi.models.V1ContainerImage buildLastImage() {
    return this.images.get(images.size() - 1).build();
  }

  public io.kubernetes.client.openapi.models.V1ContainerImage buildMatchingImage(
      java.util.function.Predicate
          predicate) {
    for (io.kubernetes.client.openapi.models.V1ContainerImageBuilder item : images) {
      if (predicate.test(item)) {
        return item.build();
      }
    }
    return null;
  }

  public java.lang.Boolean hasMatchingImage(
      java.util.function.Predicate
          predicate) {
    for (io.kubernetes.client.openapi.models.V1ContainerImageBuilder item : images) {
      if (predicate.test(item)) {
        return true;
      }
    }
    return false;
  }

  public A withImages(java.util.List images) {
    if (this.images != null) {
      _visitables.get("images").removeAll(this.images);
    }
    if (images != null) {
      this.images = new java.util.ArrayList();
      for (io.kubernetes.client.openapi.models.V1ContainerImage item : images) {
        this.addToImages(item);
      }
    } else {
      this.images = null;
    }
    return (A) this;
  }

  public A withImages(io.kubernetes.client.openapi.models.V1ContainerImage... images) {
    if (this.images != null) {
      this.images.clear();
    }
    if (images != null) {
      for (io.kubernetes.client.openapi.models.V1ContainerImage item : images) {
        this.addToImages(item);
      }
    }
    return (A) this;
  }

  public java.lang.Boolean hasImages() {
    return images != null && !images.isEmpty();
  }

  public V1NodeStatusFluent.ImagesNested addNewImage() {
    return new V1NodeStatusFluentImpl.ImagesNestedImpl();
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ImagesNested addNewImageLike(
      io.kubernetes.client.openapi.models.V1ContainerImage item) {
    return new io.kubernetes.client.openapi.models.V1NodeStatusFluentImpl.ImagesNestedImpl(
        -1, item);
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ImagesNested setNewImageLike(
      java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerImage item) {
    return new io.kubernetes.client.openapi.models.V1NodeStatusFluentImpl.ImagesNestedImpl(
        index, item);
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ImagesNested editImage(
      java.lang.Integer index) {
    if (images.size() <= index)
      throw new RuntimeException("Can't edit images. Index exceeds size.");
    return setNewImageLike(index, buildImage(index));
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ImagesNested editFirstImage() {
    if (images.size() == 0)
      throw new RuntimeException("Can't edit first images. The list is empty.");
    return setNewImageLike(0, buildImage(0));
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ImagesNested editLastImage() {
    int index = images.size() - 1;
    if (index < 0) throw new RuntimeException("Can't edit last images. The list is empty.");
    return setNewImageLike(index, buildImage(index));
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ImagesNested editMatchingImage(
      java.util.function.Predicate
          predicate) {
    int index = -1;
    for (int i = 0; i < images.size(); i++) {
      if (predicate.test(images.get(i))) {
        index = i;
        break;
      }
    }
    if (index < 0) throw new RuntimeException("Can't edit matching images. No match found.");
    return setNewImageLike(index, buildImage(index));
  }

  /**
   * This method has been deprecated, please use method buildNodeInfo instead.
   *
   * @return The buildable object.
   */
  @java.lang.Deprecated
  public V1NodeSystemInfo getNodeInfo() {
    return this.nodeInfo != null ? this.nodeInfo.build() : null;
  }

  public io.kubernetes.client.openapi.models.V1NodeSystemInfo buildNodeInfo() {
    return this.nodeInfo != null ? this.nodeInfo.build() : null;
  }

  public A withNodeInfo(io.kubernetes.client.openapi.models.V1NodeSystemInfo nodeInfo) {
    _visitables.get("nodeInfo").remove(this.nodeInfo);
    if (nodeInfo != null) {
      this.nodeInfo = new io.kubernetes.client.openapi.models.V1NodeSystemInfoBuilder(nodeInfo);
      _visitables.get("nodeInfo").add(this.nodeInfo);
    }
    return (A) this;
  }

  public java.lang.Boolean hasNodeInfo() {
    return this.nodeInfo != null;
  }

  public V1NodeStatusFluent.NodeInfoNested withNewNodeInfo() {
    return new V1NodeStatusFluentImpl.NodeInfoNestedImpl();
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.NodeInfoNested
      withNewNodeInfoLike(io.kubernetes.client.openapi.models.V1NodeSystemInfo item) {
    return new io.kubernetes.client.openapi.models.V1NodeStatusFluentImpl.NodeInfoNestedImpl(item);
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.NodeInfoNested editNodeInfo() {
    return withNewNodeInfoLike(getNodeInfo());
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.NodeInfoNested
      editOrNewNodeInfo() {
    return withNewNodeInfoLike(
        getNodeInfo() != null
            ? getNodeInfo()
            : new io.kubernetes.client.openapi.models.V1NodeSystemInfoBuilder().build());
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.NodeInfoNested
      editOrNewNodeInfoLike(io.kubernetes.client.openapi.models.V1NodeSystemInfo item) {
    return withNewNodeInfoLike(getNodeInfo() != null ? getNodeInfo() : item);
  }

  public java.lang.String getPhase() {
    return this.phase;
  }

  public A withPhase(java.lang.String phase) {
    this.phase = phase;
    return (A) this;
  }

  public java.lang.Boolean hasPhase() {
    return this.phase != null;
  }

  public A addToVolumesAttached(
      java.lang.Integer index, io.kubernetes.client.openapi.models.V1AttachedVolume item) {
    if (this.volumesAttached == null) {
      this.volumesAttached = new java.util.ArrayList();
    }
    io.kubernetes.client.openapi.models.V1AttachedVolumeBuilder builder =
        new io.kubernetes.client.openapi.models.V1AttachedVolumeBuilder(item);
    _visitables
        .get("volumesAttached")
        .add(index >= 0 ? index : _visitables.get("volumesAttached").size(), builder);
    this.volumesAttached.add(index >= 0 ? index : volumesAttached.size(), builder);
    return (A) this;
  }

  public A setToVolumesAttached(
      java.lang.Integer index, io.kubernetes.client.openapi.models.V1AttachedVolume item) {
    if (this.volumesAttached == null) {
      this.volumesAttached =
          new java.util.ArrayList();
    }
    io.kubernetes.client.openapi.models.V1AttachedVolumeBuilder builder =
        new io.kubernetes.client.openapi.models.V1AttachedVolumeBuilder(item);
    if (index < 0 || index >= _visitables.get("volumesAttached").size()) {
      _visitables.get("volumesAttached").add(builder);
    } else {
      _visitables.get("volumesAttached").set(index, builder);
    }
    if (index < 0 || index >= volumesAttached.size()) {
      volumesAttached.add(builder);
    } else {
      volumesAttached.set(index, builder);
    }
    return (A) this;
  }

  public A addToVolumesAttached(io.kubernetes.client.openapi.models.V1AttachedVolume... items) {
    if (this.volumesAttached == null) {
      this.volumesAttached =
          new java.util.ArrayList();
    }
    for (io.kubernetes.client.openapi.models.V1AttachedVolume item : items) {
      io.kubernetes.client.openapi.models.V1AttachedVolumeBuilder builder =
          new io.kubernetes.client.openapi.models.V1AttachedVolumeBuilder(item);
      _visitables.get("volumesAttached").add(builder);
      this.volumesAttached.add(builder);
    }
    return (A) this;
  }

  public A addAllToVolumesAttached(
      java.util.Collection items) {
    if (this.volumesAttached == null) {
      this.volumesAttached =
          new java.util.ArrayList();
    }
    for (io.kubernetes.client.openapi.models.V1AttachedVolume item : items) {
      io.kubernetes.client.openapi.models.V1AttachedVolumeBuilder builder =
          new io.kubernetes.client.openapi.models.V1AttachedVolumeBuilder(item);
      _visitables.get("volumesAttached").add(builder);
      this.volumesAttached.add(builder);
    }
    return (A) this;
  }

  public A removeFromVolumesAttached(
      io.kubernetes.client.openapi.models.V1AttachedVolume... items) {
    for (io.kubernetes.client.openapi.models.V1AttachedVolume item : items) {
      io.kubernetes.client.openapi.models.V1AttachedVolumeBuilder builder =
          new io.kubernetes.client.openapi.models.V1AttachedVolumeBuilder(item);
      _visitables.get("volumesAttached").remove(builder);
      if (this.volumesAttached != null) {
        this.volumesAttached.remove(builder);
      }
    }
    return (A) this;
  }

  public A removeAllFromVolumesAttached(
      java.util.Collection items) {
    for (io.kubernetes.client.openapi.models.V1AttachedVolume item : items) {
      io.kubernetes.client.openapi.models.V1AttachedVolumeBuilder builder =
          new io.kubernetes.client.openapi.models.V1AttachedVolumeBuilder(item);
      _visitables.get("volumesAttached").remove(builder);
      if (this.volumesAttached != null) {
        this.volumesAttached.remove(builder);
      }
    }
    return (A) this;
  }

  public A removeMatchingFromVolumesAttached(
      java.util.function.Predicate
          predicate) {
    if (volumesAttached == null) return (A) this;
    final Iterator each =
        volumesAttached.iterator();
    final List visitables = _visitables.get("volumesAttached");
    while (each.hasNext()) {
      io.kubernetes.client.openapi.models.V1AttachedVolumeBuilder builder = each.next();
      if (predicate.test(builder)) {
        visitables.remove(builder);
        each.remove();
      }
    }
    return (A) this;
  }

  /**
   * This method has been deprecated, please use method buildVolumesAttached instead.
   *
   * @return The buildable object.
   */
  @java.lang.Deprecated
  public java.util.List getVolumesAttached() {
    return volumesAttached != null ? build(volumesAttached) : null;
  }

  public java.util.List
      buildVolumesAttached() {
    return volumesAttached != null ? build(volumesAttached) : null;
  }

  public io.kubernetes.client.openapi.models.V1AttachedVolume buildVolumesAttached(
      java.lang.Integer index) {
    return this.volumesAttached.get(index).build();
  }

  public io.kubernetes.client.openapi.models.V1AttachedVolume buildFirstVolumesAttached() {
    return this.volumesAttached.get(0).build();
  }

  public io.kubernetes.client.openapi.models.V1AttachedVolume buildLastVolumesAttached() {
    return this.volumesAttached.get(volumesAttached.size() - 1).build();
  }

  public io.kubernetes.client.openapi.models.V1AttachedVolume buildMatchingVolumesAttached(
      java.util.function.Predicate
          predicate) {
    for (io.kubernetes.client.openapi.models.V1AttachedVolumeBuilder item : volumesAttached) {
      if (predicate.test(item)) {
        return item.build();
      }
    }
    return null;
  }

  public java.lang.Boolean hasMatchingVolumesAttached(
      java.util.function.Predicate
          predicate) {
    for (io.kubernetes.client.openapi.models.V1AttachedVolumeBuilder item : volumesAttached) {
      if (predicate.test(item)) {
        return true;
      }
    }
    return false;
  }

  public A withVolumesAttached(
      java.util.List volumesAttached) {
    if (this.volumesAttached != null) {
      _visitables.get("volumesAttached").removeAll(this.volumesAttached);
    }
    if (volumesAttached != null) {
      this.volumesAttached = new java.util.ArrayList();
      for (io.kubernetes.client.openapi.models.V1AttachedVolume item : volumesAttached) {
        this.addToVolumesAttached(item);
      }
    } else {
      this.volumesAttached = null;
    }
    return (A) this;
  }

  public A withVolumesAttached(
      io.kubernetes.client.openapi.models.V1AttachedVolume... volumesAttached) {
    if (this.volumesAttached != null) {
      this.volumesAttached.clear();
    }
    if (volumesAttached != null) {
      for (io.kubernetes.client.openapi.models.V1AttachedVolume item : volumesAttached) {
        this.addToVolumesAttached(item);
      }
    }
    return (A) this;
  }

  public java.lang.Boolean hasVolumesAttached() {
    return volumesAttached != null && !volumesAttached.isEmpty();
  }

  public V1NodeStatusFluent.VolumesAttachedNested addNewVolumesAttached() {
    return new V1NodeStatusFluentImpl.VolumesAttachedNestedImpl();
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.VolumesAttachedNested
      addNewVolumesAttachedLike(io.kubernetes.client.openapi.models.V1AttachedVolume item) {
    return new io.kubernetes.client.openapi.models.V1NodeStatusFluentImpl.VolumesAttachedNestedImpl(
        -1, item);
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.VolumesAttachedNested
      setNewVolumesAttachedLike(
          java.lang.Integer index, io.kubernetes.client.openapi.models.V1AttachedVolume item) {
    return new io.kubernetes.client.openapi.models.V1NodeStatusFluentImpl.VolumesAttachedNestedImpl(
        index, item);
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.VolumesAttachedNested
      editVolumesAttached(java.lang.Integer index) {
    if (volumesAttached.size() <= index)
      throw new RuntimeException("Can't edit volumesAttached. Index exceeds size.");
    return setNewVolumesAttachedLike(index, buildVolumesAttached(index));
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.VolumesAttachedNested
      editFirstVolumesAttached() {
    if (volumesAttached.size() == 0)
      throw new RuntimeException("Can't edit first volumesAttached. The list is empty.");
    return setNewVolumesAttachedLike(0, buildVolumesAttached(0));
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.VolumesAttachedNested
      editLastVolumesAttached() {
    int index = volumesAttached.size() - 1;
    if (index < 0)
      throw new RuntimeException("Can't edit last volumesAttached. The list is empty.");
    return setNewVolumesAttachedLike(index, buildVolumesAttached(index));
  }

  public io.kubernetes.client.openapi.models.V1NodeStatusFluent.VolumesAttachedNested
      editMatchingVolumesAttached(
          java.util.function.Predicate
              predicate) {
    int index = -1;
    for (int i = 0; i < volumesAttached.size(); i++) {
      if (predicate.test(volumesAttached.get(i))) {
        index = i;
        break;
      }
    }
    if (index < 0)
      throw new RuntimeException("Can't edit matching volumesAttached. No match found.");
    return setNewVolumesAttachedLike(index, buildVolumesAttached(index));
  }

  public A addToVolumesInUse(java.lang.Integer index, java.lang.String item) {
    if (this.volumesInUse == null) {
      this.volumesInUse = new java.util.ArrayList();
    }
    this.volumesInUse.add(index, item);
    return (A) this;
  }

  public A setToVolumesInUse(java.lang.Integer index, java.lang.String item) {
    if (this.volumesInUse == null) {
      this.volumesInUse = new java.util.ArrayList();
    }
    this.volumesInUse.set(index, item);
    return (A) this;
  }

  public A addToVolumesInUse(java.lang.String... items) {
    if (this.volumesInUse == null) {
      this.volumesInUse = new java.util.ArrayList();
    }
    for (java.lang.String item : items) {
      this.volumesInUse.add(item);
    }
    return (A) this;
  }

  public A addAllToVolumesInUse(java.util.Collection items) {
    if (this.volumesInUse == null) {
      this.volumesInUse = new java.util.ArrayList();
    }
    for (java.lang.String item : items) {
      this.volumesInUse.add(item);
    }
    return (A) this;
  }

  public A removeFromVolumesInUse(java.lang.String... items) {
    for (java.lang.String item : items) {
      if (this.volumesInUse != null) {
        this.volumesInUse.remove(item);
      }
    }
    return (A) this;
  }

  public A removeAllFromVolumesInUse(java.util.Collection items) {
    for (java.lang.String item : items) {
      if (this.volumesInUse != null) {
        this.volumesInUse.remove(item);
      }
    }
    return (A) this;
  }

  public java.util.List getVolumesInUse() {
    return this.volumesInUse;
  }

  public java.lang.String getVolumesInUse(java.lang.Integer index) {
    return this.volumesInUse.get(index);
  }

  public java.lang.String getFirstVolumesInUse() {
    return this.volumesInUse.get(0);
  }

  public java.lang.String getLastVolumesInUse() {
    return this.volumesInUse.get(volumesInUse.size() - 1);
  }

  public java.lang.String getMatchingVolumesInUse(
      java.util.function.Predicate predicate) {
    for (java.lang.String item : volumesInUse) {
      if (predicate.test(item)) {
        return item;
      }
    }
    return null;
  }

  public java.lang.Boolean hasMatchingVolumesInUse(
      java.util.function.Predicate predicate) {
    for (java.lang.String item : volumesInUse) {
      if (predicate.test(item)) {
        return true;
      }
    }
    return false;
  }

  public A withVolumesInUse(java.util.List volumesInUse) {
    if (volumesInUse != null) {
      this.volumesInUse = new java.util.ArrayList();
      for (java.lang.String item : volumesInUse) {
        this.addToVolumesInUse(item);
      }
    } else {
      this.volumesInUse = null;
    }
    return (A) this;
  }

  public A withVolumesInUse(java.lang.String... volumesInUse) {
    if (this.volumesInUse != null) {
      this.volumesInUse.clear();
    }
    if (volumesInUse != null) {
      for (java.lang.String item : volumesInUse) {
        this.addToVolumesInUse(item);
      }
    }
    return (A) this;
  }

  public java.lang.Boolean hasVolumesInUse() {
    return volumesInUse != null && !volumesInUse.isEmpty();
  }

  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    V1NodeStatusFluentImpl that = (V1NodeStatusFluentImpl) o;
    if (addresses != null ? !addresses.equals(that.addresses) : that.addresses != null)
      return false;
    if (allocatable != null ? !allocatable.equals(that.allocatable) : that.allocatable != null)
      return false;
    if (capacity != null ? !capacity.equals(that.capacity) : that.capacity != null) return false;
    if (conditions != null ? !conditions.equals(that.conditions) : that.conditions != null)
      return false;
    if (config != null ? !config.equals(that.config) : that.config != null) return false;
    if (daemonEndpoints != null
        ? !daemonEndpoints.equals(that.daemonEndpoints)
        : that.daemonEndpoints != null) return false;
    if (images != null ? !images.equals(that.images) : that.images != null) return false;
    if (nodeInfo != null ? !nodeInfo.equals(that.nodeInfo) : that.nodeInfo != null) return false;
    if (phase != null ? !phase.equals(that.phase) : that.phase != null) return false;
    if (volumesAttached != null
        ? !volumesAttached.equals(that.volumesAttached)
        : that.volumesAttached != null) return false;
    if (volumesInUse != null ? !volumesInUse.equals(that.volumesInUse) : that.volumesInUse != null)
      return false;
    return true;
  }

  public int hashCode() {
    return java.util.Objects.hash(
        addresses,
        allocatable,
        capacity,
        conditions,
        config,
        daemonEndpoints,
        images,
        nodeInfo,
        phase,
        volumesAttached,
        volumesInUse,
        super.hashCode());
  }

  public java.lang.String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("{");
    if (addresses != null && !addresses.isEmpty()) {
      sb.append("addresses:");
      sb.append(addresses + ",");
    }
    if (allocatable != null && !allocatable.isEmpty()) {
      sb.append("allocatable:");
      sb.append(allocatable + ",");
    }
    if (capacity != null && !capacity.isEmpty()) {
      sb.append("capacity:");
      sb.append(capacity + ",");
    }
    if (conditions != null && !conditions.isEmpty()) {
      sb.append("conditions:");
      sb.append(conditions + ",");
    }
    if (config != null) {
      sb.append("config:");
      sb.append(config + ",");
    }
    if (daemonEndpoints != null) {
      sb.append("daemonEndpoints:");
      sb.append(daemonEndpoints + ",");
    }
    if (images != null && !images.isEmpty()) {
      sb.append("images:");
      sb.append(images + ",");
    }
    if (nodeInfo != null) {
      sb.append("nodeInfo:");
      sb.append(nodeInfo + ",");
    }
    if (phase != null) {
      sb.append("phase:");
      sb.append(phase + ",");
    }
    if (volumesAttached != null && !volumesAttached.isEmpty()) {
      sb.append("volumesAttached:");
      sb.append(volumesAttached + ",");
    }
    if (volumesInUse != null && !volumesInUse.isEmpty()) {
      sb.append("volumesInUse:");
      sb.append(volumesInUse);
    }
    sb.append("}");
    return sb.toString();
  }

  class AddressesNestedImpl
      extends V1NodeAddressFluentImpl>
      implements io.kubernetes.client.openapi.models.V1NodeStatusFluent.AddressesNested,
          Nested {
    AddressesNestedImpl(java.lang.Integer index, V1NodeAddress item) {
      this.index = index;
      this.builder = new V1NodeAddressBuilder(this, item);
    }

    AddressesNestedImpl() {
      this.index = -1;
      this.builder = new io.kubernetes.client.openapi.models.V1NodeAddressBuilder(this);
    }

    io.kubernetes.client.openapi.models.V1NodeAddressBuilder builder;
    java.lang.Integer index;

    public N and() {
      return (N) V1NodeStatusFluentImpl.this.setToAddresses(index, builder.build());
    }

    public N endAddress() {
      return and();
    }
  }

  class ConditionsNestedImpl
      extends V1NodeConditionFluentImpl>
      implements io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConditionsNested,
          io.kubernetes.client.fluent.Nested {
    ConditionsNestedImpl(java.lang.Integer index, V1NodeCondition item) {
      this.index = index;
      this.builder = new V1NodeConditionBuilder(this, item);
    }

    ConditionsNestedImpl() {
      this.index = -1;
      this.builder = new io.kubernetes.client.openapi.models.V1NodeConditionBuilder(this);
    }

    io.kubernetes.client.openapi.models.V1NodeConditionBuilder builder;
    java.lang.Integer index;

    public N and() {
      return (N) V1NodeStatusFluentImpl.this.setToConditions(index, builder.build());
    }

    public N endCondition() {
      return and();
    }
  }

  class ConfigNestedImpl extends V1NodeConfigStatusFluentImpl>
      implements io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConfigNested,
          io.kubernetes.client.fluent.Nested {
    ConfigNestedImpl(V1NodeConfigStatus item) {
      this.builder = new V1NodeConfigStatusBuilder(this, item);
    }

    ConfigNestedImpl() {
      this.builder = new io.kubernetes.client.openapi.models.V1NodeConfigStatusBuilder(this);
    }

    io.kubernetes.client.openapi.models.V1NodeConfigStatusBuilder builder;

    public N and() {
      return (N) V1NodeStatusFluentImpl.this.withConfig(builder.build());
    }

    public N endConfig() {
      return and();
    }
  }

  class DaemonEndpointsNestedImpl
      extends V1NodeDaemonEndpointsFluentImpl>
      implements io.kubernetes.client.openapi.models.V1NodeStatusFluent.DaemonEndpointsNested,
          io.kubernetes.client.fluent.Nested {
    DaemonEndpointsNestedImpl(io.kubernetes.client.openapi.models.V1NodeDaemonEndpoints item) {
      this.builder = new V1NodeDaemonEndpointsBuilder(this, item);
    }

    DaemonEndpointsNestedImpl() {
      this.builder = new io.kubernetes.client.openapi.models.V1NodeDaemonEndpointsBuilder(this);
    }

    io.kubernetes.client.openapi.models.V1NodeDaemonEndpointsBuilder builder;

    public N and() {
      return (N) V1NodeStatusFluentImpl.this.withDaemonEndpoints(builder.build());
    }

    public N endDaemonEndpoints() {
      return and();
    }
  }

  class ImagesNestedImpl extends V1ContainerImageFluentImpl>
      implements io.kubernetes.client.openapi.models.V1NodeStatusFluent.ImagesNested,
          io.kubernetes.client.fluent.Nested {
    ImagesNestedImpl(java.lang.Integer index, V1ContainerImage item) {
      this.index = index;
      this.builder = new V1ContainerImageBuilder(this, item);
    }

    ImagesNestedImpl() {
      this.index = -1;
      this.builder = new io.kubernetes.client.openapi.models.V1ContainerImageBuilder(this);
    }

    io.kubernetes.client.openapi.models.V1ContainerImageBuilder builder;
    java.lang.Integer index;

    public N and() {
      return (N) V1NodeStatusFluentImpl.this.setToImages(index, builder.build());
    }

    public N endImage() {
      return and();
    }
  }

  class NodeInfoNestedImpl
      extends V1NodeSystemInfoFluentImpl>
      implements io.kubernetes.client.openapi.models.V1NodeStatusFluent.NodeInfoNested,
          io.kubernetes.client.fluent.Nested {
    NodeInfoNestedImpl(V1NodeSystemInfo item) {
      this.builder = new V1NodeSystemInfoBuilder(this, item);
    }

    NodeInfoNestedImpl() {
      this.builder = new io.kubernetes.client.openapi.models.V1NodeSystemInfoBuilder(this);
    }

    io.kubernetes.client.openapi.models.V1NodeSystemInfoBuilder builder;

    public N and() {
      return (N) V1NodeStatusFluentImpl.this.withNodeInfo(builder.build());
    }

    public N endNodeInfo() {
      return and();
    }
  }

  class VolumesAttachedNestedImpl
      extends V1AttachedVolumeFluentImpl>
      implements io.kubernetes.client.openapi.models.V1NodeStatusFluent.VolumesAttachedNested,
          io.kubernetes.client.fluent.Nested {
    VolumesAttachedNestedImpl(java.lang.Integer index, V1AttachedVolume item) {
      this.index = index;
      this.builder = new V1AttachedVolumeBuilder(this, item);
    }

    VolumesAttachedNestedImpl() {
      this.index = -1;
      this.builder = new io.kubernetes.client.openapi.models.V1AttachedVolumeBuilder(this);
    }

    io.kubernetes.client.openapi.models.V1AttachedVolumeBuilder builder;
    java.lang.Integer index;

    public N and() {
      return (N) V1NodeStatusFluentImpl.this.setToVolumesAttached(index, builder.build());
    }

    public N endVolumesAttached() {
      return and();
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy