io.fabric8.kubernetes.api.model.KubernetesListFluent Maven / Gradle / Ivy
package io.fabric8.kubernetes.api.model;
import io.fabric8.openshift.api.model.BuildConfig;
import io.fabric8.openshift.api.model.OAuthClient;
import io.fabric8.openshift.api.model.DeploymentConfig;
import java.util.Map;
import io.fabric8.openshift.api.model.ImageStream;
import java.util.List;
import io.fabric8.openshift.api.model.template.Template;
import java.util.HashMap;
import io.fabric8.openshift.api.model.OAuthAccessToken;
import io.fabric8.openshift.api.model.OAuthClientAuthorization;
import io.fabric8.openshift.api.model.Route;
import java.util.ArrayList;
import io.fabric8.openshift.api.model.OAuthAccessTokenFluent;
import io.fabric8.common.Nested;
import io.fabric8.common.Builder;
import io.fabric8.common.Fluent;
import io.fabric8.openshift.api.model.template.TemplateBuilder;
import io.fabric8.openshift.api.model.ImageStreamBuilder;
import io.fabric8.openshift.api.model.RouteFluent;
import io.fabric8.openshift.api.model.DeploymentConfigBuilder;
import io.fabric8.openshift.api.model.BuildConfigFluent;
import io.fabric8.openshift.api.model.OAuthClientBuilder;
import io.fabric8.openshift.api.model.RouteBuilder;
import io.fabric8.openshift.api.model.OAuthAccessTokenBuilder;
import io.fabric8.openshift.api.model.BuildConfigBuilder;
import io.fabric8.openshift.api.model.OAuthClientFluent;
import io.fabric8.openshift.api.model.ImageStreamFluent;
import io.fabric8.openshift.api.model.OAuthClientAuthorizationFluent;
import io.fabric8.openshift.api.model.DeploymentConfigFluent;
import io.fabric8.openshift.api.model.OAuthClientAuthorizationBuilder;
import io.fabric8.openshift.api.model.template.TemplateFluent;
public class KubernetesListFluent> extends BaseKubernetesListFluent implements Fluent{
List services = new ArrayList(); List replicationControllers = new ArrayList(); List pods = new ArrayList(); List buildConfigs = new ArrayList(); List deploymentConfigs = new ArrayList(); List imageStreams = new ArrayList(); List routes = new ArrayList(); List templates = new ArrayList(); List oAuthClients = new ArrayList(); List oAuthClientAuthorizations = new ArrayList(); List oAuthAccessTokens = new ArrayList(); List namespaces = new ArrayList(); List secrets = new ArrayList();
public T addToServices( Service item){
if (item != null) {ServiceBuilder builder = new ServiceBuilder(item);_visitables.add(builder);this.services.add(builder);} return (T)this;
}
public List getServices(){
return build(services);
}
public T withServices( List services){
this.services.clear();if (services != null) {for (Service item : services){this.addToServices(item);}} return (T) this;
}
public ServicesNested addNewService(){
return new ServicesNested();
}
public T addToReplicationControllers( ReplicationController item){
if (item != null) {ReplicationControllerBuilder builder = new ReplicationControllerBuilder(item);_visitables.add(builder);this.replicationControllers.add(builder);} return (T)this;
}
public List getReplicationControllers(){
return build(replicationControllers);
}
public T withReplicationControllers( List replicationControllers){
this.replicationControllers.clear();if (replicationControllers != null) {for (ReplicationController item : replicationControllers){this.addToReplicationControllers(item);}} return (T) this;
}
public ReplicationControllersNested addNewReplicationController(){
return new ReplicationControllersNested();
}
public T addToPods( Pod item){
if (item != null) {PodBuilder builder = new PodBuilder(item);_visitables.add(builder);this.pods.add(builder);} return (T)this;
}
public List getPods(){
return build(pods);
}
public T withPods( List pods){
this.pods.clear();if (pods != null) {for (Pod item : pods){this.addToPods(item);}} return (T) this;
}
public PodsNested addNewPod(){
return new PodsNested();
}
public T addToBuildConfigs( BuildConfig item){
if (item != null) {BuildConfigBuilder builder = new BuildConfigBuilder(item);_visitables.add(builder);this.buildConfigs.add(builder);} return (T)this;
}
public List getBuildConfigs(){
return build(buildConfigs);
}
public T withBuildConfigs( List buildConfigs){
this.buildConfigs.clear();if (buildConfigs != null) {for (BuildConfig item : buildConfigs){this.addToBuildConfigs(item);}} return (T) this;
}
public BuildConfigsNested addNewBuildConfig(){
return new BuildConfigsNested();
}
public T addToDeploymentConfigs( DeploymentConfig item){
if (item != null) {DeploymentConfigBuilder builder = new DeploymentConfigBuilder(item);_visitables.add(builder);this.deploymentConfigs.add(builder);} return (T)this;
}
public List getDeploymentConfigs(){
return build(deploymentConfigs);
}
public T withDeploymentConfigs( List deploymentConfigs){
this.deploymentConfigs.clear();if (deploymentConfigs != null) {for (DeploymentConfig item : deploymentConfigs){this.addToDeploymentConfigs(item);}} return (T) this;
}
public DeploymentConfigsNested addNewDeploymentConfig(){
return new DeploymentConfigsNested();
}
public T addToImageStreams( ImageStream item){
if (item != null) {ImageStreamBuilder builder = new ImageStreamBuilder(item);_visitables.add(builder);this.imageStreams.add(builder);} return (T)this;
}
public List getImageStreams(){
return build(imageStreams);
}
public T withImageStreams( List imageStreams){
this.imageStreams.clear();if (imageStreams != null) {for (ImageStream item : imageStreams){this.addToImageStreams(item);}} return (T) this;
}
public ImageStreamsNested addNewImageStream(){
return new ImageStreamsNested();
}
public T addToRoutes( Route item){
if (item != null) {RouteBuilder builder = new RouteBuilder(item);_visitables.add(builder);this.routes.add(builder);} return (T)this;
}
public List getRoutes(){
return build(routes);
}
public T withRoutes( List routes){
this.routes.clear();if (routes != null) {for (Route item : routes){this.addToRoutes(item);}} return (T) this;
}
public RoutesNested addNewRoute(){
return new RoutesNested();
}
public T addToTemplates( Template item){
if (item != null) {TemplateBuilder builder = new TemplateBuilder(item);_visitables.add(builder);this.templates.add(builder);} return (T)this;
}
public List getTemplates(){
return build(templates);
}
public T withTemplates( List templates){
this.templates.clear();if (templates != null) {for (Template item : templates){this.addToTemplates(item);}} return (T) this;
}
public TemplatesNested addNewTemplate(){
return new TemplatesNested();
}
public T addToOAuthClients( OAuthClient item){
if (item != null) {OAuthClientBuilder builder = new OAuthClientBuilder(item);_visitables.add(builder);this.oAuthClients.add(builder);} return (T)this;
}
public List getOAuthClients(){
return build(oAuthClients);
}
public T withOAuthClients( List oAuthClients){
this.oAuthClients.clear();if (oAuthClients != null) {for (OAuthClient item : oAuthClients){this.addToOAuthClients(item);}} return (T) this;
}
public OAuthClientsNested addNewOAuthClient(){
return new OAuthClientsNested();
}
public T addToOAuthClientAuthorizations( OAuthClientAuthorization item){
if (item != null) {OAuthClientAuthorizationBuilder builder = new OAuthClientAuthorizationBuilder(item);_visitables.add(builder);this.oAuthClientAuthorizations.add(builder);} return (T)this;
}
public List getOAuthClientAuthorizations(){
return build(oAuthClientAuthorizations);
}
public T withOAuthClientAuthorizations( List oAuthClientAuthorizations){
this.oAuthClientAuthorizations.clear();if (oAuthClientAuthorizations != null) {for (OAuthClientAuthorization item : oAuthClientAuthorizations){this.addToOAuthClientAuthorizations(item);}} return (T) this;
}
public OAuthClientAuthorizationsNested addNewOAuthClientAuthorization(){
return new OAuthClientAuthorizationsNested();
}
public T addToOAuthAccessTokens( OAuthAccessToken item){
if (item != null) {OAuthAccessTokenBuilder builder = new OAuthAccessTokenBuilder(item);_visitables.add(builder);this.oAuthAccessTokens.add(builder);} return (T)this;
}
public List getOAuthAccessTokens(){
return build(oAuthAccessTokens);
}
public T withOAuthAccessTokens( List oAuthAccessTokens){
this.oAuthAccessTokens.clear();if (oAuthAccessTokens != null) {for (OAuthAccessToken item : oAuthAccessTokens){this.addToOAuthAccessTokens(item);}} return (T) this;
}
public OAuthAccessTokensNested addNewOAuthAccessToken(){
return new OAuthAccessTokensNested();
}
public T addToNamespaces( Namespace item){
if (item != null) {NamespaceBuilder builder = new NamespaceBuilder(item);_visitables.add(builder);this.namespaces.add(builder);} return (T)this;
}
public List getNamespaces(){
return build(namespaces);
}
public T withNamespaces( List namespaces){
this.namespaces.clear();if (namespaces != null) {for (Namespace item : namespaces){this.addToNamespaces(item);}} return (T) this;
}
public NamespacesNested addNewNamespace(){
return new NamespacesNested();
}
public T addToSecrets( Secret item){
if (item != null) {SecretBuilder builder = new SecretBuilder(item);_visitables.add(builder);this.secrets.add(builder);} return (T)this;
}
public List getSecrets(){
return build(secrets);
}
public T withSecrets( List secrets){
this.secrets.clear();if (secrets != null) {for (Secret item : secrets){this.addToSecrets(item);}} return (T) this;
}
public SecretsNested addNewSecret(){
return new SecretsNested();
}
public class ServicesNested extends ServiceFluent> implements Nested{
private final ServiceBuilder builder = new ServiceBuilder(this);
public N and(){
return (N) KubernetesListFluent.this.addToServices(builder.build());
}
public N endService(){
return and();
}
}
public class ReplicationControllersNested extends ReplicationControllerFluent> implements Nested{
private final ReplicationControllerBuilder builder = new ReplicationControllerBuilder(this);
public N endReplicationController(){
return and();
}
public N and(){
return (N) KubernetesListFluent.this.addToReplicationControllers(builder.build());
}
}
public class PodsNested extends PodFluent> implements Nested{
private final PodBuilder builder = new PodBuilder(this);
public N and(){
return (N) KubernetesListFluent.this.addToPods(builder.build());
}
public N endPod(){
return and();
}
}
public class BuildConfigsNested extends BuildConfigFluent> implements Nested{
private final BuildConfigBuilder builder = new BuildConfigBuilder(this);
public N endBuildConfig(){
return and();
}
public N and(){
return (N) KubernetesListFluent.this.addToBuildConfigs(builder.build());
}
}
public class DeploymentConfigsNested extends DeploymentConfigFluent> implements Nested{
private final DeploymentConfigBuilder builder = new DeploymentConfigBuilder(this);
public N and(){
return (N) KubernetesListFluent.this.addToDeploymentConfigs(builder.build());
}
public N endDeploymentConfig(){
return and();
}
}
public class ImageStreamsNested extends ImageStreamFluent> implements Nested{
private final ImageStreamBuilder builder = new ImageStreamBuilder(this);
public N endImageStream(){
return and();
}
public N and(){
return (N) KubernetesListFluent.this.addToImageStreams(builder.build());
}
}
public class RoutesNested extends RouteFluent> implements Nested{
private final RouteBuilder builder = new RouteBuilder(this);
public N endRoute(){
return and();
}
public N and(){
return (N) KubernetesListFluent.this.addToRoutes(builder.build());
}
}
public class TemplatesNested extends TemplateFluent> implements Nested{
private final TemplateBuilder builder = new TemplateBuilder(this);
public N endTemplate(){
return and();
}
public N and(){
return (N) KubernetesListFluent.this.addToTemplates(builder.build());
}
}
public class OAuthClientsNested extends OAuthClientFluent> implements Nested{
private final OAuthClientBuilder builder = new OAuthClientBuilder(this);
public N and(){
return (N) KubernetesListFluent.this.addToOAuthClients(builder.build());
}
public N endOAuthClient(){
return and();
}
}
public class OAuthClientAuthorizationsNested extends OAuthClientAuthorizationFluent> implements Nested{
private final OAuthClientAuthorizationBuilder builder = new OAuthClientAuthorizationBuilder(this);
public N endOAuthClientAuthorization(){
return and();
}
public N and(){
return (N) KubernetesListFluent.this.addToOAuthClientAuthorizations(builder.build());
}
}
public class OAuthAccessTokensNested extends OAuthAccessTokenFluent> implements Nested{
private final OAuthAccessTokenBuilder builder = new OAuthAccessTokenBuilder(this);
public N and(){
return (N) KubernetesListFluent.this.addToOAuthAccessTokens(builder.build());
}
public N endOAuthAccessToken(){
return and();
}
}
public class NamespacesNested extends NamespaceFluent> implements Nested{
private final NamespaceBuilder builder = new NamespaceBuilder(this);
public N and(){
return (N) KubernetesListFluent.this.addToNamespaces(builder.build());
}
public N endNamespace(){
return and();
}
}
public class SecretsNested extends SecretFluent> implements Nested{
private final SecretBuilder builder = new SecretBuilder(this);
public N endSecret(){
return and();
}
public N and(){
return (N) KubernetesListFluent.this.addToSecrets(builder.build());
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy