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

annotations.io.alauda.kubernetes.api.model.NodeStatusFluentImpl Maven / Gradle / Ivy

There is a newer version: 0.2.12
Show newest version
package io.alauda.kubernetes.api.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.util.ArrayList;
import java.lang.String;
import io.alauda.kubernetes.api.builder.Predicate;
import java.util.LinkedHashMap;
import io.alauda.kubernetes.api.builder.BaseFluent;
import java.util.List;
import java.lang.Boolean;
import javax.validation.Valid;
import java.util.Collection;
import java.lang.Object;
import java.util.Map;
import io.alauda.kubernetes.api.builder.Nested;
import java.lang.Deprecated;

public class NodeStatusFluentImpl> extends io.alauda.kubernetes.api.builder.BaseFluent implements NodeStatusFluent{

    private List addresses =  new ArrayList();
    private Map allocatable = new LinkedHashMap();
    private Map capacity = new LinkedHashMap();
    private List conditions =  new ArrayList();
    private NodeDaemonEndpointsBuilder daemonEndpoints;
    private List images =  new ArrayList();
    private NodeSystemInfoBuilder nodeInfo;
    private String phase;
    private List volumesAttached =  new ArrayList();
    private List volumesInUse = new ArrayList();

    public NodeStatusFluentImpl(){
    }
    public NodeStatusFluentImpl(NodeStatus instance){
            this.withAddresses(instance.getAddresses()); 
            this.withAllocatable(instance.getAllocatable()); 
            this.withCapacity(instance.getCapacity()); 
            this.withConditions(instance.getConditions()); 
            this.withDaemonEndpoints(instance.getDaemonEndpoints()); 
            this.withImages(instance.getImages()); 
            this.withNodeInfo(instance.getNodeInfo()); 
            this.withPhase(instance.getPhase()); 
            this.withVolumesAttached(instance.getVolumesAttached()); 
            this.withVolumesInUse(instance.getVolumesInUse()); 
    }

    public A addToAddresses(int index,NodeAddress item){
            NodeAddressBuilder builder = new NodeAddressBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.addresses.add(index >= 0 ? index : addresses.size(), builder); return (A)this;
    }

    public A setToAddresses(int index,NodeAddress item){
            NodeAddressBuilder builder = new NodeAddressBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= addresses.size()) { addresses.add(builder); } else { addresses.set(index, builder);}
             return (A)this;
    }

    public A addToAddresses(NodeAddress... items){
            for (NodeAddress item : items) {NodeAddressBuilder builder = new NodeAddressBuilder(item);_visitables.add(builder);this.addresses.add(builder);} return (A)this;
    }

    public A addAllToAddresses(Collection items){
            for (NodeAddress item : items) {NodeAddressBuilder builder = new NodeAddressBuilder(item);_visitables.add(builder);this.addresses.add(builder);} return (A)this;
    }

    public A removeFromAddresses(NodeAddress... items){
            for (NodeAddress item : items) {NodeAddressBuilder builder = new NodeAddressBuilder(item);_visitables.remove(builder);this.addresses.remove(builder);} return (A)this;
    }

    public A removeAllFromAddresses(Collection items){
            for (NodeAddress item : items) {NodeAddressBuilder builder = new NodeAddressBuilder(item);_visitables.remove(builder);this.addresses.remove(builder);} return (A)this;
    }

    
/**
 * This method has been deprecated, please use method buildAddresses instead.
 */
