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

io.alauda.kubernetes.api.model.BaseKubernetesListFluentImpl Maven / Gradle / Ivy

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

import java.util.ArrayList;
import java.lang.String;
import io.alauda.kubernetes.api.model.apiextensions.CustomResourceDefinitionFluentImpl;
import io.alauda.kubernetes.api.model.extensions.NetworkPolicyBuilder;
import io.alauda.kubernetes.api.model.authorization.SubjectAccessReviewBuilder;
import io.alauda.kubernetes.api.model.authorization.SubjectAccessReview;
import io.alauda.kubernetes.api.model.extensions.StatefulSetBuilder;
import java.lang.Deprecated;
import io.alauda.kubernetes.api.model.extensions.PodSecurityPolicy;
import io.alauda.kubernetes.api.model.extensions.ReplicaSet;
import io.alauda.kubernetes.api.model.authorization.SubjectAccessReviewFluentImpl;
import io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReviewBuilder;
import io.alauda.kubernetes.api.model.authentication.TokenReviewFluentImpl;
import io.alauda.kubernetes.api.model.extensions.IngressFluentImpl;
import io.alauda.kubernetes.api.model.extensions.ScaleFluentImpl;
import io.alauda.kubernetes.api.model.policy.PodDisruptionBudgetFluentImpl;
import io.alauda.kubernetes.api.model.extensions.Deployment;
import io.alauda.kubernetes.api.builder.Predicate;
import java.util.List;
import io.alauda.kubernetes.api.model.extensions.ThirdPartyResourceFluentImpl;
import io.alauda.kubernetes.api.model.extensions.DaemonSet;
import io.alauda.kubernetes.api.model.extensions.ReplicaSetFluentImpl;
import javax.validation.constraints.NotNull;
import io.alauda.kubernetes.api.model.extensions.PodSecurityPolicyFluentImpl;
import io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReview;
import io.alauda.kubernetes.api.model.extensions.IngressBuilder;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.alauda.kubernetes.api.builder.BaseFluent;
import java.lang.Boolean;
import io.alauda.kubernetes.api.model.extensions.NetworkPolicy;
import io.alauda.kubernetes.api.model.extensions.DaemonSetFluentImpl;
import javax.validation.Valid;
import java.lang.Object;
import io.alauda.kubernetes.api.model.extensions.DeploymentBuilder;
import io.alauda.kubernetes.api.model.extensions.ThirdPartyResource;
import io.alauda.kubernetes.api.model.authentication.TokenReviewBuilder;
import io.alauda.kubernetes.api.model.authentication.TokenReview;
import io.alauda.kubernetes.api.model.apiextensions.CustomResourceDefinitionBuilder;
import io.alauda.kubernetes.api.builder.VisitableBuilder;
import io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReviewFluentImpl;
import io.alauda.kubernetes.api.model.extensions.DeploymentFluentImpl;
import io.alauda.kubernetes.api.model.policy.PodDisruptionBudgetBuilder;
import io.alauda.kubernetes.api.model.extensions.ThirdPartyResourceBuilder;
import io.alauda.kubernetes.api.model.extensions.ScaleBuilder;
import io.alauda.kubernetes.api.model.extensions.NetworkPolicyFluentImpl;
import io.alauda.kubernetes.api.model.extensions.Ingress;
import java.util.Collection;
import io.alauda.kubernetes.api.model.extensions.StatefulSet;
import io.alauda.kubernetes.api.model.policy.PodDisruptionBudget;
import io.alauda.kubernetes.api.builder.Nested;
import io.alauda.kubernetes.api.model.extensions.DaemonSetBuilder;
import io.alauda.kubernetes.api.model.extensions.ReplicaSetBuilder;
import io.alauda.kubernetes.api.model.extensions.StatefulSetFluentImpl;
import io.alauda.kubernetes.api.model.apiextensions.CustomResourceDefinition;
import io.alauda.kubernetes.api.model.extensions.Scale;
import io.alauda.kubernetes.api.model.extensions.PodSecurityPolicyBuilder;

public class BaseKubernetesListFluentImpl> extends io.alauda.kubernetes.api.builder.BaseFluent implements BaseKubernetesListFluent{

    private String apiVersion;
    private List> items =  new ArrayList>();
    private String kind;
    private ListMetaBuilder metadata;

    public BaseKubernetesListFluentImpl(){
    }
    public BaseKubernetesListFluentImpl(BaseKubernetesList instance){
            this.withApiVersion(instance.getApiVersion()); 
            this.withItems(instance.getItems()); 
            this.withKind(instance.getKind()); 
            this.withMetadata(instance.getMetadata()); 
    }

    public String getApiVersion(){
            return this.apiVersion;
    }

    public A withApiVersion(String apiVersion){
            this.apiVersion=apiVersion; return (A) this;
    }

    public Boolean hasApiVersion(){
            return this.apiVersion!=null;
    }

    public A addToItems(int index,HasMetadata item){
            if (item instanceof Binding){addToBindingItems(index, (Binding)item);}
 else if (item instanceof Ingress){addToIngressItems(index, (Ingress)item);}
 else if (item instanceof LocalSubjectAccessReview){addToLocalSubjectAccessReviewItems(index, (LocalSubjectAccessReview)item);}
 else if (item instanceof StatefulSet){addToStatefulSetItems(index, (StatefulSet)item);}
 else if (item instanceof PipelineTemplateTaskInstance){addToPipelineTemplateTaskInstanceItems(index, (PipelineTemplateTaskInstance)item);}
 else if (item instanceof PodSecurityPolicy){addToPodSecurityPolicyItems(index, (PodSecurityPolicy)item);}
 else if (item instanceof Pipeline){addToPipelineItems(index, (Pipeline)item);}
 else if (item instanceof ResourceQuota){addToResourceQuotaItems(index, (ResourceQuota)item);}
 else if (item instanceof ServiceAccount){addToServiceAccountItems(index, (ServiceAccount)item);}
 else if (item instanceof ConfigMap){addToConfigMapItems(index, (ConfigMap)item);}
 else if (item instanceof JenkinsBinding){addToJenkinsBindingItems(index, (JenkinsBinding)item);}
 else if (item instanceof PipelineTemplate){addToPipelineTemplateItems(index, (PipelineTemplate)item);}
 else if (item instanceof CronJob){addToCronJobItems(index, (CronJob)item);}
 else if (item instanceof SubjectAccessReview){addToSubjectAccessReviewItems(index, (SubjectAccessReview)item);}
 else if (item instanceof PodTemplate){addToPodTemplateItems(index, (PodTemplate)item);}
 else if (item instanceof TokenReview){addToTokenReviewItems(index, (TokenReview)item);}
 else if (item instanceof CustomResourceDefinition){addToCustomResourceDefinitionItems(index, (CustomResourceDefinition)item);}
 else if (item instanceof StorageClass){addToStorageClassItems(index, (StorageClass)item);}
 else if (item instanceof PipelineConfigTemplate){addToPipelineConfigTemplateItems(index, (PipelineConfigTemplate)item);}
 else if (item instanceof Namespace){addToNamespaceItems(index, (Namespace)item);}
 else if (item instanceof PipelineConfig){addToPipelineConfigItems(index, (PipelineConfig)item);}
 else if (item instanceof CodeRepoService){addToCodeRepoServiceItems(index, (CodeRepoService)item);}
 else if (item instanceof CodeRepoBinding){addToCodeRepoBindingItems(index, (CodeRepoBinding)item);}
 else if (item instanceof Scale){addToScaleItems(index, (Scale)item);}
 else if (item instanceof PipelineTaskTemplate){addToPipelineTaskTemplateItems(index, (PipelineTaskTemplate)item);}
 else if (item instanceof Pod){addToPodItems(index, (Pod)item);}
 else if (item instanceof HorizontalPodAutoscaler){addToHorizontalPodAutoscalerItems(index, (HorizontalPodAutoscaler)item);}
 else if (item instanceof ThirdPartyResource){addToThirdPartyResourceItems(index, (ThirdPartyResource)item);}
 else if (item instanceof ComponentStatus){addToComponentStatusItems(index, (ComponentStatus)item);}
 else if (item instanceof PersistentVolumeClaim){addToPersistentVolumeClaimItems(index, (PersistentVolumeClaim)item);}
 else if (item instanceof Secret){addToSecretItems(index, (Secret)item);}
 else if (item instanceof ReplicationController){addToReplicationControllerItems(index, (ReplicationController)item);}
 else if (item instanceof Endpoints){addToEndpointsItems(index, (Endpoints)item);}
 else if (item instanceof LimitRange){addToLimitRangeItems(index, (LimitRange)item);}
 else if (item instanceof NetworkPolicy){addToNetworkPolicyItems(index, (NetworkPolicy)item);}
 else if (item instanceof Service){addToServiceItems(index, (Service)item);}
 else if (item instanceof Event){addToEventItems(index, (Event)item);}
 else if (item instanceof Node){addToNodeItems(index, (Node)item);}
 else if (item instanceof ReplicaSet){addToReplicaSetItems(index, (ReplicaSet)item);}
 else if (item instanceof ClusterPipelineTemplate){addToClusterPipelineTemplateItems(index, (ClusterPipelineTemplate)item);}
 else if (item instanceof Job){addToJobItems(index, (Job)item);}
 else if (item instanceof ClusterPipelineTaskTemplate){addToClusterPipelineTaskTemplateItems(index, (ClusterPipelineTaskTemplate)item);}
 else if (item instanceof Deployment){addToDeploymentItems(index, (Deployment)item);}
 else if (item instanceof Jenkins){addToJenkinsItems(index, (Jenkins)item);}
 else if (item instanceof DaemonSet){addToDaemonSetItems(index, (DaemonSet)item);}
 else if (item instanceof PodDisruptionBudget){addToPodDisruptionBudgetItems(index, (PodDisruptionBudget)item);}
 else if (item instanceof Project){addToProjectItems(index, (Project)item);}
 else if (item instanceof PersistentVolume){addToPersistentVolumeItems(index, (PersistentVolume)item);}
 else if (item instanceof CodeRepository){addToCodeRepositoryItems(index, (CodeRepository)item);}

            return (A)this;
    }

    public A setToItems(int index,HasMetadata item){
            if (item instanceof Binding){setToBindingItems(index, (Binding)item);}
 else if (item instanceof Ingress){setToIngressItems(index, (Ingress)item);}
 else if (item instanceof LocalSubjectAccessReview){setToLocalSubjectAccessReviewItems(index, (LocalSubjectAccessReview)item);}
 else if (item instanceof StatefulSet){setToStatefulSetItems(index, (StatefulSet)item);}
 else if (item instanceof PipelineTemplateTaskInstance){setToPipelineTemplateTaskInstanceItems(index, (PipelineTemplateTaskInstance)item);}
 else if (item instanceof PodSecurityPolicy){setToPodSecurityPolicyItems(index, (PodSecurityPolicy)item);}
 else if (item instanceof Pipeline){setToPipelineItems(index, (Pipeline)item);}
 else if (item instanceof ResourceQuota){setToResourceQuotaItems(index, (ResourceQuota)item);}
 else if (item instanceof ServiceAccount){setToServiceAccountItems(index, (ServiceAccount)item);}
 else if (item instanceof ConfigMap){setToConfigMapItems(index, (ConfigMap)item);}
 else if (item instanceof JenkinsBinding){setToJenkinsBindingItems(index, (JenkinsBinding)item);}
 else if (item instanceof PipelineTemplate){setToPipelineTemplateItems(index, (PipelineTemplate)item);}
 else if (item instanceof CronJob){setToCronJobItems(index, (CronJob)item);}
 else if (item instanceof SubjectAccessReview){setToSubjectAccessReviewItems(index, (SubjectAccessReview)item);}
 else if (item instanceof PodTemplate){setToPodTemplateItems(index, (PodTemplate)item);}
 else if (item instanceof TokenReview){setToTokenReviewItems(index, (TokenReview)item);}
 else if (item instanceof CustomResourceDefinition){setToCustomResourceDefinitionItems(index, (CustomResourceDefinition)item);}
 else if (item instanceof StorageClass){setToStorageClassItems(index, (StorageClass)item);}
 else if (item instanceof PipelineConfigTemplate){setToPipelineConfigTemplateItems(index, (PipelineConfigTemplate)item);}
 else if (item instanceof Namespace){setToNamespaceItems(index, (Namespace)item);}
 else if (item instanceof PipelineConfig){setToPipelineConfigItems(index, (PipelineConfig)item);}
 else if (item instanceof CodeRepoService){setToCodeRepoServiceItems(index, (CodeRepoService)item);}
 else if (item instanceof CodeRepoBinding){setToCodeRepoBindingItems(index, (CodeRepoBinding)item);}
 else if (item instanceof Scale){setToScaleItems(index, (Scale)item);}
 else if (item instanceof PipelineTaskTemplate){setToPipelineTaskTemplateItems(index, (PipelineTaskTemplate)item);}
 else if (item instanceof Pod){setToPodItems(index, (Pod)item);}
 else if (item instanceof HorizontalPodAutoscaler){setToHorizontalPodAutoscalerItems(index, (HorizontalPodAutoscaler)item);}
 else if (item instanceof ThirdPartyResource){setToThirdPartyResourceItems(index, (ThirdPartyResource)item);}
 else if (item instanceof ComponentStatus){setToComponentStatusItems(index, (ComponentStatus)item);}
 else if (item instanceof PersistentVolumeClaim){setToPersistentVolumeClaimItems(index, (PersistentVolumeClaim)item);}
 else if (item instanceof Secret){setToSecretItems(index, (Secret)item);}
 else if (item instanceof ReplicationController){setToReplicationControllerItems(index, (ReplicationController)item);}
 else if (item instanceof Endpoints){setToEndpointsItems(index, (Endpoints)item);}
 else if (item instanceof LimitRange){setToLimitRangeItems(index, (LimitRange)item);}
 else if (item instanceof NetworkPolicy){setToNetworkPolicyItems(index, (NetworkPolicy)item);}
 else if (item instanceof Service){setToServiceItems(index, (Service)item);}
 else if (item instanceof Event){setToEventItems(index, (Event)item);}
 else if (item instanceof Node){setToNodeItems(index, (Node)item);}
 else if (item instanceof ReplicaSet){setToReplicaSetItems(index, (ReplicaSet)item);}
 else if (item instanceof ClusterPipelineTemplate){setToClusterPipelineTemplateItems(index, (ClusterPipelineTemplate)item);}
 else if (item instanceof Job){setToJobItems(index, (Job)item);}
 else if (item instanceof ClusterPipelineTaskTemplate){setToClusterPipelineTaskTemplateItems(index, (ClusterPipelineTaskTemplate)item);}
 else if (item instanceof Deployment){setToDeploymentItems(index, (Deployment)item);}
 else if (item instanceof Jenkins){setToJenkinsItems(index, (Jenkins)item);}
 else if (item instanceof DaemonSet){setToDaemonSetItems(index, (DaemonSet)item);}
 else if (item instanceof PodDisruptionBudget){setToPodDisruptionBudgetItems(index, (PodDisruptionBudget)item);}
 else if (item instanceof Project){setToProjectItems(index, (Project)item);}
 else if (item instanceof PersistentVolume){setToPersistentVolumeItems(index, (PersistentVolume)item);}
 else if (item instanceof CodeRepository){setToCodeRepositoryItems(index, (CodeRepository)item);}

            return (A)this;
    }

