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 io.alauda.devops.api.model.ClusterRoleBinding;
import io.alauda.devops.api.model.DeploymentConfigBuilder;
import java.util.ArrayList;
import java.lang.String;
import io.alauda.devops.api.model.OAuthAccessTokenBuilder;
import io.alauda.devops.api.model.OAuthAccessTokenFluentImpl;
import io.alauda.kubernetes.api.model.apiextensions.CustomResourceDefinitionFluentImpl;
import io.alauda.devops.api.model.UserBuilder;
import io.alauda.devops.api.model.ClusterRole;
import io.alauda.kubernetes.api.model.extensions.NetworkPolicyBuilder;
import io.alauda.devops.api.model.PolicyBindingBuilder;
import io.alauda.kubernetes.api.model.authorization.SubjectAccessReviewBuilder;
import io.alauda.devops.api.model.OAuthAccessToken;
import io.alauda.devops.api.model.DeploymentConfig;
import io.alauda.devops.api.model.OAuthClientAuthorization;
import io.alauda.devops.api.model.OAuthClientBuilder;
import io.alauda.devops.api.model.Group;
import io.alauda.devops.api.model.RouteBuilder;
import io.alauda.devops.api.model.BuildRequestFluentImpl;
import io.alauda.kubernetes.api.model.authorization.SubjectAccessReview;
import io.alauda.kubernetes.api.model.extensions.StatefulSetBuilder;
import io.alauda.devops.api.model.IdentityFluentImpl;
import java.lang.Deprecated;
import io.alauda.kubernetes.api.model.extensions.PodSecurityPolicy;
import io.alauda.kubernetes.api.model.extensions.ReplicaSet;
import io.alauda.devops.api.model.BuildConfigFluentImpl;
import io.alauda.devops.api.model.SecurityContextConstraints;
import io.alauda.kubernetes.api.model.authorization.SubjectAccessReviewFluentImpl;
import io.alauda.devops.api.model.OAuthAuthorizeTokenBuilder;
import io.alauda.devops.api.model.ImageSignatureBuilder;
import io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReviewBuilder;
import io.alauda.devops.api.model.ImageSignatureFluentImpl;
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.devops.api.model.GroupBuilder;
import io.alauda.kubernetes.api.model.extensions.Deployment;
import io.alauda.kubernetes.api.builder.Predicate;
import java.util.List;
import io.alauda.devops.api.model.Route;
import io.alauda.devops.api.model.RouteFluentImpl;
import io.alauda.devops.api.model.SecurityContextConstraintsFluentImpl;
import io.alauda.devops.api.model.ClusterRoleBindingBuilder;
import io.alauda.devops.api.model.ClusterPolicyBindingFluentImpl;
import io.alauda.devops.api.model.OAuthAuthorizeToken;
import io.alauda.kubernetes.api.model.extensions.ThirdPartyResourceFluentImpl;
import io.alauda.devops.api.model.Role;
import io.alauda.devops.api.model.ImageFluentImpl;
import io.alauda.devops.api.model.OAuthClientAuthorizationBuilder;
import io.alauda.kubernetes.api.model.extensions.DaemonSet;
import io.alauda.kubernetes.api.model.extensions.ReplicaSetFluentImpl;
import javax.validation.constraints.NotNull;
import io.alauda.devops.api.model.ImageBuilder;
import io.alauda.devops.api.model.ImageStreamTagBuilder;
import io.alauda.devops.api.model.ClusterRoleBindingFluentImpl;
import io.alauda.kubernetes.api.model.extensions.PodSecurityPolicyFluentImpl;
import io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReview;
import io.alauda.devops.api.model.PolicyBinding;
import io.alauda.devops.api.model.RoleBuilder;
import io.alauda.kubernetes.api.model.extensions.IngressBuilder;
import io.alauda.devops.api.model.UserFluentImpl;
import io.alauda.devops.api.model.ClusterPolicyFluentImpl;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.alauda.devops.api.model.ClusterRoleFluentImpl;
import io.alauda.devops.api.model.ImageStreamTag;
import io.alauda.devops.api.model.Image;
import io.alauda.devops.api.model.ImageStreamBuilder;
import io.alauda.devops.api.model.BuildRequestBuilder;
import io.alauda.kubernetes.api.builder.BaseFluent;
import io.alauda.devops.api.model.BuildConfig;
import io.alauda.devops.api.model.SecurityContextConstraintsBuilder;
import io.alauda.devops.api.model.Identity;
import java.lang.Boolean;
import io.alauda.devops.api.model.ClusterRoleBuilder;
import io.alauda.devops.api.model.OAuthClientAuthorizationFluentImpl;
import io.alauda.kubernetes.api.model.extensions.NetworkPolicy;
import io.alauda.devops.api.model.RoleBindingRestrictionBuilder;
import io.alauda.kubernetes.api.model.extensions.DaemonSetFluentImpl;
import io.alauda.devops.api.model.BuildBuilder;
import javax.validation.Valid;
import java.lang.Object;
import io.alauda.kubernetes.api.model.extensions.DeploymentBuilder;
import io.alauda.devops.api.model.ImageStreamTagFluentImpl;
import io.alauda.devops.api.model.PolicyBindingFluentImpl;
import io.alauda.kubernetes.api.model.extensions.ThirdPartyResource;
import io.alauda.devops.api.model.TemplateFluentImpl;
import io.alauda.devops.api.model.DeploymentConfigFluentImpl;
import io.alauda.kubernetes.api.model.authentication.TokenReviewBuilder;
import io.alauda.devops.api.model.RoleBindingRestrictionFluentImpl;
import io.alauda.devops.api.model.RoleBindingRestriction;
import io.alauda.devops.api.model.ClusterPolicyBuilder;
import io.alauda.devops.api.model.ClusterPolicy;
import io.alauda.devops.api.model.RoleFluentImpl;
import io.alauda.kubernetes.api.model.authentication.TokenReview;
import io.alauda.devops.api.model.ImageSignature;
import io.alauda.devops.api.model.OAuthAuthorizeTokenFluentImpl;
import io.alauda.devops.api.model.Policy;
import io.alauda.kubernetes.api.model.apiextensions.CustomResourceDefinitionBuilder;
import io.alauda.devops.api.model.GroupFluentImpl;
import io.alauda.kubernetes.api.builder.VisitableBuilder;
import io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReviewFluentImpl;
import io.alauda.devops.api.model.TemplateBuilder;
import io.alauda.devops.api.model.ImageStream;
import io.alauda.kubernetes.api.model.extensions.DeploymentFluentImpl;
import io.alauda.kubernetes.api.model.policy.PodDisruptionBudgetBuilder;
import io.alauda.devops.api.model.BuildConfigBuilder;
import io.alauda.devops.api.model.Template;
import io.alauda.devops.api.model.Build;
import io.alauda.devops.api.model.RoleBinding;
import io.alauda.devops.api.model.PolicyBuilder;
import io.alauda.kubernetes.api.model.extensions.ThirdPartyResourceBuilder;
import io.alauda.kubernetes.api.model.extensions.ScaleBuilder;
import io.alauda.devops.api.model.ClusterPolicyBindingBuilder;
import io.alauda.devops.api.model.RoleBindingBuilder;
import io.alauda.kubernetes.api.model.extensions.NetworkPolicyFluentImpl;
import io.alauda.kubernetes.api.model.extensions.Ingress;
import io.alauda.devops.api.model.BuildFluentImpl;
import io.alauda.devops.api.model.BuildRequest;
import io.alauda.devops.api.model.OAuthClientFluentImpl;
import io.alauda.devops.api.model.IdentityBuilder;
import java.util.Collection;
import io.alauda.kubernetes.api.model.extensions.StatefulSet;
import io.alauda.devops.api.model.ImageStreamFluentImpl;
import io.alauda.devops.api.model.User;
import io.alauda.kubernetes.api.model.policy.PodDisruptionBudget;
import io.alauda.devops.api.model.OAuthClient;
import io.alauda.kubernetes.api.builder.Nested;
import io.alauda.kubernetes.api.model.extensions.DaemonSetBuilder;
import io.alauda.devops.api.model.ClusterPolicyBinding;
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.devops.api.model.RoleBindingFluentImpl;
import io.alauda.kubernetes.api.model.extensions.PodSecurityPolicyBuilder;
import io.alauda.devops.api.model.PolicyFluentImpl;

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 Ingress){addToIngressItems(index, (Ingress)item);}
 else if (item instanceof Route){addToRouteItems(index, (Route)item);}
 else if (item instanceof PolicyBinding){addToPolicyBindingItems(index, (PolicyBinding)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 OAuthClientAuthorization){addToOAuthClientAuthorizationItems(index, (OAuthClientAuthorization)item);}
 else if (item instanceof Policy){addToPolicyItems(index, (Policy)item);}
 else if (item instanceof OAuthAuthorizeToken){addToOAuthAuthorizeTokenItems(index, (OAuthAuthorizeToken)item);}
 else if (item instanceof JenkinsBinding){addToJenkinsBindingItems(index, (JenkinsBinding)item);}
 else if (item instanceof Identity){addToIdentityItems(index, (Identity)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 ImageSignature){addToImageSignatureItems(index, (ImageSignature)item);}
 else if (item instanceof ClusterRole){addToClusterRoleItems(index, (ClusterRole)item);}
 else if (item instanceof Namespace){addToNamespaceItems(index, (Namespace)item);}
 else if (item instanceof ClusterPolicy){addToClusterPolicyItems(index, (ClusterPolicy)item);}
 else if (item instanceof Build){addToBuildItems(index, (Build)item);}
 else if (item instanceof Scale){addToScaleItems(index, (Scale)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 ImageStreamTag){addToImageStreamTagItems(index, (ImageStreamTag)item);}
 else if (item instanceof ComponentStatus){addToComponentStatusItems(index, (ComponentStatus)item);}
 else if (item instanceof Secret){addToSecretItems(index, (Secret)item);}
 else if (item instanceof ReplicationController){addToReplicationControllerItems(index, (ReplicationController)item);}
 else if (item instanceof LimitRange){addToLimitRangeItems(index, (LimitRange)item);}
 else if (item instanceof Endpoints){addToEndpointsItems(index, (Endpoints)item);}
 else if (item instanceof SecurityContextConstraints){addToSecurityContextConstraintsItems(index, (SecurityContextConstraints)item);}
 else if (item instanceof Group){addToGroupItems(index, (Group)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 ClusterRoleBinding){addToClusterRoleBindingItems(index, (ClusterRoleBinding)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 ImageStream){addToImageStreamItems(index, (ImageStream)item);}
 else if (item instanceof RoleBindingRestriction){addToRoleBindingRestrictionItems(index, (RoleBindingRestriction)item);}
 else if (item instanceof Binding){addToBindingItems(index, (Binding)item);}
 else if (item instanceof io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReview){addToLocalSubjectAccessReviewItems(index, (io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReview)item);}
 else if (item instanceof StatefulSet){addToStatefulSetItems(index, (StatefulSet)item);}
 else if (item instanceof PipelineTemplateTaskInstance){addToPipelineTemplateTaskInstanceItems(index, (PipelineTemplateTaskInstance)item);}
 else if (item instanceof OAuthClient){addToOAuthClientItems(index, (OAuthClient)item);}
 else if (item instanceof Template){addToTemplateItems(index, (Template)item);}
 else if (item instanceof BuildConfig){addToBuildConfigItems(index, (BuildConfig)item);}
 else if (item instanceof PodSecurityPolicy){addToPodSecurityPolicyItems(index, (PodSecurityPolicy)item);}
 else if (item instanceof Pipeline){addToPipelineItems(index, (Pipeline)item);}
 else if (item instanceof Role){addToRoleItems(index, (Role)item);}
 else if (item instanceof CronJob){addToCronJobItems(index, (CronJob)item);}
 else if (item instanceof User){addToUserItems(index, (User)item);}
 else if (item instanceof io.alauda.kubernetes.api.model.authorization.SubjectAccessReview){addToSubjectAccessReviewItems(index, (io.alauda.kubernetes.api.model.authorization.SubjectAccessReview)item);}
 else if (item instanceof StorageClass){addToStorageClassItems(index, (StorageClass)item);}
 else if (item instanceof PipelineConfigTemplate){addToPipelineConfigTemplateItems(index, (PipelineConfigTemplate)item);}
 else if (item instanceof PipelineConfig){addToPipelineConfigItems(index, (PipelineConfig)item);}
 else if (item instanceof DeploymentConfig){addToDeploymentConfigItems(index, (DeploymentConfig)item);}
 else if (item instanceof OAuthAccessToken){addToOAuthAccessTokenItems(index, (OAuthAccessToken)item);}
 else if (item instanceof PersistentVolumeClaim){addToPersistentVolumeClaimItems(index, (PersistentVolumeClaim)item);}
 else if (item instanceof NetworkPolicy){addToNetworkPolicyItems(index, (NetworkPolicy)item);}
 else if (item instanceof Image){addToImageItems(index, (Image)item);}
 else if (item instanceof Service){addToServiceItems(index, (Service)item);}
 else if (item instanceof Job){addToJobItems(index, (Job)item);}
 else if (item instanceof Deployment){addToDeploymentItems(index, (Deployment)item);}
 else if (item instanceof ClusterPolicyBinding){addToClusterPolicyBindingItems(index, (ClusterPolicyBinding)item);}
 else if (item instanceof Project){addToProjectItems(index, (Project)item);}
 else if (item instanceof BuildRequest){addToBuildRequestItems(index, (BuildRequest)item);}
 else if (item instanceof RoleBinding){addToRoleBindingItems(index, (RoleBinding)item);}
 else if (item instanceof PersistentVolume){addToPersistentVolumeItems(index, (PersistentVolume)item);}

            return (A)this;
    }

    public A setToItems(int index,HasMetadata item){
            if (item instanceof Ingress){setToIngressItems(index, (Ingress)item);}
 else if (item instanceof Route){setToRouteItems(index, (Route)item);}
 else if (item instanceof PolicyBinding){setToPolicyBindingItems(index, (PolicyBinding)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 OAuthClientAuthorization){setToOAuthClientAuthorizationItems(index, (OAuthClientAuthorization)item);}
 else if (item instanceof Policy){setToPolicyItems(index, (Policy)item);}
 else if (item instanceof OAuthAuthorizeToken){setToOAuthAuthorizeTokenItems(index, (OAuthAuthorizeToken)item);}
 else if (item instanceof JenkinsBinding){setToJenkinsBindingItems(index, (JenkinsBinding)item);}
 else if (item instanceof Identity){setToIdentityItems(index, (Identity)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 ImageSignature){setToImageSignatureItems(index, (ImageSignature)item);}
 else if (item instanceof ClusterRole){setToClusterRoleItems(index, (ClusterRole)item);}
 else if (item instanceof Namespace){setToNamespaceItems(index, (Namespace)item);}
 else if (item instanceof ClusterPolicy){setToClusterPolicyItems(index, (ClusterPolicy)item);}
 else if (item instanceof Build){setToBuildItems(index, (Build)item);}
 else if (item instanceof Scale){setToScaleItems(index, (Scale)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 ImageStreamTag){setToImageStreamTagItems(index, (ImageStreamTag)item);}
 else if (item instanceof ComponentStatus){setToComponentStatusItems(index, (ComponentStatus)item);}
 else if (item instanceof Secret){setToSecretItems(index, (Secret)item);}
 else if (item instanceof ReplicationController){setToReplicationControllerItems(index, (ReplicationController)item);}
 else if (item instanceof LimitRange){setToLimitRangeItems(index, (LimitRange)item);}
 else if (item instanceof Endpoints){setToEndpointsItems(index, (Endpoints)item);}
 else if (item instanceof SecurityContextConstraints){setToSecurityContextConstraintsItems(index, (SecurityContextConstraints)item);}
 else if (item instanceof Group){setToGroupItems(index, (Group)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 ClusterRoleBinding){setToClusterRoleBindingItems(index, (ClusterRoleBinding)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 ImageStream){setToImageStreamItems(index, (ImageStream)item);}
 else if (item instanceof RoleBindingRestriction){setToRoleBindingRestrictionItems(index, (RoleBindingRestriction)item);}
 else if (item instanceof Binding){setToBindingItems(index, (Binding)item);}
 else if (item instanceof io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReview){setToLocalSubjectAccessReviewItems(index, (io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReview)item);}
 else if (item instanceof StatefulSet){setToStatefulSetItems(index, (StatefulSet)item);}
 else if (item instanceof PipelineTemplateTaskInstance){setToPipelineTemplateTaskInstanceItems(index, (PipelineTemplateTaskInstance)item);}
 else if (item instanceof OAuthClient){setToOAuthClientItems(index, (OAuthClient)item);}
 else if (item instanceof Template){setToTemplateItems(index, (Template)item);}
 else if (item instanceof BuildConfig){setToBuildConfigItems(index, (BuildConfig)item);}
 else if (item instanceof PodSecurityPolicy){setToPodSecurityPolicyItems(index, (PodSecurityPolicy)item);}
 else if (item instanceof Pipeline){setToPipelineItems(index, (Pipeline)item);}
 else if (item instanceof Role){setToRoleItems(index, (Role)item);}
 else if (item instanceof CronJob){setToCronJobItems(index, (CronJob)item);}
 else if (item instanceof User){setToUserItems(index, (User)item);}
 else if (item instanceof io.alauda.kubernetes.api.model.authorization.SubjectAccessReview){setToSubjectAccessReviewItems(index, (io.alauda.kubernetes.api.model.authorization.SubjectAccessReview)item);}
 else if (item instanceof StorageClass){setToStorageClassItems(index, (StorageClass)item);}
 else if (item instanceof PipelineConfigTemplate){setToPipelineConfigTemplateItems(index, (PipelineConfigTemplate)item);}
 else if (item instanceof PipelineConfig){setToPipelineConfigItems(index, (PipelineConfig)item);}
 else if (item instanceof DeploymentConfig){setToDeploymentConfigItems(index, (DeploymentConfig)item);}
 else if (item instanceof OAuthAccessToken){setToOAuthAccessTokenItems(index, (OAuthAccessToken)item);}
 else if (item instanceof PersistentVolumeClaim){setToPersistentVolumeClaimItems(index, (PersistentVolumeClaim)item);}
 else if (item instanceof NetworkPolicy){setToNetworkPolicyItems(index, (NetworkPolicy)item);}
 else if (item instanceof Image){setToImageItems(index, (Image)item);}
 else if (item instanceof Service){setToServiceItems(index, (Service)item);}
 else if (item instanceof Job){setToJobItems(index, (Job)item);}
 else if (item instanceof Deployment){setToDeploymentItems(index, (Deployment)item);}
 else if (item instanceof ClusterPolicyBinding){setToClusterPolicyBindingItems(index, (ClusterPolicyBinding)item);}
 else if (item instanceof Project){setToProjectItems(index, (Project)item);}
 else if (item instanceof BuildRequest){setToBuildRequestItems(index, (BuildRequest)item);}
 else if (item instanceof RoleBinding){setToRoleBindingItems(index, (RoleBinding)item);}
 else if (item instanceof PersistentVolume){setToPersistentVolumeItems(index, (PersistentVolume)item);}

            return (A)this;
    }

    public A addToItems(HasMetadata... items){
            for (HasMetadata item : items) { 
            if (item instanceof Ingress){addToIngressItems((Ingress)item);}
 else if (item instanceof Route){addToRouteItems((Route)item);}
 else if (item instanceof PolicyBinding){addToPolicyBindingItems((PolicyBinding)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 OAuthClientAuthorization){addToOAuthClientAuthorizationItems((OAuthClientAuthorization)item);}
 else if (item instanceof Policy){addToPolicyItems((Policy)item);}
 else if (item instanceof OAuthAuthorizeToken){addToOAuthAuthorizeTokenItems((OAuthAuthorizeToken)item);}
 else if (item instanceof JenkinsBinding){addToJenkinsBindingItems((JenkinsBinding)item);}
 else if (item instanceof Identity){addToIdentityItems((Identity)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 ImageSignature){addToImageSignatureItems((ImageSignature)item);}
 else if (item instanceof ClusterRole){addToClusterRoleItems((ClusterRole)item);}
 else if (item instanceof Namespace){addToNamespaceItems((Namespace)item);}
 else if (item instanceof ClusterPolicy){addToClusterPolicyItems((ClusterPolicy)item);}
 else if (item instanceof Build){addToBuildItems((Build)item);}
 else if (item instanceof Scale){addToScaleItems((Scale)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 ImageStreamTag){addToImageStreamTagItems((ImageStreamTag)item);}
 else if (item instanceof ComponentStatus){addToComponentStatusItems((ComponentStatus)item);}
 else if (item instanceof Secret){addToSecretItems((Secret)item);}
 else if (item instanceof ReplicationController){addToReplicationControllerItems((ReplicationController)item);}
 else if (item instanceof LimitRange){addToLimitRangeItems((LimitRange)item);}
 else if (item instanceof Endpoints){addToEndpointsItems((Endpoints)item);}
 else if (item instanceof SecurityContextConstraints){addToSecurityContextConstraintsItems((SecurityContextConstraints)item);}
 else if (item instanceof Group){addToGroupItems((Group)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 ClusterRoleBinding){addToClusterRoleBindingItems((ClusterRoleBinding)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 ImageStream){addToImageStreamItems((ImageStream)item);}
 else if (item instanceof RoleBindingRestriction){addToRoleBindingRestrictionItems((RoleBindingRestriction)item);}
 else if (item instanceof Binding){addToBindingItems((Binding)item);}
 else if (item instanceof io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReview){addToLocalSubjectAccessReviewItems((io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReview)item);}
 else if (item instanceof StatefulSet){addToStatefulSetItems((StatefulSet)item);}
 else if (item instanceof PipelineTemplateTaskInstance){addToPipelineTemplateTaskInstanceItems((PipelineTemplateTaskInstance)item);}
 else if (item instanceof OAuthClient){addToOAuthClientItems((OAuthClient)item);}
 else if (item instanceof Template){addToTemplateItems((Template)item);}
 else if (item instanceof BuildConfig){addToBuildConfigItems((BuildConfig)item);}
 else if (item instanceof PodSecurityPolicy){addToPodSecurityPolicyItems((PodSecurityPolicy)item);}
 else if (item instanceof Pipeline){addToPipelineItems((Pipeline)item);}
 else if (item instanceof Role){addToRoleItems((Role)item);}
 else if (item instanceof CronJob){addToCronJobItems((CronJob)item);}
 else if (item instanceof User){addToUserItems((User)item);}
 else if (item instanceof io.alauda.kubernetes.api.model.authorization.SubjectAccessReview){addToSubjectAccessReviewItems((io.alauda.kubernetes.api.model.authorization.SubjectAccessReview)item);}
 else if (item instanceof StorageClass){addToStorageClassItems((StorageClass)item);}
 else if (item instanceof PipelineConfigTemplate){addToPipelineConfigTemplateItems((PipelineConfigTemplate)item);}
 else if (item instanceof PipelineConfig){addToPipelineConfigItems((PipelineConfig)item);}
 else if (item instanceof DeploymentConfig){addToDeploymentConfigItems((DeploymentConfig)item);}
 else if (item instanceof OAuthAccessToken){addToOAuthAccessTokenItems((OAuthAccessToken)item);}
 else if (item instanceof PersistentVolumeClaim){addToPersistentVolumeClaimItems((PersistentVolumeClaim)item);}
 else if (item instanceof NetworkPolicy){addToNetworkPolicyItems((NetworkPolicy)item);}
 else if (item instanceof Image){addToImageItems((Image)item);}
 else if (item instanceof Service){addToServiceItems((Service)item);}
 else if (item instanceof Job){addToJobItems((Job)item);}
 else if (item instanceof Deployment){addToDeploymentItems((Deployment)item);}
 else if (item instanceof ClusterPolicyBinding){addToClusterPolicyBindingItems((ClusterPolicyBinding)item);}
 else if (item instanceof Project){addToProjectItems((Project)item);}
 else if (item instanceof BuildRequest){addToBuildRequestItems((BuildRequest)item);}
 else if (item instanceof RoleBinding){addToRoleBindingItems((RoleBinding)item);}
 else if (item instanceof PersistentVolume){addToPersistentVolumeItems((PersistentVolume)item);}

            } return (A)this;
    }

    public A addAllToItems(Collection items){
            for (HasMetadata item : items) { 
            if (item instanceof Ingress){addToIngressItems((Ingress)item);}
 else if (item instanceof Route){addToRouteItems((Route)item);}
 else if (item instanceof PolicyBinding){addToPolicyBindingItems((PolicyBinding)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 OAuthClientAuthorization){addToOAuthClientAuthorizationItems((OAuthClientAuthorization)item);}
 else if (item instanceof Policy){addToPolicyItems((Policy)item);}
 else if (item instanceof OAuthAuthorizeToken){addToOAuthAuthorizeTokenItems((OAuthAuthorizeToken)item);}
 else if (item instanceof JenkinsBinding){addToJenkinsBindingItems((JenkinsBinding)item);}
 else if (item instanceof Identity){addToIdentityItems((Identity)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 ImageSignature){addToImageSignatureItems((ImageSignature)item);}
 else if (item instanceof ClusterRole){addToClusterRoleItems((ClusterRole)item);}
 else if (item instanceof Namespace){addToNamespaceItems((Namespace)item);}
 else if (item instanceof ClusterPolicy){addToClusterPolicyItems((ClusterPolicy)item);}
 else if (item instanceof Build){addToBuildItems((Build)item);}
 else if (item instanceof Scale){addToScaleItems((Scale)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 ImageStreamTag){addToImageStreamTagItems((ImageStreamTag)item);}
 else if (item instanceof ComponentStatus){addToComponentStatusItems((ComponentStatus)item);}
 else if (item instanceof Secret){addToSecretItems((Secret)item);}
 else if (item instanceof ReplicationController){addToReplicationControllerItems((ReplicationController)item);}
 else if (item instanceof LimitRange){addToLimitRangeItems((LimitRange)item);}
 else if (item instanceof Endpoints){addToEndpointsItems((Endpoints)item);}
 else if (item instanceof SecurityContextConstraints){addToSecurityContextConstraintsItems((SecurityContextConstraints)item);}
 else if (item instanceof Group){addToGroupItems((Group)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 ClusterRoleBinding){addToClusterRoleBindingItems((ClusterRoleBinding)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 ImageStream){addToImageStreamItems((ImageStream)item);}
 else if (item instanceof RoleBindingRestriction){addToRoleBindingRestrictionItems((RoleBindingRestriction)item);}
 else if (item instanceof Binding){addToBindingItems((Binding)item);}
 else if (item instanceof io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReview){addToLocalSubjectAccessReviewItems((io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReview)item);}
 else if (item instanceof StatefulSet){addToStatefulSetItems((StatefulSet)item);}
 else if (item instanceof PipelineTemplateTaskInstance){addToPipelineTemplateTaskInstanceItems((PipelineTemplateTaskInstance)item);}
 else if (item instanceof OAuthClient){addToOAuthClientItems((OAuthClient)item);}
 else if (item instanceof Template){addToTemplateItems((Template)item);}
 else if (item instanceof BuildConfig){addToBuildConfigItems((BuildConfig)item);}
 else if (item instanceof PodSecurityPolicy){addToPodSecurityPolicyItems((PodSecurityPolicy)item);}
 else if (item instanceof Pipeline){addToPipelineItems((Pipeline)item);}
 else if (item instanceof Role){addToRoleItems((Role)item);}
 else if (item instanceof CronJob){addToCronJobItems((CronJob)item);}
 else if (item instanceof User){addToUserItems((User)item);}
 else if (item instanceof io.alauda.kubernetes.api.model.authorization.SubjectAccessReview){addToSubjectAccessReviewItems((io.alauda.kubernetes.api.model.authorization.SubjectAccessReview)item);}
 else if (item instanceof StorageClass){addToStorageClassItems((StorageClass)item);}
 else if (item instanceof PipelineConfigTemplate){addToPipelineConfigTemplateItems((PipelineConfigTemplate)item);}
 else if (item instanceof PipelineConfig){addToPipelineConfigItems((PipelineConfig)item);}
 else if (item instanceof DeploymentConfig){addToDeploymentConfigItems((DeploymentConfig)item);}
 else if (item instanceof OAuthAccessToken){addToOAuthAccessTokenItems((OAuthAccessToken)item);}
 else if (item instanceof PersistentVolumeClaim){addToPersistentVolumeClaimItems((PersistentVolumeClaim)item);}
 else if (item instanceof NetworkPolicy){addToNetworkPolicyItems((NetworkPolicy)item);}
 else if (item instanceof Image){addToImageItems((Image)item);}
 else if (item instanceof Service){addToServiceItems((Service)item);}
 else if (item instanceof Job){addToJobItems((Job)item);}
 else if (item instanceof Deployment){addToDeploymentItems((Deployment)item);}
 else if (item instanceof ClusterPolicyBinding){addToClusterPolicyBindingItems((ClusterPolicyBinding)item);}
 else if (item instanceof Project){addToProjectItems((Project)item);}
 else if (item instanceof BuildRequest){addToBuildRequestItems((BuildRequest)item);}
 else if (item instanceof RoleBinding){addToRoleBindingItems((RoleBinding)item);}
 else if (item instanceof PersistentVolume){addToPersistentVolumeItems((PersistentVolume)item);}

            } return (A)this;
    }

    public A removeFromItems(HasMetadata... items){
            for (HasMetadata item : items) {if (item instanceof Ingress){removeFromIngressItems((Ingress)item);}
 else if (item instanceof Route){removeFromRouteItems((Route)item);}
 else if (item instanceof PolicyBinding){removeFromPolicyBindingItems((PolicyBinding)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 OAuthClientAuthorization){removeFromOAuthClientAuthorizationItems((OAuthClientAuthorization)item);}
 else if (item instanceof Policy){removeFromPolicyItems((Policy)item);}
 else if (item instanceof OAuthAuthorizeToken){removeFromOAuthAuthorizeTokenItems((OAuthAuthorizeToken)item);}
 else if (item instanceof JenkinsBinding){removeFromJenkinsBindingItems((JenkinsBinding)item);}
 else if (item instanceof Identity){removeFromIdentityItems((Identity)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 ImageSignature){removeFromImageSignatureItems((ImageSignature)item);}
 else if (item instanceof ClusterRole){removeFromClusterRoleItems((ClusterRole)item);}
 else if (item instanceof Namespace){removeFromNamespaceItems((Namespace)item);}
 else if (item instanceof ClusterPolicy){removeFromClusterPolicyItems((ClusterPolicy)item);}
 else if (item instanceof Build){removeFromBuildItems((Build)item);}
 else if (item instanceof Scale){removeFromScaleItems((Scale)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 ImageStreamTag){removeFromImageStreamTagItems((ImageStreamTag)item);}
 else if (item instanceof ComponentStatus){removeFromComponentStatusItems((ComponentStatus)item);}
 else if (item instanceof Secret){removeFromSecretItems((Secret)item);}
 else if (item instanceof ReplicationController){removeFromReplicationControllerItems((ReplicationController)item);}
 else if (item instanceof LimitRange){removeFromLimitRangeItems((LimitRange)item);}
 else if (item instanceof Endpoints){removeFromEndpointsItems((Endpoints)item);}
 else if (item instanceof SecurityContextConstraints){removeFromSecurityContextConstraintsItems((SecurityContextConstraints)item);}
 else if (item instanceof Group){removeFromGroupItems((Group)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 ClusterRoleBinding){removeFromClusterRoleBindingItems((ClusterRoleBinding)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 ImageStream){removeFromImageStreamItems((ImageStream)item);}
 else if (item instanceof RoleBindingRestriction){removeFromRoleBindingRestrictionItems((RoleBindingRestriction)item);}
 else if (item instanceof Binding){removeFromBindingItems((Binding)item);}
 else if (item instanceof io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReview){removeFromLocalSubjectAccessReviewItems((io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReview)item);}
 else if (item instanceof StatefulSet){removeFromStatefulSetItems((StatefulSet)item);}
 else if (item instanceof PipelineTemplateTaskInstance){removeFromPipelineTemplateTaskInstanceItems((PipelineTemplateTaskInstance)item);}
 else if (item instanceof OAuthClient){removeFromOAuthClientItems((OAuthClient)item);}
 else if (item instanceof Template){removeFromTemplateItems((Template)item);}
 else if (item instanceof BuildConfig){removeFromBuildConfigItems((BuildConfig)item);}
 else if (item instanceof PodSecurityPolicy){removeFromPodSecurityPolicyItems((PodSecurityPolicy)item);}
 else if (item instanceof Pipeline){removeFromPipelineItems((Pipeline)item);}
 else if (item instanceof Role){removeFromRoleItems((Role)item);}
 else if (item instanceof CronJob){removeFromCronJobItems((CronJob)item);}
 else if (item instanceof User){removeFromUserItems((User)item);}
 else if (item instanceof io.alauda.kubernetes.api.model.authorization.SubjectAccessReview){removeFromSubjectAccessReviewItems((io.alauda.kubernetes.api.model.authorization.SubjectAccessReview)item);}
 else if (item instanceof StorageClass){removeFromStorageClassItems((StorageClass)item);}
 else if (item instanceof PipelineConfigTemplate){removeFromPipelineConfigTemplateItems((PipelineConfigTemplate)item);}
 else if (item instanceof PipelineConfig){removeFromPipelineConfigItems((PipelineConfig)item);}
 else if (item instanceof DeploymentConfig){removeFromDeploymentConfigItems((DeploymentConfig)item);}
 else if (item instanceof OAuthAccessToken){removeFromOAuthAccessTokenItems((OAuthAccessToken)item);}
 else if (item instanceof PersistentVolumeClaim){removeFromPersistentVolumeClaimItems((PersistentVolumeClaim)item);}
 else if (item instanceof NetworkPolicy){removeFromNetworkPolicyItems((NetworkPolicy)item);}
 else if (item instanceof Image){removeFromImageItems((Image)item);}
 else if (item instanceof Service){removeFromServiceItems((Service)item);}
 else if (item instanceof Job){removeFromJobItems((Job)item);}
 else if (item instanceof Deployment){removeFromDeploymentItems((Deployment)item);}
 else if (item instanceof ClusterPolicyBinding){removeFromClusterPolicyBindingItems((ClusterPolicyBinding)item);}
 else if (item instanceof Project){removeFromProjectItems((Project)item);}
 else if (item instanceof BuildRequest){removeFromBuildRequestItems((BuildRequest)item);}
 else if (item instanceof RoleBinding){removeFromRoleBindingItems((RoleBinding)item);}
 else if (item instanceof PersistentVolume){removeFromPersistentVolumeItems((PersistentVolume)item);}
} return (A)this;
    }

    public A removeAllFromItems(Collection items){
            for (HasMetadata item : items) {if (item instanceof Ingress){removeFromIngressItems((Ingress)item);}
 else if (item instanceof Route){removeFromRouteItems((Route)item);}
 else if (item instanceof PolicyBinding){removeFromPolicyBindingItems((PolicyBinding)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 OAuthClientAuthorization){removeFromOAuthClientAuthorizationItems((OAuthClientAuthorization)item);}
 else if (item instanceof Policy){removeFromPolicyItems((Policy)item);}
 else if (item instanceof OAuthAuthorizeToken){removeFromOAuthAuthorizeTokenItems((OAuthAuthorizeToken)item);}
 else if (item instanceof JenkinsBinding){removeFromJenkinsBindingItems((JenkinsBinding)item);}
 else if (item instanceof Identity){removeFromIdentityItems((Identity)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 ImageSignature){removeFromImageSignatureItems((ImageSignature)item);}
 else if (item instanceof ClusterRole){removeFromClusterRoleItems((ClusterRole)item);}
 else if (item instanceof Namespace){removeFromNamespaceItems((Namespace)item);}
 else if (item instanceof ClusterPolicy){removeFromClusterPolicyItems((ClusterPolicy)item);}
 else if (item instanceof Build){removeFromBuildItems((Build)item);}
 else if (item instanceof Scale){removeFromScaleItems((Scale)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 ImageStreamTag){removeFromImageStreamTagItems((ImageStreamTag)item);}
 else if (item instanceof ComponentStatus){removeFromComponentStatusItems((ComponentStatus)item);}
 else if (item instanceof Secret){removeFromSecretItems((Secret)item);}
 else if (item instanceof ReplicationController){removeFromReplicationControllerItems((ReplicationController)item);}
 else if (item instanceof LimitRange){removeFromLimitRangeItems((LimitRange)item);}
 else if (item instanceof Endpoints){removeFromEndpointsItems((Endpoints)item);}
 else if (item instanceof SecurityContextConstraints){removeFromSecurityContextConstraintsItems((SecurityContextConstraints)item);}
 else if (item instanceof Group){removeFromGroupItems((Group)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 ClusterRoleBinding){removeFromClusterRoleBindingItems((ClusterRoleBinding)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 ImageStream){removeFromImageStreamItems((ImageStream)item);}
 else if (item instanceof RoleBindingRestriction){removeFromRoleBindingRestrictionItems((RoleBindingRestriction)item);}
 else if (item instanceof Binding){removeFromBindingItems((Binding)item);}
 else if (item instanceof io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReview){removeFromLocalSubjectAccessReviewItems((io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReview)item);}
 else if (item instanceof StatefulSet){removeFromStatefulSetItems((StatefulSet)item);}
 else if (item instanceof PipelineTemplateTaskInstance){removeFromPipelineTemplateTaskInstanceItems((PipelineTemplateTaskInstance)item);}
 else if (item instanceof OAuthClient){removeFromOAuthClientItems((OAuthClient)item);}
 else if (item instanceof Template){removeFromTemplateItems((Template)item);}
 else if (item instanceof BuildConfig){removeFromBuildConfigItems((BuildConfig)item);}
 else if (item instanceof PodSecurityPolicy){removeFromPodSecurityPolicyItems((PodSecurityPolicy)item);}
 else if (item instanceof Pipeline){removeFromPipelineItems((Pipeline)item);}
 else if (item instanceof Role){removeFromRoleItems((Role)item);}
 else if (item instanceof CronJob){removeFromCronJobItems((CronJob)item);}
 else if (item instanceof User){removeFromUserItems((User)item);}
 else if (item instanceof io.alauda.kubernetes.api.model.authorization.SubjectAccessReview){removeFromSubjectAccessReviewItems((io.alauda.kubernetes.api.model.authorization.SubjectAccessReview)item);}
 else if (item instanceof StorageClass){removeFromStorageClassItems((StorageClass)item);}
 else if (item instanceof PipelineConfigTemplate){removeFromPipelineConfigTemplateItems((PipelineConfigTemplate)item);}
 else if (item instanceof PipelineConfig){removeFromPipelineConfigItems((PipelineConfig)item);}
 else if (item instanceof DeploymentConfig){removeFromDeploymentConfigItems((DeploymentConfig)item);}
 else if (item instanceof OAuthAccessToken){removeFromOAuthAccessTokenItems((OAuthAccessToken)item);}
 else if (item instanceof PersistentVolumeClaim){removeFromPersistentVolumeClaimItems((PersistentVolumeClaim)item);}
 else if (item instanceof NetworkPolicy){removeFromNetworkPolicyItems((NetworkPolicy)item);}
 else if (item instanceof Image){removeFromImageItems((Image)item);}
 else if (item instanceof Service){removeFromServiceItems((Service)item);}
 else if (item instanceof Job){removeFromJobItems((Job)item);}
 else if (item instanceof Deployment){removeFromDeploymentItems((Deployment)item);}
 else if (item instanceof ClusterPolicyBinding){removeFromClusterPolicyBindingItems((ClusterPolicyBinding)item);}
 else if (item instanceof Project){removeFromProjectItems((Project)item);}
 else if (item instanceof BuildRequest){removeFromBuildRequestItems((BuildRequest)item);}
 else if (item instanceof RoleBinding){removeFromRoleBindingItems((RoleBinding)item);}
 else if (item instanceof PersistentVolume){removeFromPersistentVolumeItems((PersistentVolume)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 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 addToRouteItems(int index,Route item){
            RouteBuilder builder = new RouteBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToRouteItems(int index,Route item){
            RouteBuilder builder = new RouteBuilder(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 addToRouteItems(Route... items){
            for (Route item : items) {RouteBuilder builder = new RouteBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToRouteItems(Collection items){
            for (Route item : items) {RouteBuilder builder = new RouteBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromRouteItems(Route... items){
            for (Route item : items) {RouteBuilder builder = new RouteBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromRouteItems(Collection items){
            for (Route item : items) {RouteBuilder builder = new RouteBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.RouteItemsNested addNewRouteItem(){
            return new RouteItemsNestedImpl();
    }

    public BaseKubernetesListFluent.RouteItemsNested addNewRouteItemLike(Route item){
            return new RouteItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.RouteItemsNested setNewRouteItemLike(int index,Route item){
            return new RouteItemsNestedImpl(index, item);
    }

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

    public A setToPolicyBindingItems(int index,PolicyBinding item){
            PolicyBindingBuilder builder = new PolicyBindingBuilder(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 addToPolicyBindingItems(PolicyBinding... items){
            for (PolicyBinding item : items) {PolicyBindingBuilder builder = new PolicyBindingBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToPolicyBindingItems(Collection items){
            for (PolicyBinding item : items) {PolicyBindingBuilder builder = new PolicyBindingBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromPolicyBindingItems(PolicyBinding... items){
            for (PolicyBinding item : items) {PolicyBindingBuilder builder = new PolicyBindingBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromPolicyBindingItems(Collection items){
            for (PolicyBinding item : items) {PolicyBindingBuilder builder = new PolicyBindingBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.PolicyBindingItemsNested addNewPolicyBindingItem(){
            return new PolicyBindingItemsNestedImpl();
    }

    public BaseKubernetesListFluent.PolicyBindingItemsNested addNewPolicyBindingItemLike(PolicyBinding item){
            return new PolicyBindingItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.PolicyBindingItemsNested setNewPolicyBindingItemLike(int index,PolicyBinding item){
            return new PolicyBindingItemsNestedImpl(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 addToOAuthClientAuthorizationItems(int index,OAuthClientAuthorization item){
            OAuthClientAuthorizationBuilder builder = new OAuthClientAuthorizationBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToOAuthClientAuthorizationItems(int index,OAuthClientAuthorization item){
            OAuthClientAuthorizationBuilder builder = new OAuthClientAuthorizationBuilder(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 addToOAuthClientAuthorizationItems(OAuthClientAuthorization... items){
            for (OAuthClientAuthorization item : items) {OAuthClientAuthorizationBuilder builder = new OAuthClientAuthorizationBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToOAuthClientAuthorizationItems(Collection items){
            for (OAuthClientAuthorization item : items) {OAuthClientAuthorizationBuilder builder = new OAuthClientAuthorizationBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromOAuthClientAuthorizationItems(OAuthClientAuthorization... items){
            for (OAuthClientAuthorization item : items) {OAuthClientAuthorizationBuilder builder = new OAuthClientAuthorizationBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromOAuthClientAuthorizationItems(Collection items){
            for (OAuthClientAuthorization item : items) {OAuthClientAuthorizationBuilder builder = new OAuthClientAuthorizationBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.OAuthClientAuthorizationItemsNested addNewOAuthClientAuthorizationItem(){
            return new OAuthClientAuthorizationItemsNestedImpl();
    }

    public BaseKubernetesListFluent.OAuthClientAuthorizationItemsNested addNewOAuthClientAuthorizationItemLike(OAuthClientAuthorization item){
            return new OAuthClientAuthorizationItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.OAuthClientAuthorizationItemsNested setNewOAuthClientAuthorizationItemLike(int index,OAuthClientAuthorization item){
            return new OAuthClientAuthorizationItemsNestedImpl(index, item);
    }

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

    public A setToPolicyItems(int index,Policy item){
            PolicyBuilder builder = new PolicyBuilder(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 addToPolicyItems(Policy... items){
            for (Policy item : items) {PolicyBuilder builder = new PolicyBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToPolicyItems(Collection items){
            for (Policy item : items) {PolicyBuilder builder = new PolicyBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromPolicyItems(Policy... items){
            for (Policy item : items) {PolicyBuilder builder = new PolicyBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromPolicyItems(Collection items){
            for (Policy item : items) {PolicyBuilder builder = new PolicyBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.PolicyItemsNested addNewPolicyItem(){
            return new PolicyItemsNestedImpl();
    }

    public BaseKubernetesListFluent.PolicyItemsNested addNewPolicyItemLike(Policy item){
            return new PolicyItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.PolicyItemsNested setNewPolicyItemLike(int index,Policy item){
            return new PolicyItemsNestedImpl(index, item);
    }

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

    public A setToOAuthAuthorizeTokenItems(int index,OAuthAuthorizeToken item){
            OAuthAuthorizeTokenBuilder builder = new OAuthAuthorizeTokenBuilder(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 addToOAuthAuthorizeTokenItems(OAuthAuthorizeToken... items){
            for (OAuthAuthorizeToken item : items) {OAuthAuthorizeTokenBuilder builder = new OAuthAuthorizeTokenBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToOAuthAuthorizeTokenItems(Collection items){
            for (OAuthAuthorizeToken item : items) {OAuthAuthorizeTokenBuilder builder = new OAuthAuthorizeTokenBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromOAuthAuthorizeTokenItems(OAuthAuthorizeToken... items){
            for (OAuthAuthorizeToken item : items) {OAuthAuthorizeTokenBuilder builder = new OAuthAuthorizeTokenBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromOAuthAuthorizeTokenItems(Collection items){
            for (OAuthAuthorizeToken item : items) {OAuthAuthorizeTokenBuilder builder = new OAuthAuthorizeTokenBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.OAuthAuthorizeTokenItemsNested addNewOAuthAuthorizeTokenItem(){
            return new OAuthAuthorizeTokenItemsNestedImpl();
    }

    public BaseKubernetesListFluent.OAuthAuthorizeTokenItemsNested addNewOAuthAuthorizeTokenItemLike(OAuthAuthorizeToken item){
            return new OAuthAuthorizeTokenItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.OAuthAuthorizeTokenItemsNested setNewOAuthAuthorizeTokenItemLike(int index,OAuthAuthorizeToken item){
            return new OAuthAuthorizeTokenItemsNestedImpl(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 addToIdentityItems(int index,Identity item){
            IdentityBuilder builder = new IdentityBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToIdentityItems(int index,Identity item){
            IdentityBuilder builder = new IdentityBuilder(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 addToIdentityItems(Identity... items){
            for (Identity item : items) {IdentityBuilder builder = new IdentityBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToIdentityItems(Collection items){
            for (Identity item : items) {IdentityBuilder builder = new IdentityBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromIdentityItems(Identity... items){
            for (Identity item : items) {IdentityBuilder builder = new IdentityBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromIdentityItems(Collection items){
            for (Identity item : items) {IdentityBuilder builder = new IdentityBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.IdentityItemsNested addNewIdentityItem(){
            return new IdentityItemsNestedImpl();
    }

    public BaseKubernetesListFluent.IdentityItemsNested addNewIdentityItemLike(Identity item){
            return new IdentityItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.IdentityItemsNested setNewIdentityItemLike(int index,Identity item){
            return new IdentityItemsNestedImpl(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 addToImageSignatureItems(int index,ImageSignature item){
            ImageSignatureBuilder builder = new ImageSignatureBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToImageSignatureItems(int index,ImageSignature item){
            ImageSignatureBuilder builder = new ImageSignatureBuilder(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 addToImageSignatureItems(ImageSignature... items){
            for (ImageSignature item : items) {ImageSignatureBuilder builder = new ImageSignatureBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToImageSignatureItems(Collection items){
            for (ImageSignature item : items) {ImageSignatureBuilder builder = new ImageSignatureBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromImageSignatureItems(ImageSignature... items){
            for (ImageSignature item : items) {ImageSignatureBuilder builder = new ImageSignatureBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromImageSignatureItems(Collection items){
            for (ImageSignature item : items) {ImageSignatureBuilder builder = new ImageSignatureBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.ImageSignatureItemsNested addNewImageSignatureItem(){
            return new ImageSignatureItemsNestedImpl();
    }

    public BaseKubernetesListFluent.ImageSignatureItemsNested addNewImageSignatureItemLike(ImageSignature item){
            return new ImageSignatureItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.ImageSignatureItemsNested setNewImageSignatureItemLike(int index,ImageSignature item){
            return new ImageSignatureItemsNestedImpl(index, item);
    }

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

    public A setToClusterRoleItems(int index,ClusterRole item){
            ClusterRoleBuilder builder = new ClusterRoleBuilder(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 addToClusterRoleItems(ClusterRole... items){
            for (ClusterRole item : items) {ClusterRoleBuilder builder = new ClusterRoleBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToClusterRoleItems(Collection items){
            for (ClusterRole item : items) {ClusterRoleBuilder builder = new ClusterRoleBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromClusterRoleItems(ClusterRole... items){
            for (ClusterRole item : items) {ClusterRoleBuilder builder = new ClusterRoleBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromClusterRoleItems(Collection items){
            for (ClusterRole item : items) {ClusterRoleBuilder builder = new ClusterRoleBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.ClusterRoleItemsNested addNewClusterRoleItem(){
            return new ClusterRoleItemsNestedImpl();
    }

    public BaseKubernetesListFluent.ClusterRoleItemsNested addNewClusterRoleItemLike(ClusterRole item){
            return new ClusterRoleItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.ClusterRoleItemsNested setNewClusterRoleItemLike(int index,ClusterRole item){
            return new ClusterRoleItemsNestedImpl(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 addToClusterPolicyItems(int index,ClusterPolicy item){
            ClusterPolicyBuilder builder = new ClusterPolicyBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToClusterPolicyItems(int index,ClusterPolicy item){
            ClusterPolicyBuilder builder = new ClusterPolicyBuilder(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 addToClusterPolicyItems(ClusterPolicy... items){
            for (ClusterPolicy item : items) {ClusterPolicyBuilder builder = new ClusterPolicyBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToClusterPolicyItems(Collection items){
            for (ClusterPolicy item : items) {ClusterPolicyBuilder builder = new ClusterPolicyBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromClusterPolicyItems(ClusterPolicy... items){
            for (ClusterPolicy item : items) {ClusterPolicyBuilder builder = new ClusterPolicyBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromClusterPolicyItems(Collection items){
            for (ClusterPolicy item : items) {ClusterPolicyBuilder builder = new ClusterPolicyBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.ClusterPolicyItemsNested addNewClusterPolicyItem(){
            return new ClusterPolicyItemsNestedImpl();
    }

    public BaseKubernetesListFluent.ClusterPolicyItemsNested addNewClusterPolicyItemLike(ClusterPolicy item){
            return new ClusterPolicyItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.ClusterPolicyItemsNested setNewClusterPolicyItemLike(int index,ClusterPolicy item){
            return new ClusterPolicyItemsNestedImpl(index, item);
    }

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

    public A setToBuildItems(int index,Build item){
            BuildBuilder builder = new BuildBuilder(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 addToBuildItems(Build... items){
            for (Build item : items) {BuildBuilder builder = new BuildBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToBuildItems(Collection items){
            for (Build item : items) {BuildBuilder builder = new BuildBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromBuildItems(Build... items){
            for (Build item : items) {BuildBuilder builder = new BuildBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromBuildItems(Collection items){
            for (Build item : items) {BuildBuilder builder = new BuildBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.BuildItemsNested addNewBuildItem(){
            return new BuildItemsNestedImpl();
    }

    public BaseKubernetesListFluent.BuildItemsNested addNewBuildItemLike(Build item){
            return new BuildItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.BuildItemsNested setNewBuildItemLike(int index,Build item){
            return new BuildItemsNestedImpl(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 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 addToImageStreamTagItems(int index,ImageStreamTag item){
            ImageStreamTagBuilder builder = new ImageStreamTagBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToImageStreamTagItems(int index,ImageStreamTag item){
            ImageStreamTagBuilder builder = new ImageStreamTagBuilder(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 addToImageStreamTagItems(ImageStreamTag... items){
            for (ImageStreamTag item : items) {ImageStreamTagBuilder builder = new ImageStreamTagBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToImageStreamTagItems(Collection items){
            for (ImageStreamTag item : items) {ImageStreamTagBuilder builder = new ImageStreamTagBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromImageStreamTagItems(ImageStreamTag... items){
            for (ImageStreamTag item : items) {ImageStreamTagBuilder builder = new ImageStreamTagBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromImageStreamTagItems(Collection items){
            for (ImageStreamTag item : items) {ImageStreamTagBuilder builder = new ImageStreamTagBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.ImageStreamTagItemsNested addNewImageStreamTagItem(){
            return new ImageStreamTagItemsNestedImpl();
    }

    public BaseKubernetesListFluent.ImageStreamTagItemsNested addNewImageStreamTagItemLike(ImageStreamTag item){
            return new ImageStreamTagItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.ImageStreamTagItemsNested setNewImageStreamTagItemLike(int index,ImageStreamTag item){
            return new ImageStreamTagItemsNestedImpl(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 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 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 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 addToSecurityContextConstraintsItems(int index,SecurityContextConstraints item){
            SecurityContextConstraintsBuilder builder = new SecurityContextConstraintsBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToSecurityContextConstraintsItems(int index,SecurityContextConstraints item){
            SecurityContextConstraintsBuilder builder = new SecurityContextConstraintsBuilder(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 addToSecurityContextConstraintsItems(SecurityContextConstraints... items){
            for (SecurityContextConstraints item : items) {SecurityContextConstraintsBuilder builder = new SecurityContextConstraintsBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToSecurityContextConstraintsItems(Collection items){
            for (SecurityContextConstraints item : items) {SecurityContextConstraintsBuilder builder = new SecurityContextConstraintsBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromSecurityContextConstraintsItems(SecurityContextConstraints... items){
            for (SecurityContextConstraints item : items) {SecurityContextConstraintsBuilder builder = new SecurityContextConstraintsBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromSecurityContextConstraintsItems(Collection items){
            for (SecurityContextConstraints item : items) {SecurityContextConstraintsBuilder builder = new SecurityContextConstraintsBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.SecurityContextConstraintsItemsNested addNewSecurityContextConstraintsItem(){
            return new SecurityContextConstraintsItemsNestedImpl();
    }

    public BaseKubernetesListFluent.SecurityContextConstraintsItemsNested addNewSecurityContextConstraintsItemLike(SecurityContextConstraints item){
            return new SecurityContextConstraintsItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.SecurityContextConstraintsItemsNested setNewSecurityContextConstraintsItemLike(int index,SecurityContextConstraints item){
            return new SecurityContextConstraintsItemsNestedImpl(index, item);
    }

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

    public A setToGroupItems(int index,Group item){
            GroupBuilder builder = new GroupBuilder(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 addToGroupItems(Group... items){
            for (Group item : items) {GroupBuilder builder = new GroupBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToGroupItems(Collection items){
            for (Group item : items) {GroupBuilder builder = new GroupBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromGroupItems(Group... items){
            for (Group item : items) {GroupBuilder builder = new GroupBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromGroupItems(Collection items){
            for (Group item : items) {GroupBuilder builder = new GroupBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.GroupItemsNested addNewGroupItem(){
            return new GroupItemsNestedImpl();
    }

    public BaseKubernetesListFluent.GroupItemsNested addNewGroupItemLike(Group item){
            return new GroupItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.GroupItemsNested setNewGroupItemLike(int index,Group item){
            return new GroupItemsNestedImpl(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 addToClusterRoleBindingItems(int index,ClusterRoleBinding item){
            ClusterRoleBindingBuilder builder = new ClusterRoleBindingBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToClusterRoleBindingItems(int index,ClusterRoleBinding item){
            ClusterRoleBindingBuilder builder = new ClusterRoleBindingBuilder(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 addToClusterRoleBindingItems(ClusterRoleBinding... items){
            for (ClusterRoleBinding item : items) {ClusterRoleBindingBuilder builder = new ClusterRoleBindingBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToClusterRoleBindingItems(Collection items){
            for (ClusterRoleBinding item : items) {ClusterRoleBindingBuilder builder = new ClusterRoleBindingBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromClusterRoleBindingItems(ClusterRoleBinding... items){
            for (ClusterRoleBinding item : items) {ClusterRoleBindingBuilder builder = new ClusterRoleBindingBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromClusterRoleBindingItems(Collection items){
            for (ClusterRoleBinding item : items) {ClusterRoleBindingBuilder builder = new ClusterRoleBindingBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.ClusterRoleBindingItemsNested addNewClusterRoleBindingItem(){
            return new ClusterRoleBindingItemsNestedImpl();
    }

    public BaseKubernetesListFluent.ClusterRoleBindingItemsNested addNewClusterRoleBindingItemLike(ClusterRoleBinding item){
            return new ClusterRoleBindingItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.ClusterRoleBindingItemsNested setNewClusterRoleBindingItemLike(int index,ClusterRoleBinding item){
            return new ClusterRoleBindingItemsNestedImpl(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 addToImageStreamItems(int index,ImageStream item){
            ImageStreamBuilder builder = new ImageStreamBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToImageStreamItems(int index,ImageStream item){
            ImageStreamBuilder builder = new ImageStreamBuilder(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 addToImageStreamItems(ImageStream... items){
            for (ImageStream item : items) {ImageStreamBuilder builder = new ImageStreamBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToImageStreamItems(Collection items){
            for (ImageStream item : items) {ImageStreamBuilder builder = new ImageStreamBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromImageStreamItems(ImageStream... items){
            for (ImageStream item : items) {ImageStreamBuilder builder = new ImageStreamBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromImageStreamItems(Collection items){
            for (ImageStream item : items) {ImageStreamBuilder builder = new ImageStreamBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.ImageStreamItemsNested addNewImageStreamItem(){
            return new ImageStreamItemsNestedImpl();
    }

    public BaseKubernetesListFluent.ImageStreamItemsNested addNewImageStreamItemLike(ImageStream item){
            return new ImageStreamItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.ImageStreamItemsNested setNewImageStreamItemLike(int index,ImageStream item){
            return new ImageStreamItemsNestedImpl(index, item);
    }

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

    public A setToRoleBindingRestrictionItems(int index,RoleBindingRestriction item){
            RoleBindingRestrictionBuilder builder = new RoleBindingRestrictionBuilder(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 addToRoleBindingRestrictionItems(RoleBindingRestriction... items){
            for (RoleBindingRestriction item : items) {RoleBindingRestrictionBuilder builder = new RoleBindingRestrictionBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToRoleBindingRestrictionItems(Collection items){
            for (RoleBindingRestriction item : items) {RoleBindingRestrictionBuilder builder = new RoleBindingRestrictionBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromRoleBindingRestrictionItems(RoleBindingRestriction... items){
            for (RoleBindingRestriction item : items) {RoleBindingRestrictionBuilder builder = new RoleBindingRestrictionBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromRoleBindingRestrictionItems(Collection items){
            for (RoleBindingRestriction item : items) {RoleBindingRestrictionBuilder builder = new RoleBindingRestrictionBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.RoleBindingRestrictionItemsNested addNewRoleBindingRestrictionItem(){
            return new RoleBindingRestrictionItemsNestedImpl();
    }

    public BaseKubernetesListFluent.RoleBindingRestrictionItemsNested addNewRoleBindingRestrictionItemLike(RoleBindingRestriction item){
            return new RoleBindingRestrictionItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.RoleBindingRestrictionItemsNested setNewRoleBindingRestrictionItemLike(int index,RoleBindingRestriction item){
            return new RoleBindingRestrictionItemsNestedImpl(index, item);
    }

    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 addToLocalSubjectAccessReviewItems(int index,io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReview item){
            io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReviewBuilder builder = new io.alauda.kubernetes.api.model.authorization.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,io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReview item){
            io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReviewBuilder builder = new io.alauda.kubernetes.api.model.authorization.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(io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReview... items){
            for (io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReview item : items) {io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReviewBuilder builder = new io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReviewBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToAuthorizationLocalSubjectAccessReviewItems(Collection items){
            for (io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReview item : items) {io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReviewBuilder builder = new io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReviewBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromLocalSubjectAccessReviewItems(io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReview... items){
            for (io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReview item : items) {io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReviewBuilder builder = new io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReviewBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromAuthorizationLocalSubjectAccessReviewItems(Collection items){
            for (io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReview item : items) {io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReviewBuilder builder = new io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReviewBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.AuthorizationLocalSubjectAccessReviewItemsNested addNewAuthorizationLocalSubjectAccessReviewItem(){
            return new AuthorizationLocalSubjectAccessReviewItemsNestedImpl();
    }

    public BaseKubernetesListFluent.AuthorizationLocalSubjectAccessReviewItemsNested addNewLocalSubjectAccessReviewItemLike(io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReview item){
            return new AuthorizationLocalSubjectAccessReviewItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.AuthorizationLocalSubjectAccessReviewItemsNested setNewLocalSubjectAccessReviewItemLike(int index,io.alauda.kubernetes.api.model.authorization.LocalSubjectAccessReview item){
            return new AuthorizationLocalSubjectAccessReviewItemsNestedImpl(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 addToOAuthClientItems(int index,OAuthClient item){
            OAuthClientBuilder builder = new OAuthClientBuilder(item);_visitables.add(index >= 0 ? index : _visitables.size(), builder);this.items.add(index >= 0 ? index : items.size(), builder); return (A)this;
    }

    public A setToOAuthClientItems(int index,OAuthClient item){
            OAuthClientBuilder builder = new OAuthClientBuilder(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 addToOAuthClientItems(OAuthClient... items){
            for (OAuthClient item : items) {OAuthClientBuilder builder = new OAuthClientBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToOAuthClientItems(Collection items){
            for (OAuthClient item : items) {OAuthClientBuilder builder = new OAuthClientBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A removeFromOAuthClientItems(OAuthClient... items){
            for (OAuthClient item : items) {OAuthClientBuilder builder = new OAuthClientBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public A removeAllFromOAuthClientItems(Collection items){
            for (OAuthClient item : items) {OAuthClientBuilder builder = new OAuthClientBuilder(item);_visitables.remove(builder);this.items.remove(builder);} return (A)this;
    }

    public BaseKubernetesListFluent.OAuthClientItemsNested addNewOAuthClientItem(){
            return new OAuthClientItemsNestedImpl();
    }

    public BaseKubernetesListFluent.OAuthClientItemsNested addNewOAuthClientItemLike(OAuthClient item){
            return new OAuthClientItemsNestedImpl(-1, item);
    }

    public BaseKubernetesListFluent.OAuthClientItemsNested setNewOAuthClientItemLike(int index,OAuthClient item){
            return new OAuthClientItemsNestedImpl(index, item);
    }

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

    public A setToTemplateItems(int index,Template item){
            TemplateBuilder builder = new TemplateBuilder(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 addToTemplateItems(Template... items){
            for (Template item : items) {TemplateBuilder builder = new TemplateBuilder(item);_visitables.add(builder);this.items.add(builder);} return (A)this;
    }

    public A addAllToTemplateItems(Collection