@Deprecated public List getAddresses(){
            return build(addresses);
    }

    public List buildAddresses(){
            return build(addresses);
    }

    public NodeAddress buildAddress(int index){
            return this.addresses.get(index).build();
    }

    public NodeAddress buildFirstAddress(){
            return this.addresses.get(0).build();
    }

    public NodeAddress buildLastAddress(){
            return this.addresses.get(addresses.size() - 1).build();
    }

    public NodeAddress buildMatchingAddress(io.alauda.kubernetes.api.builder.Predicate predicate){
            for (NodeAddressBuilder item: addresses) { if(predicate.apply(item)){return item.build();} } return null;
    }

    public A withAddresses(List addresses){
            _visitables.removeAll(this.addresses);
            this.addresses.clear();
            if (addresses != null) {for (NodeAddress item : addresses){this.addToAddresses(item);}} return (A) this;
    }

    public A withAddresses(NodeAddress... addresses){
            this.addresses.clear(); if (addresses != null) {for (NodeAddress item :addresses){ this.addToAddresses(item);}} return (A) this;
    }

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

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

    public NodeStatusFluent.AddressesNested addNewAddressLike(NodeAddress item){
            return new AddressesNestedImpl(-1, item);
    }

    public NodeStatusFluent.AddressesNested setNewAddressLike(int index,NodeAddress item){
            return new AddressesNestedImpl(index, item);
    }

    public NodeStatusFluent.AddressesNested editAddress(int index){
            if (addresses.size() <= index) throw new RuntimeException("Can't edit addresses. Index exceeds size.");
            return setNewAddressLike(index, buildAddress(index));
    }

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

    public NodeStatusFluent.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 NodeStatusFluent.AddressesNested editMatchingAddress(io.alauda.kubernetes.api.builder.Predicate predicate){
            int index = -1;
            for (int i=0;i map){
            if(map != null) { this.allocatable.putAll(map);} return (A)this;
    }

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

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

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

    public A withAllocatable(Map allocatable){
            this.allocatable.clear();
            if (allocatable != null) {this.allocatable.putAll(allocatable);} return (A) this;
    }

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

    public A addToCapacity(String key,Quantity value){
            if(key != null && value != null) {this.capacity.put(key, value);} return (A)this;
    }

    public A addToCapacity(Map map){
            if(map != null) { this.capacity.putAll(map);} return (A)this;
    }

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

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

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

    public A withCapacity(Map capacity){
            this.capacity.clear();
            if (capacity != null) {this.capacity.putAll(capacity);} return (A) this;
    }

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

    public A addToConditions(int index,NodeCondition item){
            NodeConditionBuilder builder = new NodeConditionBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.conditions.add(index >= 0 ? index : conditions.size(), builder); return (A)this;
    }

    public A setToConditions(int index,NodeCondition item){
            NodeConditionBuilder builder = new NodeConditionBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= conditions.size()) { conditions.add(builder); } else { conditions.set(index, builder);}
             return (A)this;
    }

    public A addToConditions(NodeCondition... items){
            for (NodeCondition item : items) {NodeConditionBuilder builder = new NodeConditionBuilder(item);_visitables.add(builder);this.conditions.add(builder);} return (A)this;
    }

    public A addAllToConditions(Collection items){
            for (NodeCondition item : items) {NodeConditionBuilder builder = new NodeConditionBuilder(item);_visitables.add(builder);this.conditions.add(builder);} return (A)this;
    }

    public A removeFromConditions(NodeCondition... items){
            for (NodeCondition item : items) {NodeConditionBuilder builder = new NodeConditionBuilder(item);_visitables.remove(builder);this.conditions.remove(builder);} return (A)this;
    }

    public A removeAllFromConditions(Collection items){
            for (NodeCondition item : items) {NodeConditionBuilder builder = new NodeConditionBuilder(item);_visitables.remove(builder);this.conditions.remove(builder);} return (A)this;
    }

    
/**
 * This method has been deprecated, please use method buildConditions instead.
 */