    public A addToItems(HasMetadata... items){
            for (HasMetadata item : items) { 
            if (item instanceof Binding){addToBindingItems((Binding)item);}
 else if (item instanceof Ingress){addToIngressItems((Ingress)item);}
 else if (item instanceof LocalSubjectAccessReview){addToLocalSubjectAccessReviewItems((LocalSubjectAccessReview)item);}
 else if (item instanceof StatefulSet){addToStatefulSetItems((StatefulSet)item);}
 else if (item instanceof PipelineTemplateTaskInstance){addToPipelineTemplateTaskInstanceItems((PipelineTemplateTaskInstance)item);}
 else if (item instanceof PodSecurityPolicy){addToPodSecurityPolicyItems((PodSecurityPolicy)item);}
 else if (item instanceof Pipeline){addToPipelineItems((Pipeline)item);}
 else if (item instanceof ResourceQuota){addToResourceQuotaItems((ResourceQuota)item);}
 else if (item instanceof ServiceAccount){addToServiceAccountItems((ServiceAccount)item);}
 else if (item instanceof ConfigMap){addToConfigMapItems((ConfigMap)item);}
 else if (item instanceof JenkinsBinding){addToJenkinsBindingItems((JenkinsBinding)item);}
 else if (item instanceof PipelineTemplate){addToPipelineTemplateItems((PipelineTemplate)item);}
 else if (item instanceof CronJob){addToCronJobItems((CronJob)item);}
 else if (item instanceof SubjectAccessReview){addToSubjectAccessReviewItems((SubjectAccessReview)item);}
 else if (item instanceof PodTemplate){addToPodTemplateItems((PodTemplate)item);}
 else if (item instanceof TokenReview){addToTokenReviewItems((TokenReview)item);}
 else if (item instanceof CustomResourceDefinition){addToCustomResourceDefinitionItems((CustomResourceDefinition)item);}
 else if (item instanceof StorageClass){addToStorageClassItems((StorageClass)item);}
 else if (item instanceof PipelineConfigTemplate){addToPipelineConfigTemplateItems((PipelineConfigTemplate)item);}
 else if (item instanceof Namespace){addToNamespaceItems((Namespace)item);}
 else if (item instanceof PipelineConfig){addToPipelineConfigItems((PipelineConfig)item);}
 else if (item instanceof CodeRepoService){addToCodeRepoServiceItems((CodeRepoService)item);}
 else if (item instanceof CodeRepoBinding){addToCodeRepoBindingItems((CodeRepoBinding)item);}
 else if (item instanceof Scale){addToScaleItems((Scale)item);}
 else if (item instanceof PipelineTaskTemplate){addToPipelineTaskTemplateItems((PipelineTaskTemplate)item);}
 else if (item instanceof Pod){addToPodItems((Pod)item);}
 else if (item instanceof HorizontalPodAutoscaler){addToHorizontalPodAutoscalerItems((HorizontalPodAutoscaler)item);}
 else if (item instanceof ThirdPartyResource){addToThirdPartyResourceItems((ThirdPartyResource)item);}
 else if (item instanceof ComponentStatus){addToComponentStatusItems((ComponentStatus)item);}
 else if (item instanceof PersistentVolumeClaim){addToPersistentVolumeClaimItems((PersistentVolumeClaim)item);}
 else if (item instanceof Secret){addToSecretItems((Secret)item);}
 else if (item instanceof ReplicationController){addToReplicationControllerItems((ReplicationController)item);}
 else if (item instanceof Endpoints){addToEndpointsItems((Endpoints)item);}
 else if (item instanceof LimitRange){addToLimitRangeItems((LimitRange)item);}
 else if (item instanceof NetworkPolicy){addToNetworkPolicyItems((NetworkPolicy)item);}
 else if (item instanceof Service){addToServiceItems((Service)item);}
 else if (item instanceof Event){addToEventItems((Event)item);}
 else if (item instanceof Node){addToNodeItems((Node)item);}
 else if (item instanceof ReplicaSet){addToReplicaSetItems((ReplicaSet)item);}
 else if (item instanceof ClusterPipelineTemplate){addToClusterPipelineTemplateItems((ClusterPipelineTemplate)item);}
 else if (item instanceof Job){addToJobItems((Job)item);}
 else if (item instanceof ClusterPipelineTaskTemplate){addToClusterPipelineTaskTemplateItems((ClusterPipelineTaskTemplate)item);}
 else if (item instanceof Deployment){addToDeploymentItems((Deployment)item);}
 else if (item instanceof Jenkins){addToJenkinsItems((Jenkins)item);}
 else if (item instanceof DaemonSet){addToDaemonSetItems((DaemonSet)item);}
 else if (item instanceof PodDisruptionBudget){addToPodDisruptionBudgetItems((PodDisruptionBudget)item);}
 else if (item instanceof Project){addToProjectItems((Project)item);}
 else if (item instanceof PersistentVolume){addToPersistentVolumeItems((PersistentVolume)item);}
 else if (item instanceof CodeRepository){addToCodeRepositoryItems((CodeRepository)item);}

            } return (A)this;
    }

    public A addAllToItems(Collection items){
            for (HasMetadata item : items) { 
            if (item instanceof Binding){addToBindingItems((Binding)item);}
 else if (item instanceof Ingress){addToIngressItems((Ingress)item);}
 else if (item instanceof LocalSubjectAccessReview){addToLocalSubjectAccessReviewItems((LocalSubjectAccessReview)item);}
 else if (item instanceof StatefulSet){addToStatefulSetItems((StatefulSet)item);}
 else if (item instanceof PipelineTemplateTaskInstance){addToPipelineTemplateTaskInstanceItems((PipelineTemplateTaskInstance)item);}
 else if (item instanceof PodSecurityPolicy){addToPodSecurityPolicyItems((PodSecurityPolicy)item);}
 else if (item instanceof Pipeline){addToPipelineItems((Pipeline)item);}
 else if (item instanceof ResourceQuota){addToResourceQuotaItems((ResourceQuota)item);}
 else if (item instanceof ServiceAccount){addToServiceAccountItems((ServiceAccount)item);}
 else if (item instanceof ConfigMap){addToConfigMapItems((ConfigMap)item);}
 else if (item instanceof JenkinsBinding){addToJenkinsBindingItems((JenkinsBinding)item);}
 else if (item instanceof PipelineTemplate){addToPipelineTemplateItems((PipelineTemplate)item);}
 else if (item instanceof CronJob){addToCronJobItems((CronJob)item);}
 else if (item instanceof SubjectAccessReview){addToSubjectAccessReviewItems((SubjectAccessReview)item);}
 else if (item instanceof PodTemplate){addToPodTemplateItems((PodTemplate)item);}
 else if (item instanceof TokenReview){addToTokenReviewItems((TokenReview)item);}
 else if (item instanceof CustomResourceDefinition){addToCustomResourceDefinitionItems((CustomResourceDefinition)item);}
 else if (item instanceof StorageClass){addToStorageClassItems((StorageClass)item);}
 else if (item instanceof PipelineConfigTemplate){addToPipelineConfigTemplateItems((PipelineConfigTemplate)item);}
 else if (item instanceof Namespace){addToNamespaceItems((Namespace)item);}
 else if (item instanceof PipelineConfig){addToPipelineConfigItems((PipelineConfig)item);}
 else if (item instanceof CodeRepoService){addToCodeRepoServiceItems((CodeRepoService)item);}
 else if (item instanceof CodeRepoBinding){addToCodeRepoBindingItems((CodeRepoBinding)item);}
 else if (item instanceof Scale){addToScaleItems((Scale)item);}
 else if (item instanceof PipelineTaskTemplate){addToPipelineTaskTemplateItems((PipelineTaskTemplate)item);}
 else if (item instanceof Pod){addToPodItems((Pod)item);}
 else if (item instanceof HorizontalPodAutoscaler){addToHorizontalPodAutoscalerItems((HorizontalPodAutoscaler)item);}
 else if (item instanceof ThirdPartyResource){addToThirdPartyResourceItems((ThirdPartyResource)item);}
 else if (item instanceof ComponentStatus){addToComponentStatusItems((ComponentStatus)item);}
 else if (item instanceof PersistentVolumeClaim){addToPersistentVolumeClaimItems((PersistentVolumeClaim)item);}
 else if (item instanceof Secret){addToSecretItems((Secret)item);}
 else if (item instanceof ReplicationController){addToReplicationControllerItems((ReplicationController)item);}
 else if (item instanceof Endpoints){addToEndpointsItems((Endpoints)item);}
 else if (item instanceof LimitRange){addToLimitRangeItems((LimitRange)item);}
 else if (item instanceof NetworkPolicy){addToNetworkPolicyItems((NetworkPolicy)item);}
 else if (item instanceof Service){addToServiceItems((Service)item);}
 else if (item instanceof Event){addToEventItems((Event)item);}
 else if (item instanceof Node){addToNodeItems((Node)item);}
 else if (item instanceof ReplicaSet){addToReplicaSetItems((ReplicaSet)item);}
 else if (item instanceof ClusterPipelineTemplate){addToClusterPipelineTemplateItems((ClusterPipelineTemplate)item);}
 else if (item instanceof Job){addToJobItems((Job)item);}
 else if (item instanceof ClusterPipelineTaskTemplate){addToClusterPipelineTaskTemplateItems((ClusterPipelineTaskTemplate)item);}
 else if (item instanceof Deployment){addToDeploymentItems((Deployment)item);}
 else if (item instanceof Jenkins){addToJenkinsItems((Jenkins)item);}
 else if (item instanceof DaemonSet){addToDaemonSetItems((DaemonSet)item);}
 else if (item instanceof PodDisruptionBudget){addToPodDisruptionBudgetItems((PodDisruptionBudget)item);}
 else if (item instanceof Project){addToProjectItems((Project)item);}
 else if (item instanceof PersistentVolume){addToPersistentVolumeItems((PersistentVolume)item);}
 else if (item instanceof CodeRepository){addToCodeRepositoryItems((CodeRepository)item);}

            } return (A)this;
    }

    public A removeFromItems(HasMetadata... items){
            for (HasMetadata item : items) {if (item instanceof Binding){removeFromBindingItems((Binding)item);}
 else if (item instanceof Ingress){removeFromIngressItems((Ingress)item);}
 else if (item instanceof LocalSubjectAccessReview){removeFromLocalSubjectAccessReviewItems((LocalSubjectAccessReview)item);}
 else if (item instanceof StatefulSet){removeFromStatefulSetItems((StatefulSet)item);}
 else if (item instanceof PipelineTemplateTaskInstance){removeFromPipelineTemplateTaskInstanceItems((PipelineTemplateTaskInstance)item);}
 else if (item instanceof PodSecurityPolicy){removeFromPodSecurityPolicyItems((PodSecurityPolicy)item);}
 else if (item instanceof Pipeline){removeFromPipelineItems((Pipeline)item);}
 else if (item instanceof ResourceQuota){removeFromResourceQuotaItems((ResourceQuota)item);}
 else if (item instanceof ServiceAccount){removeFromServiceAccountItems((ServiceAccount)item);}
 else if (item instanceof ConfigMap){removeFromConfigMapItems((ConfigMap)item);}
 else if (item instanceof JenkinsBinding){removeFromJenkinsBindingItems((JenkinsBinding)item);}
 else if (item instanceof PipelineTemplate){removeFromPipelineTemplateItems((PipelineTemplate)item);}
 else if (item instanceof CronJob){removeFromCronJobItems((CronJob)item);}
 else if (item instanceof SubjectAccessReview){removeFromSubjectAccessReviewItems((SubjectAccessReview)item);}
 else if (item instanceof PodTemplate){removeFromPodTemplateItems((PodTemplate)item);}
 else if (item instanceof TokenReview){removeFromTokenReviewItems((TokenReview)item);}
 else if (item instanceof CustomResourceDefinition){removeFromCustomResourceDefinitionItems((CustomResourceDefinition)item);}
 else if (item instanceof StorageClass){removeFromStorageClassItems((StorageClass)item);}
 else if (item instanceof PipelineConfigTemplate){removeFromPipelineConfigTemplateItems((PipelineConfigTemplate)item);}
 else if (item instanceof Namespace){removeFromNamespaceItems((Namespace)item);}
 else if (item instanceof PipelineConfig){removeFromPipelineConfigItems((PipelineConfig)item);}
 else if (item instanceof CodeRepoService){removeFromCodeRepoServiceItems((CodeRepoService)item);}
 else if (item instanceof CodeRepoBinding){removeFromCodeRepoBindingItems((CodeRepoBinding)item);}
 else if (item instanceof Scale){removeFromScaleItems((Scale)item);}
 else if (item instanceof PipelineTaskTemplate){removeFromPipelineTaskTemplateItems((PipelineTaskTemplate)item);}
 else if (item instanceof Pod){removeFromPodItems((Pod)item);}
 else if (item instanceof HorizontalPodAutoscaler){removeFromHorizontalPodAutoscalerItems((HorizontalPodAutoscaler)item);}
 else if (item instanceof ThirdPartyResource){removeFromThirdPartyResourceItems((ThirdPartyResource)item);}
 else if (item instanceof ComponentStatus){removeFromComponentStatusItems((ComponentStatus)item);}
 else if (item instanceof PersistentVolumeClaim){removeFromPersistentVolumeClaimItems((PersistentVolumeClaim)item);}
 else if (item instanceof Secret){removeFromSecretItems((Secret)item);}
 else if (item instanceof ReplicationController){removeFromReplicationControllerItems((ReplicationController)item);}
 else if (item instanceof Endpoints){removeFromEndpointsItems((Endpoints)item);}
 else if (item instanceof LimitRange){removeFromLimitRangeItems((LimitRange)item);}
 else if (item instanceof NetworkPolicy){removeFromNetworkPolicyItems((NetworkPolicy)item);}
 else if (item instanceof Service){removeFromServiceItems((Service)item);}
 else if (item instanceof Event){removeFromEventItems((Event)item);}
 else if (item instanceof Node){removeFromNodeItems((Node)item);}
 else if (item instanceof ReplicaSet){removeFromReplicaSetItems((ReplicaSet)item);}
 else if (item instanceof ClusterPipelineTemplate){removeFromClusterPipelineTemplateItems((ClusterPipelineTemplate)item);}
 else if (item instanceof Job){removeFromJobItems((Job)item);}
 else if (item instanceof ClusterPipelineTaskTemplate){removeFromClusterPipelineTaskTemplateItems((ClusterPipelineTaskTemplate)item);}
 else if (item instanceof Deployment){removeFromDeploymentItems((Deployment)item);}
 else if (item instanceof Jenkins){removeFromJenkinsItems((Jenkins)item);}
 else if (item instanceof DaemonSet){removeFromDaemonSetItems((DaemonSet)item);}
 else if (item instanceof PodDisruptionBudget){removeFromPodDisruptionBudgetItems((PodDisruptionBudget)item);}
 else if (item instanceof Project){removeFromProjectItems((Project)item);}
 else if (item instanceof PersistentVolume){removeFromPersistentVolumeItems((PersistentVolume)item);}
 else if (item instanceof CodeRepository){removeFromCodeRepositoryItems((CodeRepository)item);}
} return (A)this;
    }

    public A removeAllFromItems(Collection items){
            for (HasMetadata item : items) {if (item instanceof Binding){removeFromBindingItems((Binding)item);}
 else if (item instanceof Ingress){removeFromIngressItems((Ingress)item);}
 else if (item instanceof LocalSubjectAccessReview){removeFromLocalSubjectAccessReviewItems((LocalSubjectAccessReview)item);}
 else if (item instanceof StatefulSet){removeFromStatefulSetItems((StatefulSet)item);}
 else if (item instanceof PipelineTemplateTaskInstance){removeFromPipelineTemplateTaskInstanceItems((PipelineTemplateTaskInstance)item);}
 else if (item instanceof PodSecurityPolicy){removeFromPodSecurityPolicyItems((PodSecurityPolicy)item);}
 else if (item instanceof Pipeline){removeFromPipelineItems((Pipeline)item);}
 else if (item instanceof ResourceQuota){removeFromResourceQuotaItems((ResourceQuota)item);}
 else if (item instanceof ServiceAccount){removeFromServiceAccountItems((ServiceAccount)item);}
 else if (item instanceof ConfigMap){removeFromConfigMapItems((ConfigMap)item);}
 else if (item instanceof JenkinsBinding){removeFromJenkinsBindingItems((JenkinsBinding)item);}
 else if (item instanceof PipelineTemplate){removeFromPipelineTemplateItems((PipelineTemplate)item);}
 else if (item instanceof CronJob){removeFromCronJobItems((CronJob)item);}
 else if (item instanceof SubjectAccessReview){removeFromSubjectAccessReviewItems((SubjectAccessReview)item);}
 else if (item instanceof PodTemplate){removeFromPodTemplateItems((PodTemplate)item);}
 else if (item instanceof TokenReview){removeFromTokenReviewItems((TokenReview)item);}
 else if (item instanceof CustomResourceDefinition){removeFromCustomResourceDefinitionItems((CustomResourceDefinition)item);}
 else if (item instanceof StorageClass){removeFromStorageClassItems((StorageClass)item);}
 else if (item instanceof PipelineConfigTemplate){removeFromPipelineConfigTemplateItems((PipelineConfigTemplate)item);}
 else if (item instanceof Namespace){removeFromNamespaceItems((Namespace)item);}
 else if (item instanceof PipelineConfig){removeFromPipelineConfigItems((PipelineConfig)item);}
 else if (item instanceof CodeRepoService){removeFromCodeRepoServiceItems((CodeRepoService)item);}
 else if (item instanceof CodeRepoBinding){removeFromCodeRepoBindingItems((CodeRepoBinding)item);}
 else if (item instanceof Scale){removeFromScaleItems((Scale)item);}
 else if (item instanceof PipelineTaskTemplate){removeFromPipelineTaskTemplateItems((PipelineTaskTemplate)item);}
 else if (item instanceof Pod){removeFromPodItems((Pod)item);}
 else if (item instanceof HorizontalPodAutoscaler){removeFromHorizontalPodAutoscalerItems((HorizontalPodAutoscaler)item);}
 else if (item instanceof ThirdPartyResource){removeFromThirdPartyResourceItems((ThirdPartyResource)item);}
 else if (item instanceof ComponentStatus){removeFromComponentStatusItems((ComponentStatus)item);}
 else if (item instanceof PersistentVolumeClaim){removeFromPersistentVolumeClaimItems((PersistentVolumeClaim)item);}
 else if (item instanceof Secret){removeFromSecretItems((Secret)item);}
 else if (item instanceof ReplicationController){removeFromReplicationControllerItems((ReplicationController)item);}
 else if (item instanceof Endpoints){removeFromEndpointsItems((Endpoints)item);}
 else if (item instanceof LimitRange){removeFromLimitRangeItems((LimitRange)item);}
 else if (item instanceof NetworkPolicy){removeFromNetworkPolicyItems((NetworkPolicy)item);}
 else if (item instanceof Service){removeFromServiceItems((Service)item);}
 else if (item instanceof Event){removeFromEventItems((Event)item);}
 else if (item instanceof Node){removeFromNodeItems((Node)item);}
 else if (item instanceof ReplicaSet){removeFromReplicaSetItems((ReplicaSet)item);}
 else if (item instanceof ClusterPipelineTemplate){removeFromClusterPipelineTemplateItems((ClusterPipelineTemplate)item);}
 else if (item instanceof Job){removeFromJobItems((Job)item);}
 else if (item instanceof ClusterPipelineTaskTemplate){removeFromClusterPipelineTaskTemplateItems((ClusterPipelineTaskTemplate)item);}
 else if (item instanceof Deployment){removeFromDeploymentItems((Deployment)item);}
 else if (item instanceof Jenkins){removeFromJenkinsItems((Jenkins)item);}
 else if (item instanceof DaemonSet){removeFromDaemonSetItems((DaemonSet)item);}
 else if (item instanceof PodDisruptionBudget){removeFromPodDisruptionBudgetItems((PodDisruptionBudget)item);}
 else if (item instanceof Project){removeFromProjectItems((Project)item);}
 else if (item instanceof PersistentVolume){removeFromPersistentVolumeItems((PersistentVolume)item);}
 else if (item instanceof CodeRepository){removeFromCodeRepositoryItems((CodeRepository)item);}
} return (A)this;
    }

    
/**
 * This method has been deprecated, please use method buildItems instead.
 */
@Deprecated public List getItems(){
            return build(items);
    }

    public List buildItems(){
            return build(items);
    }

    public HasMetadata buildItem(int index){
            return this.items.get(index).build();
    }

    public HasMetadata buildFirstItem(){
            return this.items.get(0).build();
    }

    public HasMetadata buildLastItem(){
            return this.items.get(items.size() - 1).build();
    }

    public HasMetadata buildMatchingItem(io.alauda.kubernetes.api.builder.Predicate> predicate){
            for (VisitableBuilder item: items) { if(predicate.apply(item)){return item.build();} } return null;
    }

    public A withItems(List items){
            this.items.clear();
            if (items != null) {for (HasMetadata item : items){this.addToItems(item);}} return (A) this;
    }

    public A withItems(HasMetadata... items){
            this.items.clear(); if (items != null) {for (HasMetadata item :items){ this.addToItems(item);}} return (A) this;
    }

    public Boolean hasItems(){
            return items!= null && !items.isEmpty();
    }

    public A addToBindingItems(int index,Binding item){
            BindingBuilder builder = new BindingBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToBindingItems(int index,Binding item){
            BindingBuilder builder = new BindingBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToBindingItems(Binding... items){
            for (Binding item : items) {BindingBuilder builder = new BindingBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToBindingItems(Collection items){
            for (Binding item : items) {BindingBuilder builder = new BindingBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromBindingItems(Binding... items){
            for (Binding item : items) {BindingBuilder builder = new BindingBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromBindingItems(Collection items){
            for (Binding item : items) {BindingBuilder builder = new BindingBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.BindingItemsNested addNewBindingItem(){
            return new BindingItemsNestedImpl();
    }

    public BaseKubernetesListFluent.BindingItemsNested addNewBindingItemLike(Binding item){
            return new BindingItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.BindingItemsNested setNewBindingItemLike(int index,Binding item){
            return new BindingItemsNestedImpl(index, item);
    }

    public A addToIngressItems(int index,Ingress item){
            IngressBuilder builder = new IngressBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToIngressItems(int index,Ingress item){
            IngressBuilder builder = new IngressBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToIngressItems(Ingress... items){
            for (Ingress item : items) {IngressBuilder builder = new IngressBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToIngressItems(Collection items){
            for (Ingress item : items) {IngressBuilder builder = new IngressBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromIngressItems(Ingress... items){
            for (Ingress item : items) {IngressBuilder builder = new IngressBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromIngressItems(Collection items){
            for (Ingress item : items) {IngressBuilder builder = new IngressBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.IngressItemsNested addNewIngressItem(){
            return new IngressItemsNestedImpl();
    }

    public BaseKubernetesListFluent.IngressItemsNested addNewIngressItemLike(Ingress item){
            return new IngressItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.IngressItemsNested setNewIngressItemLike(int index,Ingress item){
            return new IngressItemsNestedImpl(index, item);
    }

    public A addToLocalSubjectAccessReviewItems(int index,LocalSubjectAccessReview item){
            LocalSubjectAccessReviewBuilder builder = new LocalSubjectAccessReviewBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToLocalSubjectAccessReviewItems(int index,LocalSubjectAccessReview item){
            LocalSubjectAccessReviewBuilder builder = new LocalSubjectAccessReviewBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToLocalSubjectAccessReviewItems(LocalSubjectAccessReview... items){
            for (LocalSubjectAccessReview item : items) {LocalSubjectAccessReviewBuilder builder = new LocalSubjectAccessReviewBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToLocalSubjectAccessReviewItems(Collection items){
            for (LocalSubjectAccessReview item : items) {LocalSubjectAccessReviewBuilder builder = new LocalSubjectAccessReviewBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromLocalSubjectAccessReviewItems(LocalSubjectAccessReview... items){
            for (LocalSubjectAccessReview item : items) {LocalSubjectAccessReviewBuilder builder = new LocalSubjectAccessReviewBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromLocalSubjectAccessReviewItems(Collection items){
            for (LocalSubjectAccessReview item : items) {LocalSubjectAccessReviewBuilder builder = new LocalSubjectAccessReviewBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.LocalSubjectAccessReviewItemsNested addNewLocalSubjectAccessReviewItem(){
            return new LocalSubjectAccessReviewItemsNestedImpl();
    }

    public BaseKubernetesListFluent.LocalSubjectAccessReviewItemsNested addNewLocalSubjectAccessReviewItemLike(LocalSubjectAccessReview item){
            return new LocalSubjectAccessReviewItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.LocalSubjectAccessReviewItemsNested setNewLocalSubjectAccessReviewItemLike(int index,LocalSubjectAccessReview item){
            return new LocalSubjectAccessReviewItemsNestedImpl(index, item);
    }

    public A addToStatefulSetItems(int index,StatefulSet item){
            StatefulSetBuilder builder = new StatefulSetBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToStatefulSetItems(int index,StatefulSet item){
            StatefulSetBuilder builder = new StatefulSetBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToStatefulSetItems(StatefulSet... items){
            for (StatefulSet item : items) {StatefulSetBuilder builder = new StatefulSetBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToStatefulSetItems(Collection items){
            for (StatefulSet item : items) {StatefulSetBuilder builder = new StatefulSetBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromStatefulSetItems(StatefulSet... items){
            for (StatefulSet item : items) {StatefulSetBuilder builder = new StatefulSetBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromStatefulSetItems(Collection items){
            for (StatefulSet item : items) {StatefulSetBuilder builder = new StatefulSetBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.StatefulSetItemsNested addNewStatefulSetItem(){
            return new StatefulSetItemsNestedImpl();
    }

    public BaseKubernetesListFluent.StatefulSetItemsNested addNewStatefulSetItemLike(StatefulSet item){
            return new StatefulSetItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.StatefulSetItemsNested setNewStatefulSetItemLike(int index,StatefulSet item){
            return new StatefulSetItemsNestedImpl(index, item);
    }

    public A addToPipelineTemplateTaskInstanceItems(int index,PipelineTemplateTaskInstance item){
            PipelineTemplateTaskInstanceBuilder builder = new PipelineTemplateTaskInstanceBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToPipelineTemplateTaskInstanceItems(int index,PipelineTemplateTaskInstance item){
            PipelineTemplateTaskInstanceBuilder builder = new PipelineTemplateTaskInstanceBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToPipelineTemplateTaskInstanceItems(PipelineTemplateTaskInstance... items){
            for (PipelineTemplateTaskInstance item : items) {PipelineTemplateTaskInstanceBuilder builder = new PipelineTemplateTaskInstanceBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToPipelineTemplateTaskInstanceItems(Collection items){
            for (PipelineTemplateTaskInstance item : items) {PipelineTemplateTaskInstanceBuilder builder = new PipelineTemplateTaskInstanceBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromPipelineTemplateTaskInstanceItems(PipelineTemplateTaskInstance... items){
            for (PipelineTemplateTaskInstance item : items) {PipelineTemplateTaskInstanceBuilder builder = new PipelineTemplateTaskInstanceBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromPipelineTemplateTaskInstanceItems(Collection items){
            for (PipelineTemplateTaskInstance item : items) {PipelineTemplateTaskInstanceBuilder builder = new PipelineTemplateTaskInstanceBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.PipelineTemplateTaskInstanceItemsNested addNewPipelineTemplateTaskInstanceItem(){
            return new PipelineTemplateTaskInstanceItemsNestedImpl();
    }

    public BaseKubernetesListFluent.PipelineTemplateTaskInstanceItemsNested addNewPipelineTemplateTaskInstanceItemLike(PipelineTemplateTaskInstance item){
            return new PipelineTemplateTaskInstanceItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.PipelineTemplateTaskInstanceItemsNested setNewPipelineTemplateTaskInstanceItemLike(int index,PipelineTemplateTaskInstance item){
            return new PipelineTemplateTaskInstanceItemsNestedImpl(index, item);
    }

    public A addToPodSecurityPolicyItems(int index,PodSecurityPolicy item){
            PodSecurityPolicyBuilder builder = new PodSecurityPolicyBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToPodSecurityPolicyItems(int index,PodSecurityPolicy item){
            PodSecurityPolicyBuilder builder = new PodSecurityPolicyBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToPodSecurityPolicyItems(PodSecurityPolicy... items){
            for (PodSecurityPolicy item : items) {PodSecurityPolicyBuilder builder = new PodSecurityPolicyBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToPodSecurityPolicyItems(Collection items){
            for (PodSecurityPolicy item : items) {PodSecurityPolicyBuilder builder = new PodSecurityPolicyBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromPodSecurityPolicyItems(PodSecurityPolicy... items){
            for (PodSecurityPolicy item : items) {PodSecurityPolicyBuilder builder = new PodSecurityPolicyBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromPodSecurityPolicyItems(Collection items){
            for (PodSecurityPolicy item : items) {PodSecurityPolicyBuilder builder = new PodSecurityPolicyBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.PodSecurityPolicyItemsNested addNewPodSecurityPolicyItem(){
            return new PodSecurityPolicyItemsNestedImpl();
    }

    public BaseKubernetesListFluent.PodSecurityPolicyItemsNested addNewPodSecurityPolicyItemLike(PodSecurityPolicy item){
            return new PodSecurityPolicyItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.PodSecurityPolicyItemsNested setNewPodSecurityPolicyItemLike(int index,PodSecurityPolicy item){
            return new PodSecurityPolicyItemsNestedImpl(index, item);
    }

    public A addToPipelineItems(int index,Pipeline item){
            PipelineBuilder builder = new PipelineBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToPipelineItems(int index,Pipeline item){
            PipelineBuilder builder = new PipelineBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToPipelineItems(Pipeline... items){
            for (Pipeline item : items) {PipelineBuilder builder = new PipelineBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToPipelineItems(Collection items){
            for (Pipeline item : items) {PipelineBuilder builder = new PipelineBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromPipelineItems(Pipeline... items){
            for (Pipeline item : items) {PipelineBuilder builder = new PipelineBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromPipelineItems(Collection items){
            for (Pipeline item : items) {PipelineBuilder builder = new PipelineBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.PipelineItemsNested addNewPipelineItem(){
            return new PipelineItemsNestedImpl();
    }

    public BaseKubernetesListFluent.PipelineItemsNested addNewPipelineItemLike(Pipeline item){
            return new PipelineItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.PipelineItemsNested setNewPipelineItemLike(int index,Pipeline item){
            return new PipelineItemsNestedImpl(index, item);
    }

    public A addToResourceQuotaItems(int index,ResourceQuota item){
            ResourceQuotaBuilder builder = new ResourceQuotaBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToResourceQuotaItems(int index,ResourceQuota item){
            ResourceQuotaBuilder builder = new ResourceQuotaBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToResourceQuotaItems(ResourceQuota... items){
            for (ResourceQuota item : items) {ResourceQuotaBuilder builder = new ResourceQuotaBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToResourceQuotaItems(Collection items){
            for (ResourceQuota item : items) {ResourceQuotaBuilder builder = new ResourceQuotaBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromResourceQuotaItems(ResourceQuota... items){
            for (ResourceQuota item : items) {ResourceQuotaBuilder builder = new ResourceQuotaBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromResourceQuotaItems(Collection items){
            for (ResourceQuota item : items) {ResourceQuotaBuilder builder = new ResourceQuotaBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.ResourceQuotaItemsNested addNewResourceQuotaItem(){
            return new ResourceQuotaItemsNestedImpl();
    }

    public BaseKubernetesListFluent.ResourceQuotaItemsNested addNewResourceQuotaItemLike(ResourceQuota item){
            return new ResourceQuotaItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.ResourceQuotaItemsNested setNewResourceQuotaItemLike(int index,ResourceQuota item){
            return new ResourceQuotaItemsNestedImpl(index, item);
    }

    public A addToServiceAccountItems(int index,ServiceAccount item){
            ServiceAccountBuilder builder = new ServiceAccountBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToServiceAccountItems(int index,ServiceAccount item){
            ServiceAccountBuilder builder = new ServiceAccountBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToServiceAccountItems(ServiceAccount... items){
            for (ServiceAccount item : items) {ServiceAccountBuilder builder = new ServiceAccountBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToServiceAccountItems(Collection items){
            for (ServiceAccount item : items) {ServiceAccountBuilder builder = new ServiceAccountBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromServiceAccountItems(ServiceAccount... items){
            for (ServiceAccount item : items) {ServiceAccountBuilder builder = new ServiceAccountBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromServiceAccountItems(Collection items){
            for (ServiceAccount item : items) {ServiceAccountBuilder builder = new ServiceAccountBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.ServiceAccountItemsNested addNewServiceAccountItem(){
            return new ServiceAccountItemsNestedImpl();
    }

    public BaseKubernetesListFluent.ServiceAccountItemsNested addNewServiceAccountItemLike(ServiceAccount item){
            return new ServiceAccountItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.ServiceAccountItemsNested setNewServiceAccountItemLike(int index,ServiceAccount item){
            return new ServiceAccountItemsNestedImpl(index, item);
    }

    public A addToConfigMapItems(int index,ConfigMap item){
            ConfigMapBuilder builder = new ConfigMapBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToConfigMapItems(int index,ConfigMap item){
            ConfigMapBuilder builder = new ConfigMapBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToConfigMapItems(ConfigMap... items){
            for (ConfigMap item : items) {ConfigMapBuilder builder = new ConfigMapBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToConfigMapItems(Collection items){
            for (ConfigMap item : items) {ConfigMapBuilder builder = new ConfigMapBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromConfigMapItems(ConfigMap... items){
            for (ConfigMap item : items) {ConfigMapBuilder builder = new ConfigMapBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromConfigMapItems(Collection items){
            for (ConfigMap item : items) {ConfigMapBuilder builder = new ConfigMapBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.ConfigMapItemsNested addNewConfigMapItem(){
            return new ConfigMapItemsNestedImpl();
    }

    public BaseKubernetesListFluent.ConfigMapItemsNested addNewConfigMapItemLike(ConfigMap item){
            return new ConfigMapItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.ConfigMapItemsNested setNewConfigMapItemLike(int index,ConfigMap item){
            return new ConfigMapItemsNestedImpl(index, item);
    }

    public A addToJenkinsBindingItems(int index,JenkinsBinding item){
            JenkinsBindingBuilder builder = new JenkinsBindingBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToJenkinsBindingItems(int index,JenkinsBinding item){
            JenkinsBindingBuilder builder = new JenkinsBindingBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToJenkinsBindingItems(JenkinsBinding... items){
            for (JenkinsBinding item : items) {JenkinsBindingBuilder builder = new JenkinsBindingBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToJenkinsBindingItems(Collection items){
            for (JenkinsBinding item : items) {JenkinsBindingBuilder builder = new JenkinsBindingBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromJenkinsBindingItems(JenkinsBinding... items){
            for (JenkinsBinding item : items) {JenkinsBindingBuilder builder = new JenkinsBindingBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromJenkinsBindingItems(Collection items){
            for (JenkinsBinding item : items) {JenkinsBindingBuilder builder = new JenkinsBindingBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.JenkinsBindingItemsNested addNewJenkinsBindingItem(){
            return new JenkinsBindingItemsNestedImpl();
    }

    public BaseKubernetesListFluent.JenkinsBindingItemsNested addNewJenkinsBindingItemLike(JenkinsBinding item){
            return new JenkinsBindingItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.JenkinsBindingItemsNested setNewJenkinsBindingItemLike(int index,JenkinsBinding item){
            return new JenkinsBindingItemsNestedImpl(index, item);
    }

    public A addToPipelineTemplateItems(int index,PipelineTemplate item){
            PipelineTemplateBuilder builder = new PipelineTemplateBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToPipelineTemplateItems(int index,PipelineTemplate item){
            PipelineTemplateBuilder builder = new PipelineTemplateBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToPipelineTemplateItems(PipelineTemplate... items){
            for (PipelineTemplate item : items) {PipelineTemplateBuilder builder = new PipelineTemplateBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToPipelineTemplateItems(Collection items){
            for (PipelineTemplate item : items) {PipelineTemplateBuilder builder = new PipelineTemplateBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromPipelineTemplateItems(PipelineTemplate... items){
            for (PipelineTemplate item : items) {PipelineTemplateBuilder builder = new PipelineTemplateBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromPipelineTemplateItems(Collection items){
            for (PipelineTemplate item : items) {PipelineTemplateBuilder builder = new PipelineTemplateBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.PipelineTemplateItemsNested addNewPipelineTemplateItem(){
            return new PipelineTemplateItemsNestedImpl();
    }

    public BaseKubernetesListFluent.PipelineTemplateItemsNested addNewPipelineTemplateItemLike(PipelineTemplate item){
            return new PipelineTemplateItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.PipelineTemplateItemsNested setNewPipelineTemplateItemLike(int index,PipelineTemplate item){
            return new PipelineTemplateItemsNestedImpl(index, item);
    }

    public A addToCronJobItems(int index,CronJob item){
            CronJobBuilder builder = new CronJobBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToCronJobItems(int index,CronJob item){
            CronJobBuilder builder = new CronJobBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToCronJobItems(CronJob... items){
            for (CronJob item : items) {CronJobBuilder builder = new CronJobBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToCronJobItems(Collection items){
            for (CronJob item : items) {CronJobBuilder builder = new CronJobBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromCronJobItems(CronJob... items){
            for (CronJob item : items) {CronJobBuilder builder = new CronJobBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromCronJobItems(Collection items){
            for (CronJob item : items) {CronJobBuilder builder = new CronJobBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.CronJobItemsNested addNewCronJobItem(){
            return new CronJobItemsNestedImpl();
    }

    public BaseKubernetesListFluent.CronJobItemsNested addNewCronJobItemLike(CronJob item){
            return new CronJobItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.CronJobItemsNested setNewCronJobItemLike(int index,CronJob item){
            return new CronJobItemsNestedImpl(index, item);
    }

    public A addToSubjectAccessReviewItems(int index,SubjectAccessReview item){
            SubjectAccessReviewBuilder builder = new SubjectAccessReviewBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToSubjectAccessReviewItems(int index,SubjectAccessReview item){
            SubjectAccessReviewBuilder builder = new SubjectAccessReviewBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToSubjectAccessReviewItems(SubjectAccessReview... items){
            for (SubjectAccessReview item : items) {SubjectAccessReviewBuilder builder = new SubjectAccessReviewBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToSubjectAccessReviewItems(Collection items){
            for (SubjectAccessReview item : items) {SubjectAccessReviewBuilder builder = new SubjectAccessReviewBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromSubjectAccessReviewItems(SubjectAccessReview... items){
            for (SubjectAccessReview item : items) {SubjectAccessReviewBuilder builder = new SubjectAccessReviewBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromSubjectAccessReviewItems(Collection items){
            for (SubjectAccessReview item : items) {SubjectAccessReviewBuilder builder = new SubjectAccessReviewBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.SubjectAccessReviewItemsNested addNewSubjectAccessReviewItem(){
            return new SubjectAccessReviewItemsNestedImpl();
    }

    public BaseKubernetesListFluent.SubjectAccessReviewItemsNested addNewSubjectAccessReviewItemLike(SubjectAccessReview item){
            return new SubjectAccessReviewItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.SubjectAccessReviewItemsNested setNewSubjectAccessReviewItemLike(int index,SubjectAccessReview item){
            return new SubjectAccessReviewItemsNestedImpl(index, item);
    }

    public A addToPodTemplateItems(int index,PodTemplate item){
            PodTemplateBuilder builder = new PodTemplateBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToPodTemplateItems(int index,PodTemplate item){
            PodTemplateBuilder builder = new PodTemplateBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToPodTemplateItems(PodTemplate... items){
            for (PodTemplate item : items) {PodTemplateBuilder builder = new PodTemplateBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToPodTemplateItems(Collection items){
            for (PodTemplate item : items) {PodTemplateBuilder builder = new PodTemplateBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromPodTemplateItems(PodTemplate... items){
            for (PodTemplate item : items) {PodTemplateBuilder builder = new PodTemplateBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromPodTemplateItems(Collection items){
            for (PodTemplate item : items) {PodTemplateBuilder builder = new PodTemplateBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.PodTemplateItemsNested addNewPodTemplateItem(){
            return new PodTemplateItemsNestedImpl();
    }

    public BaseKubernetesListFluent.PodTemplateItemsNested addNewPodTemplateItemLike(PodTemplate item){
            return new PodTemplateItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.PodTemplateItemsNested setNewPodTemplateItemLike(int index,PodTemplate item){
            return new PodTemplateItemsNestedImpl(index, item);
    }

    public A addToTokenReviewItems(int index,TokenReview item){
            TokenReviewBuilder builder = new TokenReviewBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToTokenReviewItems(int index,TokenReview item){
            TokenReviewBuilder builder = new TokenReviewBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToTokenReviewItems(TokenReview... items){
            for (TokenReview item : items) {TokenReviewBuilder builder = new TokenReviewBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToTokenReviewItems(Collection items){
            for (TokenReview item : items) {TokenReviewBuilder builder = new TokenReviewBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromTokenReviewItems(TokenReview... items){
            for (TokenReview item : items) {TokenReviewBuilder builder = new TokenReviewBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromTokenReviewItems(Collection items){
            for (TokenReview item : items) {TokenReviewBuilder builder = new TokenReviewBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.TokenReviewItemsNested addNewTokenReviewItem(){
            return new TokenReviewItemsNestedImpl();
    }

    public BaseKubernetesListFluent.TokenReviewItemsNested addNewTokenReviewItemLike(TokenReview item){
            return new TokenReviewItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.TokenReviewItemsNested setNewTokenReviewItemLike(int index,TokenReview item){
            return new TokenReviewItemsNestedImpl(index, item);
    }

    public A addToCustomResourceDefinitionItems(int index,CustomResourceDefinition item){
            CustomResourceDefinitionBuilder builder = new CustomResourceDefinitionBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToCustomResourceDefinitionItems(int index,CustomResourceDefinition item){
            CustomResourceDefinitionBuilder builder = new CustomResourceDefinitionBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToCustomResourceDefinitionItems(CustomResourceDefinition... items){
            for (CustomResourceDefinition item : items) {CustomResourceDefinitionBuilder builder = new CustomResourceDefinitionBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToCustomResourceDefinitionItems(Collection items){
            for (CustomResourceDefinition item : items) {CustomResourceDefinitionBuilder builder = new CustomResourceDefinitionBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromCustomResourceDefinitionItems(CustomResourceDefinition... items){
            for (CustomResourceDefinition item : items) {CustomResourceDefinitionBuilder builder = new CustomResourceDefinitionBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromCustomResourceDefinitionItems(Collection items){
            for (CustomResourceDefinition item : items) {CustomResourceDefinitionBuilder builder = new CustomResourceDefinitionBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.CustomResourceDefinitionItemsNested addNewCustomResourceDefinitionItem(){
            return new CustomResourceDefinitionItemsNestedImpl();
    }

    public BaseKubernetesListFluent.CustomResourceDefinitionItemsNested addNewCustomResourceDefinitionItemLike(CustomResourceDefinition item){
            return new CustomResourceDefinitionItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.CustomResourceDefinitionItemsNested setNewCustomResourceDefinitionItemLike(int index,CustomResourceDefinition item){
            return new CustomResourceDefinitionItemsNestedImpl(index, item);
    }

    public A addToStorageClassItems(int index,StorageClass item){
            StorageClassBuilder builder = new StorageClassBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToStorageClassItems(int index,StorageClass item){
            StorageClassBuilder builder = new StorageClassBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToStorageClassItems(StorageClass... items){
            for (StorageClass item : items) {StorageClassBuilder builder = new StorageClassBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToStorageClassItems(Collection items){
            for (StorageClass item : items) {StorageClassBuilder builder = new StorageClassBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromStorageClassItems(StorageClass... items){
            for (StorageClass item : items) {StorageClassBuilder builder = new StorageClassBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromStorageClassItems(Collection items){
            for (StorageClass item : items) {StorageClassBuilder builder = new StorageClassBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.StorageClassItemsNested addNewStorageClassItem(){
            return new StorageClassItemsNestedImpl();
    }

    public BaseKubernetesListFluent.StorageClassItemsNested addNewStorageClassItemLike(StorageClass item){
            return new StorageClassItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.StorageClassItemsNested setNewStorageClassItemLike(int index,StorageClass item){
            return new StorageClassItemsNestedImpl(index, item);
    }

    public A addToPipelineConfigTemplateItems(int index,PipelineConfigTemplate item){
            PipelineConfigTemplateBuilder builder = new PipelineConfigTemplateBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToPipelineConfigTemplateItems(int index,PipelineConfigTemplate item){
            PipelineConfigTemplateBuilder builder = new PipelineConfigTemplateBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToPipelineConfigTemplateItems(PipelineConfigTemplate... items){
            for (PipelineConfigTemplate item : items) {PipelineConfigTemplateBuilder builder = new PipelineConfigTemplateBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToPipelineConfigTemplateItems(Collection items){
            for (PipelineConfigTemplate item : items) {PipelineConfigTemplateBuilder builder = new PipelineConfigTemplateBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromPipelineConfigTemplateItems(PipelineConfigTemplate... items){
            for (PipelineConfigTemplate item : items) {PipelineConfigTemplateBuilder builder = new PipelineConfigTemplateBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromPipelineConfigTemplateItems(Collection items){
            for (PipelineConfigTemplate item : items) {PipelineConfigTemplateBuilder builder = new PipelineConfigTemplateBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.PipelineConfigTemplateItemsNested addNewPipelineConfigTemplateItem(){
            return new PipelineConfigTemplateItemsNestedImpl();
    }

    public BaseKubernetesListFluent.PipelineConfigTemplateItemsNested addNewPipelineConfigTemplateItemLike(PipelineConfigTemplate item){
            return new PipelineConfigTemplateItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.PipelineConfigTemplateItemsNested setNewPipelineConfigTemplateItemLike(int index,PipelineConfigTemplate item){
            return new PipelineConfigTemplateItemsNestedImpl(index, item);
    }

    public A addToNamespaceItems(int index,Namespace item){
            NamespaceBuilder builder = new NamespaceBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToNamespaceItems(int index,Namespace item){
            NamespaceBuilder builder = new NamespaceBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToNamespaceItems(Namespace... items){
            for (Namespace item : items) {NamespaceBuilder builder = new NamespaceBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToNamespaceItems(Collection items){
            for (Namespace item : items) {NamespaceBuilder builder = new NamespaceBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromNamespaceItems(Namespace... items){
            for (Namespace item : items) {NamespaceBuilder builder = new NamespaceBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromNamespaceItems(Collection items){
            for (Namespace item : items) {NamespaceBuilder builder = new NamespaceBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.NamespaceItemsNested addNewNamespaceItem(){
            return new NamespaceItemsNestedImpl();
    }

    public BaseKubernetesListFluent.NamespaceItemsNested addNewNamespaceItemLike(Namespace item){
            return new NamespaceItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.NamespaceItemsNested setNewNamespaceItemLike(int index,Namespace item){
            return new NamespaceItemsNestedImpl(index, item);
    }

    public A addToPipelineConfigItems(int index,PipelineConfig item){
            PipelineConfigBuilder builder = new PipelineConfigBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToPipelineConfigItems(int index,PipelineConfig item){
            PipelineConfigBuilder builder = new PipelineConfigBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToPipelineConfigItems(PipelineConfig... items){
            for (PipelineConfig item : items) {PipelineConfigBuilder builder = new PipelineConfigBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToPipelineConfigItems(Collection items){
            for (PipelineConfig item : items) {PipelineConfigBuilder builder = new PipelineConfigBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromPipelineConfigItems(PipelineConfig... items){
            for (PipelineConfig item : items) {PipelineConfigBuilder builder = new PipelineConfigBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromPipelineConfigItems(Collection items){
            for (PipelineConfig item : items) {PipelineConfigBuilder builder = new PipelineConfigBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.PipelineConfigItemsNested addNewPipelineConfigItem(){
            return new PipelineConfigItemsNestedImpl();
    }

    public BaseKubernetesListFluent.PipelineConfigItemsNested addNewPipelineConfigItemLike(PipelineConfig item){
            return new PipelineConfigItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.PipelineConfigItemsNested setNewPipelineConfigItemLike(int index,PipelineConfig item){
            return new PipelineConfigItemsNestedImpl(index, item);
    }

    public A addToCodeRepoServiceItems(int index,CodeRepoService item){
            CodeRepoServiceBuilder builder = new CodeRepoServiceBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToCodeRepoServiceItems(int index,CodeRepoService item){
            CodeRepoServiceBuilder builder = new CodeRepoServiceBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToCodeRepoServiceItems(CodeRepoService... items){
            for (CodeRepoService item : items) {CodeRepoServiceBuilder builder = new CodeRepoServiceBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToCodeRepoServiceItems(Collection items){
            for (CodeRepoService item : items) {CodeRepoServiceBuilder builder = new CodeRepoServiceBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromCodeRepoServiceItems(CodeRepoService... items){
            for (CodeRepoService item : items) {CodeRepoServiceBuilder builder = new CodeRepoServiceBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromCodeRepoServiceItems(Collection items){
            for (CodeRepoService item : items) {CodeRepoServiceBuilder builder = new CodeRepoServiceBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.CodeRepoServiceItemsNested addNewCodeRepoServiceItem(){
            return new CodeRepoServiceItemsNestedImpl();
    }

    public BaseKubernetesListFluent.CodeRepoServiceItemsNested addNewCodeRepoServiceItemLike(CodeRepoService item){
            return new CodeRepoServiceItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.CodeRepoServiceItemsNested setNewCodeRepoServiceItemLike(int index,CodeRepoService item){
            return new CodeRepoServiceItemsNestedImpl(index, item);
    }

    public A addToCodeRepoBindingItems(int index,CodeRepoBinding item){
            CodeRepoBindingBuilder builder = new CodeRepoBindingBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToCodeRepoBindingItems(int index,CodeRepoBinding item){
            CodeRepoBindingBuilder builder = new CodeRepoBindingBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToCodeRepoBindingItems(CodeRepoBinding... items){
            for (CodeRepoBinding item : items) {CodeRepoBindingBuilder builder = new CodeRepoBindingBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToCodeRepoBindingItems(Collection items){
            for (CodeRepoBinding item : items) {CodeRepoBindingBuilder builder = new CodeRepoBindingBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromCodeRepoBindingItems(CodeRepoBinding... items){
            for (CodeRepoBinding item : items) {CodeRepoBindingBuilder builder = new CodeRepoBindingBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromCodeRepoBindingItems(Collection items){
            for (CodeRepoBinding item : items) {CodeRepoBindingBuilder builder = new CodeRepoBindingBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.CodeRepoBindingItemsNested addNewCodeRepoBindingItem(){
            return new CodeRepoBindingItemsNestedImpl();
    }

    public BaseKubernetesListFluent.CodeRepoBindingItemsNested addNewCodeRepoBindingItemLike(CodeRepoBinding item){
            return new CodeRepoBindingItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.CodeRepoBindingItemsNested setNewCodeRepoBindingItemLike(int index,CodeRepoBinding item){
            return new CodeRepoBindingItemsNestedImpl(index, item);
    }

    public A addToScaleItems(int index,Scale item){
            ScaleBuilder builder = new ScaleBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToScaleItems(int index,Scale item){
            ScaleBuilder builder = new ScaleBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToScaleItems(Scale... items){
            for (Scale item : items) {ScaleBuilder builder = new ScaleBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToScaleItems(Collection items){
            for (Scale item : items) {ScaleBuilder builder = new ScaleBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromScaleItems(Scale... items){
            for (Scale item : items) {ScaleBuilder builder = new ScaleBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromScaleItems(Collection items){
            for (Scale item : items) {ScaleBuilder builder = new ScaleBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.ScaleItemsNested addNewScaleItem(){
            return new ScaleItemsNestedImpl();
    }

    public BaseKubernetesListFluent.ScaleItemsNested addNewScaleItemLike(Scale item){
            return new ScaleItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.ScaleItemsNested setNewScaleItemLike(int index,Scale item){
            return new ScaleItemsNestedImpl(index, item);
    }

    public A addToPipelineTaskTemplateItems(int index,PipelineTaskTemplate item){
            PipelineTaskTemplateBuilder builder = new PipelineTaskTemplateBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToPipelineTaskTemplateItems(int index,PipelineTaskTemplate item){
            PipelineTaskTemplateBuilder builder = new PipelineTaskTemplateBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToPipelineTaskTemplateItems(PipelineTaskTemplate... items){
            for (PipelineTaskTemplate item : items) {PipelineTaskTemplateBuilder builder = new PipelineTaskTemplateBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToPipelineTaskTemplateItems(Collection items){
            for (PipelineTaskTemplate item : items) {PipelineTaskTemplateBuilder builder = new PipelineTaskTemplateBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromPipelineTaskTemplateItems(PipelineTaskTemplate... items){
            for (PipelineTaskTemplate item : items) {PipelineTaskTemplateBuilder builder = new PipelineTaskTemplateBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromPipelineTaskTemplateItems(Collection items){
            for (PipelineTaskTemplate item : items) {PipelineTaskTemplateBuilder builder = new PipelineTaskTemplateBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.PipelineTaskTemplateItemsNested addNewPipelineTaskTemplateItem(){
            return new PipelineTaskTemplateItemsNestedImpl();
    }

    public BaseKubernetesListFluent.PipelineTaskTemplateItemsNested addNewPipelineTaskTemplateItemLike(PipelineTaskTemplate item){
            return new PipelineTaskTemplateItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.PipelineTaskTemplateItemsNested setNewPipelineTaskTemplateItemLike(int index,PipelineTaskTemplate item){
            return new PipelineTaskTemplateItemsNestedImpl(index, item);
    }

    public A addToPodItems(int index,Pod item){
            PodBuilder builder = new PodBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToPodItems(int index,Pod item){
            PodBuilder builder = new PodBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToPodItems(Pod... items){
            for (Pod item : items) {PodBuilder builder = new PodBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToPodItems(Collection items){
            for (Pod item : items) {PodBuilder builder = new PodBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromPodItems(Pod... items){
            for (Pod item : items) {PodBuilder builder = new PodBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromPodItems(Collection items){
            for (Pod item : items) {PodBuilder builder = new PodBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.PodItemsNested addNewPodItem(){
            return new PodItemsNestedImpl();
    }

    public BaseKubernetesListFluent.PodItemsNested addNewPodItemLike(Pod item){
            return new PodItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.PodItemsNested setNewPodItemLike(int index,Pod item){
            return new PodItemsNestedImpl(index, item);
    }

    public A addToHorizontalPodAutoscalerItems(int index,HorizontalPodAutoscaler item){
            HorizontalPodAutoscalerBuilder builder = new HorizontalPodAutoscalerBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToHorizontalPodAutoscalerItems(int index,HorizontalPodAutoscaler item){
            HorizontalPodAutoscalerBuilder builder = new HorizontalPodAutoscalerBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToHorizontalPodAutoscalerItems(HorizontalPodAutoscaler... items){
            for (HorizontalPodAutoscaler item : items) {HorizontalPodAutoscalerBuilder builder = new HorizontalPodAutoscalerBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToHorizontalPodAutoscalerItems(Collection items){
            for (HorizontalPodAutoscaler item : items) {HorizontalPodAutoscalerBuilder builder = new HorizontalPodAutoscalerBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromHorizontalPodAutoscalerItems(HorizontalPodAutoscaler... items){
            for (HorizontalPodAutoscaler item : items) {HorizontalPodAutoscalerBuilder builder = new HorizontalPodAutoscalerBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromHorizontalPodAutoscalerItems(Collection items){
            for (HorizontalPodAutoscaler item : items) {HorizontalPodAutoscalerBuilder builder = new HorizontalPodAutoscalerBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.HorizontalPodAutoscalerItemsNested addNewHorizontalPodAutoscalerItem(){
            return new HorizontalPodAutoscalerItemsNestedImpl();
    }

    public BaseKubernetesListFluent.HorizontalPodAutoscalerItemsNested addNewHorizontalPodAutoscalerItemLike(HorizontalPodAutoscaler item){
            return new HorizontalPodAutoscalerItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.HorizontalPodAutoscalerItemsNested setNewHorizontalPodAutoscalerItemLike(int index,HorizontalPodAutoscaler item){
            return new HorizontalPodAutoscalerItemsNestedImpl(index, item);
    }

    public A addToThirdPartyResourceItems(int index,ThirdPartyResource item){
            ThirdPartyResourceBuilder builder = new ThirdPartyResourceBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToThirdPartyResourceItems(int index,ThirdPartyResource item){
            ThirdPartyResourceBuilder builder = new ThirdPartyResourceBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToThirdPartyResourceItems(ThirdPartyResource... items){
            for (ThirdPartyResource item : items) {ThirdPartyResourceBuilder builder = new ThirdPartyResourceBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToThirdPartyResourceItems(Collection items){
            for (ThirdPartyResource item : items) {ThirdPartyResourceBuilder builder = new ThirdPartyResourceBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromThirdPartyResourceItems(ThirdPartyResource... items){
            for (ThirdPartyResource item : items) {ThirdPartyResourceBuilder builder = new ThirdPartyResourceBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromThirdPartyResourceItems(Collection items){
            for (ThirdPartyResource item : items) {ThirdPartyResourceBuilder builder = new ThirdPartyResourceBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.ThirdPartyResourceItemsNested addNewThirdPartyResourceItem(){
            return new ThirdPartyResourceItemsNestedImpl();
    }

    public BaseKubernetesListFluent.ThirdPartyResourceItemsNested addNewThirdPartyResourceItemLike(ThirdPartyResource item){
            return new ThirdPartyResourceItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.ThirdPartyResourceItemsNested setNewThirdPartyResourceItemLike(int index,ThirdPartyResource item){
            return new ThirdPartyResourceItemsNestedImpl(index, item);
    }

    public A addToComponentStatusItems(int index,ComponentStatus item){
            ComponentStatusBuilder builder = new ComponentStatusBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToComponentStatusItems(int index,ComponentStatus item){
            ComponentStatusBuilder builder = new ComponentStatusBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToComponentStatusItems(ComponentStatus... items){
            for (ComponentStatus item : items) {ComponentStatusBuilder builder = new ComponentStatusBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToComponentStatusItems(Collection items){
            for (ComponentStatus item : items) {ComponentStatusBuilder builder = new ComponentStatusBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromComponentStatusItems(ComponentStatus... items){
            for (ComponentStatus item : items) {ComponentStatusBuilder builder = new ComponentStatusBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromComponentStatusItems(Collection items){
            for (ComponentStatus item : items) {ComponentStatusBuilder builder = new ComponentStatusBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.ComponentStatusItemsNested addNewComponentStatusItem(){
            return new ComponentStatusItemsNestedImpl();
    }

    public BaseKubernetesListFluent.ComponentStatusItemsNested addNewComponentStatusItemLike(ComponentStatus item){
            return new ComponentStatusItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.ComponentStatusItemsNested setNewComponentStatusItemLike(int index,ComponentStatus item){
            return new ComponentStatusItemsNestedImpl(index, item);
    }

    public A addToPersistentVolumeClaimItems(int index,PersistentVolumeClaim item){
            PersistentVolumeClaimBuilder builder = new PersistentVolumeClaimBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToPersistentVolumeClaimItems(int index,PersistentVolumeClaim item){
            PersistentVolumeClaimBuilder builder = new PersistentVolumeClaimBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToPersistentVolumeClaimItems(PersistentVolumeClaim... items){
            for (PersistentVolumeClaim item : items) {PersistentVolumeClaimBuilder builder = new PersistentVolumeClaimBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToPersistentVolumeClaimItems(Collection items){
            for (PersistentVolumeClaim item : items) {PersistentVolumeClaimBuilder builder = new PersistentVolumeClaimBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromPersistentVolumeClaimItems(PersistentVolumeClaim... items){
            for (PersistentVolumeClaim item : items) {PersistentVolumeClaimBuilder builder = new PersistentVolumeClaimBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromPersistentVolumeClaimItems(Collection items){
            for (PersistentVolumeClaim item : items) {PersistentVolumeClaimBuilder builder = new PersistentVolumeClaimBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.PersistentVolumeClaimItemsNested addNewPersistentVolumeClaimItem(){
            return new PersistentVolumeClaimItemsNestedImpl();
    }

    public BaseKubernetesListFluent.PersistentVolumeClaimItemsNested addNewPersistentVolumeClaimItemLike(PersistentVolumeClaim item){
            return new PersistentVolumeClaimItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.PersistentVolumeClaimItemsNested setNewPersistentVolumeClaimItemLike(int index,PersistentVolumeClaim item){
            return new PersistentVolumeClaimItemsNestedImpl(index, item);
    }

    public A addToSecretItems(int index,Secret item){
            SecretBuilder builder = new SecretBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToSecretItems(int index,Secret item){
            SecretBuilder builder = new SecretBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToSecretItems(Secret... items){
            for (Secret item : items) {SecretBuilder builder = new SecretBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToSecretItems(Collection items){
            for (Secret item : items) {SecretBuilder builder = new SecretBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromSecretItems(Secret... items){
            for (Secret item : items) {SecretBuilder builder = new SecretBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromSecretItems(Collection items){
            for (Secret item : items) {SecretBuilder builder = new SecretBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.SecretItemsNested addNewSecretItem(){
            return new SecretItemsNestedImpl();
    }

    public BaseKubernetesListFluent.SecretItemsNested addNewSecretItemLike(Secret item){
            return new SecretItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.SecretItemsNested setNewSecretItemLike(int index,Secret item){
            return new SecretItemsNestedImpl(index, item);
    }

    public A addToReplicationControllerItems(int index,ReplicationController item){
            ReplicationControllerBuilder builder = new ReplicationControllerBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToReplicationControllerItems(int index,ReplicationController item){
            ReplicationControllerBuilder builder = new ReplicationControllerBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToReplicationControllerItems(ReplicationController... items){
            for (ReplicationController item : items) {ReplicationControllerBuilder builder = new ReplicationControllerBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToReplicationControllerItems(Collection items){
            for (ReplicationController item : items) {ReplicationControllerBuilder builder = new ReplicationControllerBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromReplicationControllerItems(ReplicationController... items){
            for (ReplicationController item : items) {ReplicationControllerBuilder builder = new ReplicationControllerBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromReplicationControllerItems(Collection items){
            for (ReplicationController item : items) {ReplicationControllerBuilder builder = new ReplicationControllerBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.ReplicationControllerItemsNested addNewReplicationControllerItem(){
            return new ReplicationControllerItemsNestedImpl();
    }

    public BaseKubernetesListFluent.ReplicationControllerItemsNested addNewReplicationControllerItemLike(ReplicationController item){
            return new ReplicationControllerItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.ReplicationControllerItemsNested setNewReplicationControllerItemLike(int index,ReplicationController item){
            return new ReplicationControllerItemsNestedImpl(index, item);
    }

    public A addToEndpointsItems(int index,Endpoints item){
            EndpointsBuilder builder = new EndpointsBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToEndpointsItems(int index,Endpoints item){
            EndpointsBuilder builder = new EndpointsBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToEndpointsItems(Endpoints... items){
            for (Endpoints item : items) {EndpointsBuilder builder = new EndpointsBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToEndpointsItems(Collection items){
            for (Endpoints item : items) {EndpointsBuilder builder = new EndpointsBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromEndpointsItems(Endpoints... items){
            for (Endpoints item : items) {EndpointsBuilder builder = new EndpointsBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromEndpointsItems(Collection items){
            for (Endpoints item : items) {EndpointsBuilder builder = new EndpointsBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.EndpointsItemsNested addNewEndpointsItem(){
            return new EndpointsItemsNestedImpl();
    }

    public BaseKubernetesListFluent.EndpointsItemsNested addNewEndpointsItemLike(Endpoints item){
            return new EndpointsItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.EndpointsItemsNested setNewEndpointsItemLike(int index,Endpoints item){
            return new EndpointsItemsNestedImpl(index, item);
    }

    public A addToLimitRangeItems(int index,LimitRange item){
            LimitRangeBuilder builder = new LimitRangeBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToLimitRangeItems(int index,LimitRange item){
            LimitRangeBuilder builder = new LimitRangeBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToLimitRangeItems(LimitRange... items){
            for (LimitRange item : items) {LimitRangeBuilder builder = new LimitRangeBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToLimitRangeItems(Collection items){
            for (LimitRange item : items) {LimitRangeBuilder builder = new LimitRangeBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromLimitRangeItems(LimitRange... items){
            for (LimitRange item : items) {LimitRangeBuilder builder = new LimitRangeBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromLimitRangeItems(Collection items){
            for (LimitRange item : items) {LimitRangeBuilder builder = new LimitRangeBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.LimitRangeItemsNested addNewLimitRangeItem(){
            return new LimitRangeItemsNestedImpl();
    }

    public BaseKubernetesListFluent.LimitRangeItemsNested addNewLimitRangeItemLike(LimitRange item){
            return new LimitRangeItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.LimitRangeItemsNested setNewLimitRangeItemLike(int index,LimitRange item){
            return new LimitRangeItemsNestedImpl(index, item);
    }

    public A addToNetworkPolicyItems(int index,NetworkPolicy item){
            NetworkPolicyBuilder builder = new NetworkPolicyBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToNetworkPolicyItems(int index,NetworkPolicy item){
            NetworkPolicyBuilder builder = new NetworkPolicyBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToNetworkPolicyItems(NetworkPolicy... items){
            for (NetworkPolicy item : items) {NetworkPolicyBuilder builder = new NetworkPolicyBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToNetworkPolicyItems(Collection items){
            for (NetworkPolicy item : items) {NetworkPolicyBuilder builder = new NetworkPolicyBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromNetworkPolicyItems(NetworkPolicy... items){
            for (NetworkPolicy item : items) {NetworkPolicyBuilder builder = new NetworkPolicyBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromNetworkPolicyItems(Collection items){
            for (NetworkPolicy item : items) {NetworkPolicyBuilder builder = new NetworkPolicyBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.NetworkPolicyItemsNested addNewNetworkPolicyItem(){
            return new NetworkPolicyItemsNestedImpl();
    }

    public BaseKubernetesListFluent.NetworkPolicyItemsNested addNewNetworkPolicyItemLike(NetworkPolicy item){
            return new NetworkPolicyItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.NetworkPolicyItemsNested setNewNetworkPolicyItemLike(int index,NetworkPolicy item){
            return new NetworkPolicyItemsNestedImpl(index, item);
    }

    public A addToServiceItems(int index,Service item){
            ServiceBuilder builder = new ServiceBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToServiceItems(int index,Service item){
            ServiceBuilder builder = new ServiceBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToServiceItems(Service... items){
            for (Service item : items) {ServiceBuilder builder = new ServiceBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToServiceItems(Collection items){
            for (Service item : items) {ServiceBuilder builder = new ServiceBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromServiceItems(Service... items){
            for (Service item : items) {ServiceBuilder builder = new ServiceBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromServiceItems(Collection items){
            for (Service item : items) {ServiceBuilder builder = new ServiceBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.ServiceItemsNested addNewServiceItem(){
            return new ServiceItemsNestedImpl();
    }

    public BaseKubernetesListFluent.ServiceItemsNested addNewServiceItemLike(Service item){
            return new ServiceItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.ServiceItemsNested setNewServiceItemLike(int index,Service item){
            return new ServiceItemsNestedImpl(index, item);
    }

    public A addToEventItems(int index,Event item){
            EventBuilder builder = new EventBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToEventItems(int index,Event item){
            EventBuilder builder = new EventBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToEventItems(Event... items){
            for (Event item : items) {EventBuilder builder = new EventBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToEventItems(Collection items){
            for (Event item : items) {EventBuilder builder = new EventBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromEventItems(Event... items){
            for (Event item : items) {EventBuilder builder = new EventBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromEventItems(Collection items){
            for (Event item : items) {EventBuilder builder = new EventBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.EventItemsNested addNewEventItem(){
            return new EventItemsNestedImpl();
    }

    public BaseKubernetesListFluent.EventItemsNested addNewEventItemLike(Event item){
            return new EventItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.EventItemsNested setNewEventItemLike(int index,Event item){
            return new EventItemsNestedImpl(index, item);
    }

    public A addToNodeItems(int index,Node item){
            NodeBuilder builder = new NodeBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToNodeItems(int index,Node item){
            NodeBuilder builder = new NodeBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToNodeItems(Node... items){
            for (Node item : items) {NodeBuilder builder = new NodeBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToNodeItems(Collection items){
            for (Node item : items) {NodeBuilder builder = new NodeBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromNodeItems(Node... items){
            for (Node item : items) {NodeBuilder builder = new NodeBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromNodeItems(Collection items){
            for (Node item : items) {NodeBuilder builder = new NodeBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.NodeItemsNested addNewNodeItem(){
            return new NodeItemsNestedImpl();
    }

    public BaseKubernetesListFluent.NodeItemsNested addNewNodeItemLike(Node item){
            return new NodeItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.NodeItemsNested setNewNodeItemLike(int index,Node item){
            return new NodeItemsNestedImpl(index, item);
    }

    public A addToReplicaSetItems(int index,ReplicaSet item){
            ReplicaSetBuilder builder = new ReplicaSetBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToReplicaSetItems(int index,ReplicaSet item){
            ReplicaSetBuilder builder = new ReplicaSetBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToReplicaSetItems(ReplicaSet... items){
            for (ReplicaSet item : items) {ReplicaSetBuilder builder = new ReplicaSetBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToReplicaSetItems(Collection items){
            for (ReplicaSet item : items) {ReplicaSetBuilder builder = new ReplicaSetBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromReplicaSetItems(ReplicaSet... items){
            for (ReplicaSet item : items) {ReplicaSetBuilder builder = new ReplicaSetBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromReplicaSetItems(Collection items){
            for (ReplicaSet item : items) {ReplicaSetBuilder builder = new ReplicaSetBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.ReplicaSetItemsNested addNewReplicaSetItem(){
            return new ReplicaSetItemsNestedImpl();
    }

    public BaseKubernetesListFluent.ReplicaSetItemsNested addNewReplicaSetItemLike(ReplicaSet item){
            return new ReplicaSetItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.ReplicaSetItemsNested setNewReplicaSetItemLike(int index,ReplicaSet item){
            return new ReplicaSetItemsNestedImpl(index, item);
    }

    public A addToClusterPipelineTemplateItems(int index,ClusterPipelineTemplate item){
            ClusterPipelineTemplateBuilder builder = new ClusterPipelineTemplateBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToClusterPipelineTemplateItems(int index,ClusterPipelineTemplate item){
            ClusterPipelineTemplateBuilder builder = new ClusterPipelineTemplateBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToClusterPipelineTemplateItems(ClusterPipelineTemplate... items){
            for (ClusterPipelineTemplate item : items) {ClusterPipelineTemplateBuilder builder = new ClusterPipelineTemplateBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToClusterPipelineTemplateItems(Collection items){
            for (ClusterPipelineTemplate item : items) {ClusterPipelineTemplateBuilder builder = new ClusterPipelineTemplateBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromClusterPipelineTemplateItems(ClusterPipelineTemplate... items){
            for (ClusterPipelineTemplate item : items) {ClusterPipelineTemplateBuilder builder = new ClusterPipelineTemplateBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromClusterPipelineTemplateItems(Collection items){
            for (ClusterPipelineTemplate item : items) {ClusterPipelineTemplateBuilder builder = new ClusterPipelineTemplateBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.ClusterPipelineTemplateItemsNested addNewClusterPipelineTemplateItem(){
            return new ClusterPipelineTemplateItemsNestedImpl();
    }

    public BaseKubernetesListFluent.ClusterPipelineTemplateItemsNested addNewClusterPipelineTemplateItemLike(ClusterPipelineTemplate item){
            return new ClusterPipelineTemplateItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.ClusterPipelineTemplateItemsNested setNewClusterPipelineTemplateItemLike(int index,ClusterPipelineTemplate item){
            return new ClusterPipelineTemplateItemsNestedImpl(index, item);
    }

    public A addToJobItems(int index,Job item){
            JobBuilder builder = new JobBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToJobItems(int index,Job item){
            JobBuilder builder = new JobBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToJobItems(Job... items){
            for (Job item : items) {JobBuilder builder = new JobBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToJobItems(Collection items){
            for (Job item : items) {JobBuilder builder = new JobBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromJobItems(Job... items){
            for (Job item : items) {JobBuilder builder = new JobBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromJobItems(Collection items){
            for (Job item : items) {JobBuilder builder = new JobBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.JobItemsNested addNewJobItem(){
            return new JobItemsNestedImpl();
    }

    public BaseKubernetesListFluent.JobItemsNested addNewJobItemLike(Job item){
            return new JobItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.JobItemsNested setNewJobItemLike(int index,Job item){
            return new JobItemsNestedImpl(index, item);
    }

    public A addToClusterPipelineTaskTemplateItems(int index,ClusterPipelineTaskTemplate item){
            ClusterPipelineTaskTemplateBuilder builder = new ClusterPipelineTaskTemplateBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToClusterPipelineTaskTemplateItems(int index,ClusterPipelineTaskTemplate item){
            ClusterPipelineTaskTemplateBuilder builder = new ClusterPipelineTaskTemplateBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToClusterPipelineTaskTemplateItems(ClusterPipelineTaskTemplate... items){
            for (ClusterPipelineTaskTemplate item : items) {ClusterPipelineTaskTemplateBuilder builder = new ClusterPipelineTaskTemplateBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToClusterPipelineTaskTemplateItems(Collection items){
            for (ClusterPipelineTaskTemplate item : items) {ClusterPipelineTaskTemplateBuilder builder = new ClusterPipelineTaskTemplateBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromClusterPipelineTaskTemplateItems(ClusterPipelineTaskTemplate... items){
            for (ClusterPipelineTaskTemplate item : items) {ClusterPipelineTaskTemplateBuilder builder = new ClusterPipelineTaskTemplateBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromClusterPipelineTaskTemplateItems(Collection items){
            for (ClusterPipelineTaskTemplate item : items) {ClusterPipelineTaskTemplateBuilder builder = new ClusterPipelineTaskTemplateBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.ClusterPipelineTaskTemplateItemsNested addNewClusterPipelineTaskTemplateItem(){
            return new ClusterPipelineTaskTemplateItemsNestedImpl();
    }

    public BaseKubernetesListFluent.ClusterPipelineTaskTemplateItemsNested addNewClusterPipelineTaskTemplateItemLike(ClusterPipelineTaskTemplate item){
            return new ClusterPipelineTaskTemplateItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.ClusterPipelineTaskTemplateItemsNested setNewClusterPipelineTaskTemplateItemLike(int index,ClusterPipelineTaskTemplate item){
            return new ClusterPipelineTaskTemplateItemsNestedImpl(index, item);
    }

    public A addToDeploymentItems(int index,Deployment item){
            DeploymentBuilder builder = new DeploymentBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToDeploymentItems(int index,Deployment item){
            DeploymentBuilder builder = new DeploymentBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToDeploymentItems(Deployment... items){
            for (Deployment item : items) {DeploymentBuilder builder = new DeploymentBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToDeploymentItems(Collection items){
            for (Deployment item : items) {DeploymentBuilder builder = new DeploymentBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromDeploymentItems(Deployment... items){
            for (Deployment item : items) {DeploymentBuilder builder = new DeploymentBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromDeploymentItems(Collection items){
            for (Deployment item : items) {DeploymentBuilder builder = new DeploymentBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.DeploymentItemsNested addNewDeploymentItem(){
            return new DeploymentItemsNestedImpl();
    }

    public BaseKubernetesListFluent.DeploymentItemsNested addNewDeploymentItemLike(Deployment item){
            return new DeploymentItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.DeploymentItemsNested setNewDeploymentItemLike(int index,Deployment item){
            return new DeploymentItemsNestedImpl(index, item);
    }

    public A addToJenkinsItems(int index,Jenkins item){
            JenkinsBuilder builder = new JenkinsBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToJenkinsItems(int index,Jenkins item){
            JenkinsBuilder builder = new JenkinsBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToJenkinsItems(Jenkins... items){
            for (Jenkins item : items) {JenkinsBuilder builder = new JenkinsBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToJenkinsItems(Collection items){
            for (Jenkins item : items) {JenkinsBuilder builder = new JenkinsBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromJenkinsItems(Jenkins... items){
            for (Jenkins item : items) {JenkinsBuilder builder = new JenkinsBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromJenkinsItems(Collection items){
            for (Jenkins item : items) {JenkinsBuilder builder = new JenkinsBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.JenkinsItemsNested addNewJenkinsItem(){
            return new JenkinsItemsNestedImpl();
    }

    public BaseKubernetesListFluent.JenkinsItemsNested addNewJenkinsItemLike(Jenkins item){
            return new JenkinsItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.JenkinsItemsNested setNewJenkinsItemLike(int index,Jenkins item){
            return new JenkinsItemsNestedImpl(index, item);
    }

    public A addToDaemonSetItems(int index,DaemonSet item){
            DaemonSetBuilder builder = new DaemonSetBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToDaemonSetItems(int index,DaemonSet item){
            DaemonSetBuilder builder = new DaemonSetBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToDaemonSetItems(DaemonSet... items){
            for (DaemonSet item : items) {DaemonSetBuilder builder = new DaemonSetBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToDaemonSetItems(Collection items){
            for (DaemonSet item : items) {DaemonSetBuilder builder = new DaemonSetBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromDaemonSetItems(DaemonSet... items){
            for (DaemonSet item : items) {DaemonSetBuilder builder = new DaemonSetBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromDaemonSetItems(Collection items){
            for (DaemonSet item : items) {DaemonSetBuilder builder = new DaemonSetBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.DaemonSetItemsNested addNewDaemonSetItem(){
            return new DaemonSetItemsNestedImpl();
    }

    public BaseKubernetesListFluent.DaemonSetItemsNested addNewDaemonSetItemLike(DaemonSet item){
            return new DaemonSetItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.DaemonSetItemsNested setNewDaemonSetItemLike(int index,DaemonSet item){
            return new DaemonSetItemsNestedImpl(index, item);
    }

    public A addToPodDisruptionBudgetItems(int index,PodDisruptionBudget item){
            PodDisruptionBudgetBuilder builder = new PodDisruptionBudgetBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToPodDisruptionBudgetItems(int index,PodDisruptionBudget item){
            PodDisruptionBudgetBuilder builder = new PodDisruptionBudgetBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToPodDisruptionBudgetItems(PodDisruptionBudget... items){
            for (PodDisruptionBudget item : items) {PodDisruptionBudgetBuilder builder = new PodDisruptionBudgetBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToPodDisruptionBudgetItems(Collection items){
            for (PodDisruptionBudget item : items) {PodDisruptionBudgetBuilder builder = new PodDisruptionBudgetBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromPodDisruptionBudgetItems(PodDisruptionBudget... items){
            for (PodDisruptionBudget item : items) {PodDisruptionBudgetBuilder builder = new PodDisruptionBudgetBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromPodDisruptionBudgetItems(Collection items){
            for (PodDisruptionBudget item : items) {PodDisruptionBudgetBuilder builder = new PodDisruptionBudgetBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.PodDisruptionBudgetItemsNested addNewPodDisruptionBudgetItem(){
            return new PodDisruptionBudgetItemsNestedImpl();
    }

    public BaseKubernetesListFluent.PodDisruptionBudgetItemsNested addNewPodDisruptionBudgetItemLike(PodDisruptionBudget item){
            return new PodDisruptionBudgetItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.PodDisruptionBudgetItemsNested setNewPodDisruptionBudgetItemLike(int index,PodDisruptionBudget item){
            return new PodDisruptionBudgetItemsNestedImpl(index, item);
    }

    public A addToProjectItems(int index,Project item){
            ProjectBuilder builder = new ProjectBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToProjectItems(int index,Project item){
            ProjectBuilder builder = new ProjectBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToProjectItems(Project... items){
            for (Project item : items) {ProjectBuilder builder = new ProjectBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToProjectItems(Collection items){
            for (Project item : items) {ProjectBuilder builder = new ProjectBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromProjectItems(Project... items){
            for (Project item : items) {ProjectBuilder builder = new ProjectBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromProjectItems(Collection items){
            for (Project item : items) {ProjectBuilder builder = new ProjectBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.ProjectItemsNested addNewProjectItem(){
            return new ProjectItemsNestedImpl();
    }

    public BaseKubernetesListFluent.ProjectItemsNested addNewProjectItemLike(Project item){
            return new ProjectItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.ProjectItemsNested setNewProjectItemLike(int index,Project item){
            return new ProjectItemsNestedImpl(index, item);
    }

    public A addToPersistentVolumeItems(int index,PersistentVolume item){
            PersistentVolumeBuilder builder = new PersistentVolumeBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToPersistentVolumeItems(int index,PersistentVolume item){
            PersistentVolumeBuilder builder = new PersistentVolumeBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToPersistentVolumeItems(PersistentVolume... items){
            for (PersistentVolume item : items) {PersistentVolumeBuilder builder = new PersistentVolumeBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToPersistentVolumeItems(Collection items){
            for (PersistentVolume item : items) {PersistentVolumeBuilder builder = new PersistentVolumeBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromPersistentVolumeItems(PersistentVolume... items){
            for (PersistentVolume item : items) {PersistentVolumeBuilder builder = new PersistentVolumeBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromPersistentVolumeItems(Collection items){
            for (PersistentVolume item : items) {PersistentVolumeBuilder builder = new PersistentVolumeBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.PersistentVolumeItemsNested addNewPersistentVolumeItem(){
            return new PersistentVolumeItemsNestedImpl();
    }

    public BaseKubernetesListFluent.PersistentVolumeItemsNested addNewPersistentVolumeItemLike(PersistentVolume item){
            return new PersistentVolumeItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.PersistentVolumeItemsNested setNewPersistentVolumeItemLike(int index,PersistentVolume item){
            return new PersistentVolumeItemsNestedImpl(index, item);
    }

    public A addToCodeRepositoryItems(int index,CodeRepository item){
            CodeRepositoryBuilder builder = new CodeRepositoryBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToCodeRepositoryItems(int index,CodeRepository item){
            CodeRepositoryBuilder builder = new CodeRepositoryBuilder(item);
            if (index < 0 || index >= _visitables.size()) { _visitables.add(builder); } else { _visitables.set(index, builder);}
            if (index < 0 || index >= items.size()) { items.add(builder); } else { items.set(index, builder);}
             return (A)this;
    }

    public A addToCodeRepositoryItems(CodeRepository... items){
            for (CodeRepository item : items) {CodeRepositoryBuilder builder = new CodeRepositoryBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToCodeRepositoryItems(Collection items){
            for (CodeRepository item : items) {CodeRepositoryBuilder builder = new CodeRepositoryBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromCodeRepositoryItems(CodeRepository... items){
            for (CodeRepository item : items) {CodeRepositoryBuilder builder = new CodeRepositoryBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromCodeRepositoryItems(Collection items){
            for (CodeRepository item : items) {CodeRepositoryBuilder builder = new CodeRepositoryBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.CodeRepositoryItemsNested addNewCodeRepositoryItem(){
            return new CodeRepositoryItemsNestedImpl();
    }

    public BaseKubernetesListFluent.CodeRepositoryItemsNested addNewCodeRepositoryItemLike(CodeRepository item){
            return new CodeRepositoryItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.CodeRepositoryItemsNested setNewCodeRepositoryItemLike(int index,CodeRepository item){
            return new CodeRepositoryItemsNestedImpl(index, item);
    }

    public String getKind(){
            return this.kind;
    }

    public A withKind(String kind){
            this.kind=kind; return (A) this;
    }

    public Boolean hasKind(){
            return this.kind!=null;
    }

    
/**
 * This method has been deprecated, please use method buildMetadata instead.
 */
@Deprecated public ListMeta getMetadata(){
            return this.metadata!=null?this.metadata.build():null;
    }

    public ListMeta buildMetadata(){
            return this.metadata!=null?this.metadata.build():null;
    }

    public A withMetadata(ListMeta metadata){
            _visitables.remove(this.metadata);
            if (metadata!=null){ this.metadata= new ListMetaBuilder(metadata); _visitables.add(this.metadata);} return (A) this;
    }

    public Boolean hasMetadata(){
            return this.metadata!=null;
    }

    public BaseKubernetesListFluent.MetadataNested withNewMetadata(){
            return new MetadataNestedImpl();
    }

    public BaseKubernetesListFluent.MetadataNested withNewMetadataLike(ListMeta item){
            return new MetadataNestedImpl(item);
    }

    public BaseKubernetesListFluent.MetadataNested editMetadata(){
            return withNewMetadataLike(getMetadata());
    }

    public BaseKubernetesListFluent.MetadataNested editOrNewMetadata(){
            return withNewMetadataLike(getMetadata() != null ? getMetadata(): new ListMetaBuilder().build());
    }

    public BaseKubernetesListFluent.MetadataNested editOrNewMetadataLike(ListMeta item){
            return withNewMetadataLike(getMetadata() != null ? getMetadata(): item);
    }

    public A withNewMetadata(String resourceVersion,String selfLink){
            return (A)withMetadata(new ListMeta(resourceVersion, selfLink));
    }

    public boolean equals(Object o){
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;
            if (!super.equals(o)) return false;
            BaseKubernetesListFluentImpl that = (BaseKubernetesListFluentImpl) o;
            if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false;
            if (items != null ? !items.equals(that.items) :that.items != null) return false;
            if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false;
            if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false;
            return true;
    }


    public class BindingItemsNestedImpl extends BindingFluentImpl> implements BaseKubernetesListFluent.BindingItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final BindingBuilder builder;
        private final int index;
    
            BindingItemsNestedImpl(int index,Binding item){
                    this.index = index;
                    this.builder = new BindingBuilder(this, item);
            }
            BindingItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new BindingBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToBindingItems(index, builder.build());
    }
    public N endBindingItem(){
            return and();
    }

}
    public class IngressItemsNestedImpl extends IngressFluentImpl> implements BaseKubernetesListFluent.IngressItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final IngressBuilder builder;
        private final int index;
    
            IngressItemsNestedImpl(int index,Ingress item){
                    this.index = index;
                    this.builder = new IngressBuilder(this, item);
            }
            IngressItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new IngressBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToIngressItems(index, builder.build());
    }
    public N endIngressItem(){
            return and();
    }

}
    public class LocalSubjectAccessReviewItemsNestedImpl extends LocalSubjectAccessReviewFluentImpl> implements BaseKubernetesListFluent.LocalSubjectAccessReviewItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final LocalSubjectAccessReviewBuilder builder;
        private final int index;
    
            LocalSubjectAccessReviewItemsNestedImpl(int index,LocalSubjectAccessReview item){
                    this.index = index;
                    this.builder = new LocalSubjectAccessReviewBuilder(this, item);
            }
            LocalSubjectAccessReviewItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new LocalSubjectAccessReviewBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToLocalSubjectAccessReviewItems(index, builder.build());
    }
    public N endLocalSubjectAccessReviewItem(){
            return and();
    }

}
    public class StatefulSetItemsNestedImpl extends StatefulSetFluentImpl> implements BaseKubernetesListFluent.StatefulSetItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final StatefulSetBuilder builder;
        private final int index;
    
            StatefulSetItemsNestedImpl(int index,StatefulSet item){
                    this.index = index;
                    this.builder = new StatefulSetBuilder(this, item);
            }
            StatefulSetItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new StatefulSetBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToStatefulSetItems(index, builder.build());
    }
    public N endStatefulSetItem(){
            return and();
    }

}
    public class PipelineTemplateTaskInstanceItemsNestedImpl extends PipelineTemplateTaskInstanceFluentImpl> implements BaseKubernetesListFluent.PipelineTemplateTaskInstanceItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final PipelineTemplateTaskInstanceBuilder builder;
        private final int index;
    
            PipelineTemplateTaskInstanceItemsNestedImpl(int index,PipelineTemplateTaskInstance item){
                    this.index = index;
                    this.builder = new PipelineTemplateTaskInstanceBuilder(this, item);
            }
            PipelineTemplateTaskInstanceItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new PipelineTemplateTaskInstanceBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToPipelineTemplateTaskInstanceItems(index, builder.build());
    }
    public N endPipelineTemplateTaskInstanceItem(){
            return and();
    }

}
    public class PodSecurityPolicyItemsNestedImpl extends PodSecurityPolicyFluentImpl> implements BaseKubernetesListFluent.PodSecurityPolicyItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final PodSecurityPolicyBuilder builder;
        private final int index;
    
            PodSecurityPolicyItemsNestedImpl(int index,PodSecurityPolicy item){
                    this.index = index;
                    this.builder = new PodSecurityPolicyBuilder(this, item);
            }
            PodSecurityPolicyItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new PodSecurityPolicyBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToPodSecurityPolicyItems(index, builder.build());
    }
    public N endPodSecurityPolicyItem(){
            return and();
    }

}
    public class PipelineItemsNestedImpl extends PipelineFluentImpl> implements BaseKubernetesListFluent.PipelineItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final PipelineBuilder builder;
        private final int index;
    
            PipelineItemsNestedImpl(int index,Pipeline item){
                    this.index = index;
                    this.builder = new PipelineBuilder(this, item);
            }
            PipelineItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new PipelineBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToPipelineItems(index, builder.build());
    }
    public N endPipelineItem(){
            return and();
    }

}
    public class ResourceQuotaItemsNestedImpl extends ResourceQuotaFluentImpl> implements BaseKubernetesListFluent.ResourceQuotaItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final ResourceQuotaBuilder builder;
        private final int index;
    
            ResourceQuotaItemsNestedImpl(int index,ResourceQuota item){
                    this.index = index;
                    this.builder = new ResourceQuotaBuilder(this, item);
            }
            ResourceQuotaItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new ResourceQuotaBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToResourceQuotaItems(index, builder.build());
    }
    public N endResourceQuotaItem(){
            return and();
    }

}
    public class ServiceAccountItemsNestedImpl extends ServiceAccountFluentImpl> implements BaseKubernetesListFluent.ServiceAccountItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final ServiceAccountBuilder builder;
        private final int index;
    
            ServiceAccountItemsNestedImpl(int index,ServiceAccount item){
                    this.index = index;
                    this.builder = new ServiceAccountBuilder(this, item);
            }
            ServiceAccountItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new ServiceAccountBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToServiceAccountItems(index, builder.build());
    }
    public N endServiceAccountItem(){
            return and();
    }

}
    public class ConfigMapItemsNestedImpl extends ConfigMapFluentImpl> implements BaseKubernetesListFluent.ConfigMapItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final ConfigMapBuilder builder;
        private final int index;
    
            ConfigMapItemsNestedImpl(int index,ConfigMap item){
                    this.index = index;
                    this.builder = new ConfigMapBuilder(this, item);
            }
            ConfigMapItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new ConfigMapBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToConfigMapItems(index, builder.build());
    }
    public N endConfigMapItem(){
            return and();
    }

}
    public class JenkinsBindingItemsNestedImpl extends JenkinsBindingFluentImpl> implements BaseKubernetesListFluent.JenkinsBindingItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final JenkinsBindingBuilder builder;
        private final int index;
    
            JenkinsBindingItemsNestedImpl(int index,JenkinsBinding item){
                    this.index = index;
                    this.builder = new JenkinsBindingBuilder(this, item);
            }
            JenkinsBindingItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new JenkinsBindingBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToJenkinsBindingItems(index, builder.build());
    }
    public N endJenkinsBindingItem(){
            return and();
    }

}
    public class PipelineTemplateItemsNestedImpl extends PipelineTemplateFluentImpl> implements BaseKubernetesListFluent.PipelineTemplateItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final PipelineTemplateBuilder builder;
        private final int index;
    
            PipelineTemplateItemsNestedImpl(int index,PipelineTemplate item){
                    this.index = index;
                    this.builder = new PipelineTemplateBuilder(this, item);
            }
            PipelineTemplateItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new PipelineTemplateBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToPipelineTemplateItems(index, builder.build());
    }
    public N endPipelineTemplateItem(){
            return and();
    }

}
    public class CronJobItemsNestedImpl extends CronJobFluentImpl> implements BaseKubernetesListFluent.CronJobItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final CronJobBuilder builder;
        private final int index;
    
            CronJobItemsNestedImpl(int index,CronJob item){
                    this.index = index;
                    this.builder = new CronJobBuilder(this, item);
            }
            CronJobItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new CronJobBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToCronJobItems(index, builder.build());
    }
    public N endCronJobItem(){
            return and();
    }

}
    public class SubjectAccessReviewItemsNestedImpl extends SubjectAccessReviewFluentImpl> implements BaseKubernetesListFluent.SubjectAccessReviewItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final SubjectAccessReviewBuilder builder;
        private final int index;
    
            SubjectAccessReviewItemsNestedImpl(int index,SubjectAccessReview item){
                    this.index = index;
                    this.builder = new SubjectAccessReviewBuilder(this, item);
            }
            SubjectAccessReviewItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new SubjectAccessReviewBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToSubjectAccessReviewItems(index, builder.build());
    }
    public N endSubjectAccessReviewItem(){
            return and();
    }

}
    public class PodTemplateItemsNestedImpl extends PodTemplateFluentImpl> implements BaseKubernetesListFluent.PodTemplateItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final PodTemplateBuilder builder;
        private final int index;
    
            PodTemplateItemsNestedImpl(int index,PodTemplate item){
                    this.index = index;
                    this.builder = new PodTemplateBuilder(this, item);
            }
            PodTemplateItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new PodTemplateBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToPodTemplateItems(index, builder.build());
    }
    public N endPodTemplateItem(){
            return and();
    }

}
    public class TokenReviewItemsNestedImpl extends TokenReviewFluentImpl> implements BaseKubernetesListFluent.TokenReviewItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final TokenReviewBuilder builder;
        private final int index;
    
            TokenReviewItemsNestedImpl(int index,TokenReview item){
                    this.index = index;
                    this.builder = new TokenReviewBuilder(this, item);
            }
            TokenReviewItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new TokenReviewBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToTokenReviewItems(index, builder.build());
    }
    public N endTokenReviewItem(){
            return and();
    }

}
    public class CustomResourceDefinitionItemsNestedImpl extends CustomResourceDefinitionFluentImpl> implements BaseKubernetesListFluent.CustomResourceDefinitionItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final CustomResourceDefinitionBuilder builder;
        private final int index;
    
            CustomResourceDefinitionItemsNestedImpl(int index,CustomResourceDefinition item){
                    this.index = index;
                    this.builder = new CustomResourceDefinitionBuilder(this, item);
            }
            CustomResourceDefinitionItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new CustomResourceDefinitionBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToCustomResourceDefinitionItems(index, builder.build());
    }
    public N endCustomResourceDefinitionItem(){
            return and();
    }

}
    public class StorageClassItemsNestedImpl extends StorageClassFluentImpl> implements BaseKubernetesListFluent.StorageClassItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final StorageClassBuilder builder;
        private final int index;
    
            StorageClassItemsNestedImpl(int index,StorageClass item){
                    this.index = index;
                    this.builder = new StorageClassBuilder(this, item);
            }
            StorageClassItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new StorageClassBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToStorageClassItems(index, builder.build());
    }
    public N endStorageClassItem(){
            return and();
    }

}
    public class PipelineConfigTemplateItemsNestedImpl extends PipelineConfigTemplateFluentImpl> implements BaseKubernetesListFluent.PipelineConfigTemplateItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final PipelineConfigTemplateBuilder builder;
        private final int index;
    
            PipelineConfigTemplateItemsNestedImpl(int index,PipelineConfigTemplate item){
                    this.index = index;
                    this.builder = new PipelineConfigTemplateBuilder(this, item);
            }
            PipelineConfigTemplateItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new PipelineConfigTemplateBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToPipelineConfigTemplateItems(index, builder.build());
    }
    public N endPipelineConfigTemplateItem(){
            return and();
    }

}
    public class NamespaceItemsNestedImpl extends NamespaceFluentImpl> implements BaseKubernetesListFluent.NamespaceItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final NamespaceBuilder builder;
        private final int index;
    
            NamespaceItemsNestedImpl(int index,Namespace item){
                    this.index = index;
                    this.builder = new NamespaceBuilder(this, item);
            }
            NamespaceItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new NamespaceBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToNamespaceItems(index, builder.build());
    }
    public N endNamespaceItem(){
            return and();
    }

}
    public class PipelineConfigItemsNestedImpl extends PipelineConfigFluentImpl> implements BaseKubernetesListFluent.PipelineConfigItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final PipelineConfigBuilder builder;
        private final int index;
    
            PipelineConfigItemsNestedImpl(int index,PipelineConfig item){
                    this.index = index;
                    this.builder = new PipelineConfigBuilder(this, item);
            }
            PipelineConfigItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new PipelineConfigBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToPipelineConfigItems(index, builder.build());
    }
    public N endPipelineConfigItem(){
            return and();
    }

}
    public class CodeRepoServiceItemsNestedImpl extends CodeRepoServiceFluentImpl> implements BaseKubernetesListFluent.CodeRepoServiceItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final CodeRepoServiceBuilder builder;
        private final int index;
    
            CodeRepoServiceItemsNestedImpl(int index,CodeRepoService item){
                    this.index = index;
                    this.builder = new CodeRepoServiceBuilder(this, item);
            }
            CodeRepoServiceItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new CodeRepoServiceBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToCodeRepoServiceItems(index, builder.build());
    }
    public N endCodeRepoServiceItem(){
            return and();
    }

}
    public class CodeRepoBindingItemsNestedImpl extends CodeRepoBindingFluentImpl> implements BaseKubernetesListFluent.CodeRepoBindingItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final CodeRepoBindingBuilder builder;
        private final int index;
    
            CodeRepoBindingItemsNestedImpl(int index,CodeRepoBinding item){
                    this.index = index;
                    this.builder = new CodeRepoBindingBuilder(this, item);
            }
            CodeRepoBindingItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new CodeRepoBindingBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToCodeRepoBindingItems(index, builder.build());
    }
    public N endCodeRepoBindingItem(){
            return and();
    }

}
    public class ScaleItemsNestedImpl extends ScaleFluentImpl> implements BaseKubernetesListFluent.ScaleItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final ScaleBuilder builder;
        private final int index;
    
            ScaleItemsNestedImpl(int index,Scale item){
                    this.index = index;
                    this.builder = new ScaleBuilder(this, item);
            }
            ScaleItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new ScaleBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToScaleItems(index, builder.build());
    }
    public N endScaleItem(){
            return and();
    }

}
    public class PipelineTaskTemplateItemsNestedImpl extends PipelineTaskTemplateFluentImpl> implements BaseKubernetesListFluent.PipelineTaskTemplateItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final PipelineTaskTemplateBuilder builder;
        private final int index;
    
            PipelineTaskTemplateItemsNestedImpl(int index,PipelineTaskTemplate item){
                    this.index = index;
                    this.builder = new PipelineTaskTemplateBuilder(this, item);
            }
            PipelineTaskTemplateItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new PipelineTaskTemplateBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToPipelineTaskTemplateItems(index, builder.build());
    }
    public N endPipelineTaskTemplateItem(){
            return and();
    }

}
    public class PodItemsNestedImpl extends PodFluentImpl> implements BaseKubernetesListFluent.PodItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final PodBuilder builder;
        private final int index;
    
            PodItemsNestedImpl(int index,Pod item){
                    this.index = index;
                    this.builder = new PodBuilder(this, item);
            }
            PodItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new PodBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToPodItems(index, builder.build());
    }
    public N endPodItem(){
            return and();
    }

}
    public class HorizontalPodAutoscalerItemsNestedImpl extends HorizontalPodAutoscalerFluentImpl> implements BaseKubernetesListFluent.HorizontalPodAutoscalerItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final HorizontalPodAutoscalerBuilder builder;
        private final int index;
    
            HorizontalPodAutoscalerItemsNestedImpl(int index,HorizontalPodAutoscaler item){
                    this.index = index;
                    this.builder = new HorizontalPodAutoscalerBuilder(this, item);
            }
            HorizontalPodAutoscalerItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new HorizontalPodAutoscalerBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToHorizontalPodAutoscalerItems(index, builder.build());
    }
    public N endHorizontalPodAutoscalerItem(){
            return and();
    }

}
    public class ThirdPartyResourceItemsNestedImpl extends ThirdPartyResourceFluentImpl> implements BaseKubernetesListFluent.ThirdPartyResourceItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final ThirdPartyResourceBuilder builder;
        private final int index;
    
            ThirdPartyResourceItemsNestedImpl(int index,ThirdPartyResource item){
                    this.index = index;
                    this.builder = new ThirdPartyResourceBuilder(this, item);
            }
            ThirdPartyResourceItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new ThirdPartyResourceBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToThirdPartyResourceItems(index, builder.build());
    }
    public N endThirdPartyResourceItem(){
            return and();
    }

}
    public class ComponentStatusItemsNestedImpl extends ComponentStatusFluentImpl> implements BaseKubernetesListFluent.ComponentStatusItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final ComponentStatusBuilder builder;
        private final int index;
    
            ComponentStatusItemsNestedImpl(int index,ComponentStatus item){
                    this.index = index;
                    this.builder = new ComponentStatusBuilder(this, item);
            }
            ComponentStatusItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new ComponentStatusBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToComponentStatusItems(index, builder.build());
    }
    public N endComponentStatusItem(){
            return and();
    }

}
    public class PersistentVolumeClaimItemsNestedImpl extends PersistentVolumeClaimFluentImpl> implements BaseKubernetesListFluent.PersistentVolumeClaimItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final PersistentVolumeClaimBuilder builder;
        private final int index;
    
            PersistentVolumeClaimItemsNestedImpl(int index,PersistentVolumeClaim item){
                    this.index = index;
                    this.builder = new PersistentVolumeClaimBuilder(this, item);
            }
            PersistentVolumeClaimItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new PersistentVolumeClaimBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToPersistentVolumeClaimItems(index, builder.build());
    }
    public N endPersistentVolumeClaimItem(){
            return and();
    }

}
    public class SecretItemsNestedImpl extends SecretFluentImpl> implements BaseKubernetesListFluent.SecretItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final SecretBuilder builder;
        private final int index;
    
            SecretItemsNestedImpl(int index,Secret item){
                    this.index = index;
                    this.builder = new SecretBuilder(this, item);
            }
            SecretItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new SecretBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToSecretItems(index, builder.build());
    }
    public N endSecretItem(){
            return and();
    }

}
    public class ReplicationControllerItemsNestedImpl extends ReplicationControllerFluentImpl> implements BaseKubernetesListFluent.ReplicationControllerItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final ReplicationControllerBuilder builder;
        private final int index;
    
            ReplicationControllerItemsNestedImpl(int index,ReplicationController item){
                    this.index = index;
                    this.builder = new ReplicationControllerBuilder(this, item);
            }
            ReplicationControllerItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new ReplicationControllerBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToReplicationControllerItems(index, builder.build());
    }
    public N endReplicationControllerItem(){
            return and();
    }

}
    public class EndpointsItemsNestedImpl extends EndpointsFluentImpl> implements BaseKubernetesListFluent.EndpointsItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final EndpointsBuilder builder;
        private final int index;
    
            EndpointsItemsNestedImpl(int index,Endpoints item){
                    this.index = index;
                    this.builder = new EndpointsBuilder(this, item);
            }
            EndpointsItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new EndpointsBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToEndpointsItems(index, builder.build());
    }
    public N endEndpointsItem(){
            return and();
    }

}
    public class LimitRangeItemsNestedImpl extends LimitRangeFluentImpl> implements BaseKubernetesListFluent.LimitRangeItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final LimitRangeBuilder builder;
        private final int index;
    
            LimitRangeItemsNestedImpl(int index,LimitRange item){
                    this.index = index;
                    this.builder = new LimitRangeBuilder(this, item);
            }
            LimitRangeItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new LimitRangeBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToLimitRangeItems(index, builder.build());
    }
    public N endLimitRangeItem(){
            return and();
    }

}
    public class NetworkPolicyItemsNestedImpl extends NetworkPolicyFluentImpl> implements BaseKubernetesListFluent.NetworkPolicyItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final NetworkPolicyBuilder builder;
        private final int index;
    
            NetworkPolicyItemsNestedImpl(int index,NetworkPolicy item){
                    this.index = index;
                    this.builder = new NetworkPolicyBuilder(this, item);
            }
            NetworkPolicyItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new NetworkPolicyBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToNetworkPolicyItems(index, builder.build());
    }
    public N endNetworkPolicyItem(){
            return and();
    }

}
    public class ServiceItemsNestedImpl extends ServiceFluentImpl> implements BaseKubernetesListFluent.ServiceItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final ServiceBuilder builder;
        private final int index;
    
            ServiceItemsNestedImpl(int index,Service item){
                    this.index = index;
                    this.builder = new ServiceBuilder(this, item);
            }
            ServiceItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new ServiceBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToServiceItems(index, builder.build());
    }
    public N endServiceItem(){
            return and();
    }

}
    public class EventItemsNestedImpl extends EventFluentImpl> implements BaseKubernetesListFluent.EventItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final EventBuilder builder;
        private final int index;
    
            EventItemsNestedImpl(int index,Event item){
                    this.index = index;
                    this.builder = new EventBuilder(this, item);
            }
            EventItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new EventBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToEventItems(index, builder.build());
    }
    public N endEventItem(){
            return and();
    }

}
    public class NodeItemsNestedImpl extends NodeFluentImpl> implements BaseKubernetesListFluent.NodeItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final NodeBuilder builder;
        private final int index;
    
            NodeItemsNestedImpl(int index,Node item){
                    this.index = index;
                    this.builder = new NodeBuilder(this, item);
            }
            NodeItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new NodeBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToNodeItems(index, builder.build());
    }
    public N endNodeItem(){
            return and();
    }

}
    public class ReplicaSetItemsNestedImpl extends ReplicaSetFluentImpl> implements BaseKubernetesListFluent.ReplicaSetItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final ReplicaSetBuilder builder;
        private final int index;
    
            ReplicaSetItemsNestedImpl(int index,ReplicaSet item){
                    this.index = index;
                    this.builder = new ReplicaSetBuilder(this, item);
            }
            ReplicaSetItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new ReplicaSetBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToReplicaSetItems(index, builder.build());
    }
    public N endReplicaSetItem(){
            return and();
    }

}
    public class ClusterPipelineTemplateItemsNestedImpl extends ClusterPipelineTemplateFluentImpl> implements BaseKubernetesListFluent.ClusterPipelineTemplateItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final ClusterPipelineTemplateBuilder builder;
        private final int index;
    
            ClusterPipelineTemplateItemsNestedImpl(int index,ClusterPipelineTemplate item){
                    this.index = index;
                    this.builder = new ClusterPipelineTemplateBuilder(this, item);
            }
            ClusterPipelineTemplateItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new ClusterPipelineTemplateBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToClusterPipelineTemplateItems(index, builder.build());
    }
    public N endClusterPipelineTemplateItem(){
            return and();
    }

}
    public class JobItemsNestedImpl extends JobFluentImpl> implements BaseKubernetesListFluent.JobItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final JobBuilder builder;
        private final int index;
    
            JobItemsNestedImpl(int index,Job item){
                    this.index = index;
                    this.builder = new JobBuilder(this, item);
            }
            JobItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new JobBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToJobItems(index, builder.build());
    }
    public N endJobItem(){
            return and();
    }

}
    public class ClusterPipelineTaskTemplateItemsNestedImpl extends ClusterPipelineTaskTemplateFluentImpl> implements BaseKubernetesListFluent.ClusterPipelineTaskTemplateItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final ClusterPipelineTaskTemplateBuilder builder;
        private final int index;
    
            ClusterPipelineTaskTemplateItemsNestedImpl(int index,ClusterPipelineTaskTemplate item){
                    this.index = index;
                    this.builder = new ClusterPipelineTaskTemplateBuilder(this, item);
            }
            ClusterPipelineTaskTemplateItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new ClusterPipelineTaskTemplateBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToClusterPipelineTaskTemplateItems(index, builder.build());
    }
    public N endClusterPipelineTaskTemplateItem(){
            return and();
    }

}
    public class DeploymentItemsNestedImpl extends DeploymentFluentImpl> implements BaseKubernetesListFluent.DeploymentItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final DeploymentBuilder builder;
        private final int index;
    
            DeploymentItemsNestedImpl(int index,Deployment item){
                    this.index = index;
                    this.builder = new DeploymentBuilder(this, item);
            }
            DeploymentItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new DeploymentBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToDeploymentItems(index, builder.build());
    }
    public N endDeploymentItem(){
            return and();
    }

}
    public class JenkinsItemsNestedImpl extends JenkinsFluentImpl> implements BaseKubernetesListFluent.JenkinsItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final JenkinsBuilder builder;
        private final int index;
    
            JenkinsItemsNestedImpl(int index,Jenkins item){
                    this.index = index;
                    this.builder = new JenkinsBuilder(this, item);
            }
            JenkinsItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new JenkinsBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToJenkinsItems(index, builder.build());
    }
    public N endJenkinsItem(){
            return and();
    }

}
    public class DaemonSetItemsNestedImpl extends DaemonSetFluentImpl> implements BaseKubernetesListFluent.DaemonSetItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final DaemonSetBuilder builder;
        private final int index;
    
            DaemonSetItemsNestedImpl(int index,DaemonSet item){
                    this.index = index;
                    this.builder = new DaemonSetBuilder(this, item);
            }
            DaemonSetItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new DaemonSetBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToDaemonSetItems(index, builder.build());
    }
    public N endDaemonSetItem(){
            return and();
    }

}
    public class PodDisruptionBudgetItemsNestedImpl extends PodDisruptionBudgetFluentImpl> implements BaseKubernetesListFluent.PodDisruptionBudgetItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final PodDisruptionBudgetBuilder builder;
        private final int index;
    
            PodDisruptionBudgetItemsNestedImpl(int index,PodDisruptionBudget item){
                    this.index = index;
                    this.builder = new PodDisruptionBudgetBuilder(this, item);
            }
            PodDisruptionBudgetItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new PodDisruptionBudgetBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToPodDisruptionBudgetItems(index, builder.build());
    }
    public N endPodDisruptionBudgetItem(){
            return and();
    }

}
    public class ProjectItemsNestedImpl extends ProjectFluentImpl> implements BaseKubernetesListFluent.ProjectItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final ProjectBuilder builder;
        private final int index;
    
            ProjectItemsNestedImpl(int index,Project item){
                    this.index = index;
                    this.builder = new ProjectBuilder(this, item);
            }
            ProjectItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new ProjectBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToProjectItems(index, builder.build());
    }
    public N endProjectItem(){
            return and();
    }

}
    public class PersistentVolumeItemsNestedImpl extends PersistentVolumeFluentImpl> implements BaseKubernetesListFluent.PersistentVolumeItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final PersistentVolumeBuilder builder;
        private final int index;
    
            PersistentVolumeItemsNestedImpl(int index,PersistentVolume item){
                    this.index = index;
                    this.builder = new PersistentVolumeBuilder(this, item);
            }
            PersistentVolumeItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new PersistentVolumeBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToPersistentVolumeItems(index, builder.build());
    }
    public N endPersistentVolumeItem(){
            return and();
    }

}
    public class CodeRepositoryItemsNestedImpl extends CodeRepositoryFluentImpl> implements BaseKubernetesListFluent.CodeRepositoryItemsNested,io.alauda.kubernetes.api.builder.Nested{

            private final CodeRepositoryBuilder builder;
        private final int index;
    
            CodeRepositoryItemsNestedImpl(int index,CodeRepository item){
                    this.index = index;
                    this.builder = new CodeRepositoryBuilder(this, item);
            }
            CodeRepositoryItemsNestedImpl(){
                    this.index = -1;
                    this.builder = new CodeRepositoryBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.setToCodeRepositoryItems(index, builder.build());
    }
    public N endCodeRepositoryItem(){
            return and();
    }

}
    public class MetadataNestedImpl extends ListMetaFluentImpl> implements BaseKubernetesListFluent.MetadataNested,io.alauda.kubernetes.api.builder.Nested{

            private final ListMetaBuilder builder;
    
            MetadataNestedImpl(ListMeta item){
                    this.builder = new ListMetaBuilder(this, item);
            }
            MetadataNestedImpl(){
                    this.builder = new ListMetaBuilder(this);
            }
    
    public N and(){
            return (N) BaseKubernetesListFluentImpl.this.withMetadata(builder.build());
    }
    public N endMetadata(){
            return and();
    }

}


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy