public DoneableDeploymentConfigSpec(DeploymentConfigSpec item){ super(item);this.builder=new DeploymentConfigSpecBuilder(this, item);this.function=new Function<DeploymentConfigSpec, DeploymentConfigSpec>() { public DeploymentConfigSpec apply(DeploymentConfigSpec item) { return item; } } ; }
public DeploymentConfigSpecBuilder(DeploymentConfigSpec instance,Boolean validationEnabled){ this.fluent = this; this.withMinReadySeconds(instance.getMinReadySeconds()); this.withPaused(instance.getPaused()); this.withReplicas(instance.getReplicas()); this.withRevisionHistoryLimit(instance.getRevisionHistoryLimit()); this.withSelector(instance.getSelector()); this.withStrategy(instance.getStrategy()); this.withTemplate(instance.getTemplate()); this.withTest(instance.getTest()); this.withTriggers(instance.getTriggers()); this.validationEnabled = validationEnabled; }
public DeploymentConfigSpecBuilder( DeploymentConfigSpec instance ){ this.fluent = this; this.withReplicas(instance.getReplicas()); this.withSelector(instance.getSelector()); this.withStrategy(instance.getStrategy()); this.withTemplate(instance.getTemplate()); this.withTemplateRef(instance.getTemplateRef()); this.withTriggers(instance.getTriggers()); }
public DeploymentConfigSpec build(){ DeploymentConfigSpec buildable = new DeploymentConfigSpec(fluent.getReplicas(),fluent.getSelector(),fluent.getStrategy(),fluent.getTemplate(),fluent.getTemplateRef(),fluent.getTriggers()); validate(buildable); return buildable; }
public DeploymentConfigSpec done(){ return function.apply(builder.build()); }
public DeploymentConfigSpecBuilder( DeploymentConfigSpec instance ){ this.fluent = this; this.withReplicas(instance.getReplicas()); this.withSelector(instance.getSelector()); this.withStrategy(instance.getStrategy()); this.withTemplate(instance.getTemplate()); this.withTemplateRef(instance.getTemplateRef()); this.withTriggers(instance.getTriggers()); }
public DeploymentConfigSpec build(){ DeploymentConfigSpec buildable = new DeploymentConfigSpec(fluent.getReplicas(),fluent.getSelector(),fluent.getStrategy(),fluent.getTemplate(),fluent.getTemplateRef(),fluent.getTriggers()); validate(buildable); return buildable; }
public DoneableDeploymentConfigSpec(Function<DeploymentConfigSpec,DeploymentConfigSpec> function){ super();this.builder=new DeploymentConfigSpecBuilder(this);this.function=function; } public DoneableDeploymentConfigSpec(DeploymentConfigSpec item,Function<DeploymentConfigSpec,DeploymentConfigSpec> function){
public DeploymentConfigSpec build(){ DeploymentConfigSpec buildable = new DeploymentConfigSpec(fluent.getMinReadySeconds(),fluent.isPaused(),fluent.getReplicas(),fluent.getRevisionHistoryLimit(),fluent.getSelector(),fluent.getStrategy(),fluent.getTemplate(),fluent.isTest(),fluent.getTriggers()); validate(buildable); return buildable; }
public DoneableDeploymentConfigSpec(DeploymentConfigSpec item,Function<DeploymentConfigSpec,DeploymentConfigSpec> function){ super(item);this.builder=new DeploymentConfigSpecBuilder(this, item);this.function=function; } public DoneableDeploymentConfigSpec(DeploymentConfigSpec item){
public A withSpec(DeploymentConfigSpec spec){ if (spec!=null){ this.spec= new DeploymentConfigSpecBuilder(spec); _visitables.add(this.spec);} return (A) this; }
public T withSpec( DeploymentConfigSpec spec){ if (spec!=null){ this.spec= new DeploymentConfigSpecBuilder(spec); _visitables.add(this.spec);} return (T) this; } public SpecNested<T> withNewSpec(){
public T withSpec( DeploymentConfigSpec spec){ if (spec!=null){ this.spec= new DeploymentConfigSpecBuilder(spec); _visitables.add(this.spec);} return (T) this; } public SpecNested<T> withNewSpec(){
StatusNested (){ this.builder = new DeploymentConfigStatusBuilder(this); }
StatusNested (){ this.builder = new DeploymentConfigStatusBuilder(this); }
public class StatusNestedImpl<N> extends DeploymentConfigStatusFluentImpl<DeploymentConfigFluent.StatusNested<N>> implements DeploymentConfigFluent.StatusNested<N>,Nested<N>{ private final DeploymentConfigStatusBuilder builder; StatusNestedImpl(){ this.builder = new DeploymentConfigStatusBuilder(this); } StatusNestedImpl(DeploymentConfigStatus item){ this.builder = new DeploymentConfigStatusBuilder(this, item); } public N endStatus(){ return and(); } public N and(){ return (N) DeploymentConfigFluentImpl.this.withStatus(builder.build()); } }