@Deprecated public List getConditions(){
            return build(conditions);
    }

    public List buildConditions(){
            return build(conditions);
    }

    public NodeCondition buildCondition(int index){
            return this.conditions.get(index).build();
    }

    public NodeCondition buildFirstCondition(){
            return this.conditions.get(0).build();
    }

    public NodeCondition buildLastCondition(){
            return this.conditions.get(conditions.size() - 1).build();
    }

    public NodeCondition buildMatchingCondition(io.alauda.kubernetes.api.builder.Predicate predicate){
            for (NodeConditionBuilder item: conditions) { if(predicate.apply(item)){return item.build();} } return null;
    }

    public A withConditions(List conditions){
            _visitables.removeAll(this.conditions);
            this.conditions.clear();
            if (conditions != null) {for (NodeCondition item : conditions){this.addToConditions(item);}} return (A) this;
    }

    public A withConditions(NodeCondition... conditions){
            this.conditions.clear(); if (conditions != null) {for (NodeCondition item :conditions){ this.addToConditions(item);}} return (A) this;
    }

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

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

    public NodeStatusFluent.ConditionsNested addNewConditionLike(NodeCondition item){
            return new ConditionsNestedImpl(-1, item);
    }

    public NodeStatusFluent.ConditionsNested setNewConditionLike(int index,NodeCondition item){
            return new ConditionsNestedImpl(index, item);
    }

    public NodeStatusFluent.ConditionsNested editCondition(int index){
            if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size.");
            return setNewConditionLike(index, buildCondition(index));
    }

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

    public NodeStatusFluent.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 NodeStatusFluent.ConditionsNested editMatchingCondition(io.alauda.kubernetes.api.builder.Predicate predicate){
            int index = -1;
            for (int i=0;i withNewDaemonEndpoints(){
            return new DaemonEndpointsNestedImpl();
    }

    public NodeStatusFluent.DaemonEndpointsNested withNewDaemonEndpointsLike(NodeDaemonEndpoints item){
            return new DaemonEndpointsNestedImpl(item);
    }

    public NodeStatusFluent.DaemonEndpointsNested editDaemonEndpoints(){
            return withNewDaemonEndpointsLike(getDaemonEndpoints());
    }

    public NodeStatusFluent.DaemonEndpointsNested editOrNewDaemonEndpoints(){
            return withNewDaemonEndpointsLike(getDaemonEndpoints() != null ? getDaemonEndpoints(): new NodeDaemonEndpointsBuilder().build());
    }

    public NodeStatusFluent.DaemonEndpointsNested editOrNewDaemonEndpointsLike(NodeDaemonEndpoints item){
            return withNewDaemonEndpointsLike(getDaemonEndpoints() != null ? getDaemonEndpoints(): item);
    }

    public A addToImages(int index,ContainerImage item){
            ContainerImageBuilder builder = new ContainerImageBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.images.add(index >= 0 ? index : images.size(), builder); return (A)this;
    }

    public A setToImages(int index,ContainerImage item){
            ContainerImageBuilder builder = new ContainerImageBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= images.size()) { images.add(builder); } else { images.set(index, builder);}
             return (A)this;
    }

    public A addToImages(ContainerImage... items){
            for (ContainerImage item : items) {ContainerImageBuilder builder = new ContainerImageBuilder(item);_visitables.add(builder);this.images.add(builder);} return (A)this;
    }

    public A addAllToImages(Collection items){
            for (ContainerImage item : items) {ContainerImageBuilder builder = new ContainerImageBuilder(item);_visitables.add(builder);this.images.add(builder);} return (A)this;
    }

    public A removeFromImages(ContainerImage... items){
            for (ContainerImage item : items) {ContainerImageBuilder builder = new ContainerImageBuilder(item);_visitables.remove(builder);this.images.remove(builder);} return (A)this;
    }

    public A removeAllFromImages(Collection items){
            for (ContainerImage item : items) {ContainerImageBuilder builder = new ContainerImageBuilder(item);_visitables.remove(builder);this.images.remove(builder);} return (A)this;
    }

    
/**
 * This method has been deprecated, please use method buildImages instead.
 */
@Deprecated public List getImages(){
            return build(images);
    }

    public List buildImages(){
            return build(images);
    }

    public ContainerImage buildImage(int index){
            return this.images.get(index).build();
    }

    public ContainerImage buildFirstImage(){
            return this.images.get(0).build();
    }

    public ContainerImage buildLastImage(){
            return this.images.get(images.size() - 1).build();
    }

    public ContainerImage buildMatchingImage(io.alauda.kubernetes.api.builder.Predicate predicate){
            for (ContainerImageBuilder item: images) { if(predicate.apply(item)){return item.build();} } return null;
    }

    public A withImages(List images){
            _visitables.removeAll(this.images);
            this.images.clear();
            if (images != null) {for (ContainerImage item : images){this.addToImages(item);}} return (A) this;
    }

    public A withImages(ContainerImage... images){
            this.images.clear(); if (images != null) {for (ContainerImage item :images){ this.addToImages(item);}} return (A) this;
    }

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

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

    public NodeStatusFluent.ImagesNested addNewImageLike(ContainerImage item){
            return new ImagesNestedImpl(-1, item);
    }

    public NodeStatusFluent.ImagesNested setNewImageLike(int index,ContainerImage item){
            return new ImagesNestedImpl(index, item);
    }

    public NodeStatusFluent.ImagesNested editImage(int index){
            if (images.size() <= index) throw new RuntimeException("Can't edit images. Index exceeds size.");
            return setNewImageLike(index, buildImage(index));
    }

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

    public NodeStatusFluent.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 NodeStatusFluent.ImagesNested editMatchingImage(io.alauda.kubernetes.api.builder.Predicate predicate){
            int index = -1;
            for (int i=0;i withNewNodeInfo(){
            return new NodeInfoNestedImpl();
    }

    public NodeStatusFluent.NodeInfoNested withNewNodeInfoLike(NodeSystemInfo item){
            return new NodeInfoNestedImpl(item);
    }

    public NodeStatusFluent.NodeInfoNested editNodeInfo(){
            return withNewNodeInfoLike(getNodeInfo());
    }

    public NodeStatusFluent.NodeInfoNested editOrNewNodeInfo(){
            return withNewNodeInfoLike(getNodeInfo() != null ? getNodeInfo(): new NodeSystemInfoBuilder().build());
    }

    public NodeStatusFluent.NodeInfoNested editOrNewNodeInfoLike(NodeSystemInfo item){
            return withNewNodeInfoLike(getNodeInfo() != null ? getNodeInfo(): item);
    }

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

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

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

    public A addToVolumesAttached(int index,AttachedVolume item){
            AttachedVolumeBuilder builder = new AttachedVolumeBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.volumesAttached.add(index >= 0 ? index : volumesAttached.size(), builder); return (A)this;
    }

    public A setToVolumesAttached(int index,AttachedVolume item){
            AttachedVolumeBuilder builder = new AttachedVolumeBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= volumesAttached.size()) { volumesAttached.add(builder); } else { volumesAttached.set(index, builder);}
             return (A)this;
    }

    public A addToVolumesAttached(AttachedVolume... items){
            for (AttachedVolume item : items) {AttachedVolumeBuilder builder = new AttachedVolumeBuilder(item);_visitables.add(builder);this.volumesAttached.add(builder);} return (A)this;
    }

    public A addAllToVolumesAttached(Collection items){
            for (AttachedVolume item : items) {AttachedVolumeBuilder builder = new AttachedVolumeBuilder(item);_visitables.add(builder);this.volumesAttached.add(builder);} return (A)this;
    }

    public A removeFromVolumesAttached(AttachedVolume... items){
            for (AttachedVolume item : items) {AttachedVolumeBuilder builder = new AttachedVolumeBuilder(item);_visitables.remove(builder);this.volumesAttached.remove(builder);} return (A)this;
    }

    public A removeAllFromVolumesAttached(Collection items){
            for (AttachedVolume item : items) {AttachedVolumeBuilder builder = new AttachedVolumeBuilder(item);_visitables.remove(builder);this.volumesAttached.remove(builder);} return (A)this;
    }

    
/**
 * This method has been deprecated, please use method buildVolumesAttached instead.
 */
@Deprecated public List getVolumesAttached(){
            return build(volumesAttached);
    }

    public List buildVolumesAttached(){
            return build(volumesAttached);
    }

    public AttachedVolume buildVolumesAttached(int index){
            return this.volumesAttached.get(index).build();
    }

    public AttachedVolume buildFirstVolumesAttached(){
            return this.volumesAttached.get(0).build();
    }

    public AttachedVolume buildLastVolumesAttached(){
            return this.volumesAttached.get(volumesAttached.size() - 1).build();
    }

    public AttachedVolume buildMatchingVolumesAttached(io.alauda.kubernetes.api.builder.Predicate predicate){
            for (AttachedVolumeBuilder item: volumesAttached) { if(predicate.apply(item)){return item.build();} } return null;
    }

    public A withVolumesAttached(List volumesAttached){
            _visitables.removeAll(this.volumesAttached);
            this.volumesAttached.clear();
            if (volumesAttached != null) {for (AttachedVolume item : volumesAttached){this.addToVolumesAttached(item);}} return (A) this;
    }

    public A withVolumesAttached(AttachedVolume... volumesAttached){
            this.volumesAttached.clear(); if (volumesAttached != null) {for (AttachedVolume item :volumesAttached){ this.addToVolumesAttached(item);}} return (A) this;
    }

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

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

    public NodeStatusFluent.VolumesAttachedNested addNewVolumesAttachedLike(AttachedVolume item){
            return new VolumesAttachedNestedImpl(-1, item);
    }

    public NodeStatusFluent.VolumesAttachedNested setNewVolumesAttachedLike(int index,AttachedVolume item){
            return new VolumesAttachedNestedImpl(index, item);
    }

    public NodeStatusFluent.VolumesAttachedNested editVolumesAttached(int index){
            if (volumesAttached.size() <= index) throw new RuntimeException("Can't edit volumesAttached. Index exceeds size.");
            return setNewVolumesAttachedLike(index, buildVolumesAttached(index));
    }

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

    public NodeStatusFluent.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 NodeStatusFluent.VolumesAttachedNested editMatchingVolumesAttached(io.alauda.kubernetes.api.builder.Predicate predicate){
            int index = -1;
            for (int i=0;i items){
            for (String item : items) {this.volumesInUse.add(item);} return (A)this;
    }

    public A removeFromVolumesInUse(String... items){
            for (String item : items) {this.volumesInUse.remove(item);} return (A)this;
    }

    public A removeAllFromVolumesInUse(Collection items){
            for (String item : items) {this.volumesInUse.remove(item);} return (A)this;
    }

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

    public String getVolumesInUse(int index){
            return this.volumesInUse.get(index);
    }

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

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

    public String getMatchingVolumesInUse(io.alauda.kubernetes.api.builder.Predicate predicate){
            for (String item: volumesInUse) { if(predicate.apply(item)){return item;} } return null;
    }

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

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

    public 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;
            if (!super.equals(o)) return false;
            NodeStatusFluentImpl that = (NodeStatusFluentImpl) 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 (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 class AddressesNestedImpl extends NodeAddressFluentImpl> implements NodeStatusFluent.AddressesNested,io.alauda.kubernetes.api.builder.Nested{

            private final NodeAddressBuilder builder;
        private final int index;
    
            AddressesNestedImpl(int index,NodeAddress item){
                    this.index = index;
                    this.builder = new NodeAddressBuilder(this, item);
            }
            AddressesNestedImpl(){
                    this.index = -1;
                    this.builder = new NodeAddressBuilder(this);
            }
    
    public N and(){
            return (N) NodeStatusFluentImpl.this.setToAddresses(index, builder.build());
    }
    public N endAddress(){
            return and();
    }

}
    public class ConditionsNestedImpl extends NodeConditionFluentImpl> implements NodeStatusFluent.ConditionsNested,io.alauda.kubernetes.api.builder.Nested{

            private final NodeConditionBuilder builder;
        private final int index;
    
            ConditionsNestedImpl(int index,NodeCondition item){
                    this.index = index;
                    this.builder = new NodeConditionBuilder(this, item);
            }
            ConditionsNestedImpl(){
                    this.index = -1;
                    this.builder = new NodeConditionBuilder(this);
            }
    
    public N and(){
            return (N) NodeStatusFluentImpl.this.setToConditions(index, builder.build());
    }
    public N endCondition(){
            return and();
    }

}
    public class DaemonEndpointsNestedImpl extends NodeDaemonEndpointsFluentImpl> implements NodeStatusFluent.DaemonEndpointsNested,io.alauda.kubernetes.api.builder.Nested{

            private final NodeDaemonEndpointsBuilder builder;
    
            DaemonEndpointsNestedImpl(NodeDaemonEndpoints item){
                    this.builder = new NodeDaemonEndpointsBuilder(this, item);
            }
            DaemonEndpointsNestedImpl(){
                    this.builder = new NodeDaemonEndpointsBuilder(this);
            }
    
    public N and(){
            return (N) NodeStatusFluentImpl.this.withDaemonEndpoints(builder.build());
    }
    public N endDaemonEndpoints(){
            return and();
    }

}
    public class ImagesNestedImpl extends ContainerImageFluentImpl> implements NodeStatusFluent.ImagesNested,io.alauda.kubernetes.api.builder.Nested{

            private final ContainerImageBuilder builder;
        private final int index;
    
            ImagesNestedImpl(int index,ContainerImage item){
                    this.index = index;
                    this.builder = new ContainerImageBuilder(this, item);
            }
            ImagesNestedImpl(){
                    this.index = -1;
                    this.builder = new ContainerImageBuilder(this);
            }
    
    public N and(){
            return (N) NodeStatusFluentImpl.this.setToImages(index, builder.build());
    }
    public N endImage(){
            return and();
    }

}
    public class NodeInfoNestedImpl extends NodeSystemInfoFluentImpl> implements NodeStatusFluent.NodeInfoNested,io.alauda.kubernetes.api.builder.Nested{

            private final NodeSystemInfoBuilder builder;
    
            NodeInfoNestedImpl(NodeSystemInfo item){
                    this.builder = new NodeSystemInfoBuilder(this, item);
            }
            NodeInfoNestedImpl(){
                    this.builder = new NodeSystemInfoBuilder(this);
            }
    
    public N and(){
            return (N) NodeStatusFluentImpl.this.withNodeInfo(builder.build());
    }
    public N endNodeInfo(){
            return and();
    }

}
    public class VolumesAttachedNestedImpl extends AttachedVolumeFluentImpl> implements NodeStatusFluent.VolumesAttachedNested,io.alauda.kubernetes.api.builder.Nested{

            private final AttachedVolumeBuilder builder;
        private final int index;
    
            VolumesAttachedNestedImpl(int index,AttachedVolume item){
                    this.index = index;
                    this.builder = new AttachedVolumeBuilder(this, item);
            }
            VolumesAttachedNestedImpl(){
                    this.index = -1;
                    this.builder = new AttachedVolumeBuilder(this);
            }
    
    public N and(){
            return (N) NodeStatusFluentImpl.this.setToVolumesAttached(index, builder.build());
    }
    public N endVolumesAttached(){
            return and();
    }

}


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy