public DoneableCustomBuildStrategy(Function<CustomBuildStrategy,CustomBuildStrategy> function){ super();this.builder=new CustomBuildStrategyBuilder(this);this.function=function; } public DoneableCustomBuildStrategy(CustomBuildStrategy item,Function<CustomBuildStrategy,CustomBuildStrategy> function){
public CustomBuildStrategyBuilder(CustomBuildStrategy instance,Boolean validationEnabled){ this.fluent = this; this.withBuildAPIVersion(instance.getBuildAPIVersion()); this.withEnv(instance.getEnv()); this.withExposeDockerSocket(instance.getExposeDockerSocket()); this.withForcePull(instance.getForcePull()); this.withFrom(instance.getFrom()); this.withPullSecret(instance.getPullSecret()); this.withSecrets(instance.getSecrets()); this.validationEnabled = validationEnabled; }
public CustomBuildStrategyBuilder( CustomBuildStrategy instance ){ this.fluent = this; this.withEnv(instance.getEnv()); this.withExposeDockerSocket(instance.getExposeDockerSocket()); this.withFrom(instance.getFrom()); this.withPullSecret(instance.getPullSecret()); }
public CustomBuildStrategy build(){ CustomBuildStrategy buildable = new CustomBuildStrategy(fluent.getEnv(),fluent.isExposeDockerSocket(),fluent.getFrom(),fluent.getPullSecret()); validate(buildable); return buildable; }
public CustomBuildStrategy done(){ return function.apply(builder.build()); }
public CustomBuildStrategyBuilder( CustomBuildStrategy instance ){ this.fluent = this; this.withEnv(instance.getEnv()); this.withExposeDockerSocket(instance.getExposeDockerSocket()); this.withFrom(instance.getFrom()); this.withPullSecret(instance.getPullSecret()); }
public CustomBuildStrategy build(){ CustomBuildStrategy buildable = new CustomBuildStrategy(fluent.getEnv(),fluent.isExposeDockerSocket(),fluent.getFrom(),fluent.getPullSecret()); validate(buildable); return buildable; }
public DoneableCustomBuildStrategy(CustomBuildStrategy item){ super(item);this.builder=new CustomBuildStrategyBuilder(this, item);this.function=new Function<CustomBuildStrategy, CustomBuildStrategy>() { public CustomBuildStrategy apply(CustomBuildStrategy item) { return item; } } ; }
public CustomBuildStrategy build(){ CustomBuildStrategy buildable = new CustomBuildStrategy(fluent.getBuildAPIVersion(),fluent.getEnv(),fluent.isExposeDockerSocket(),fluent.isForcePull(),fluent.getFrom(),fluent.getPullSecret(),fluent.getSecrets()); validate(buildable); return buildable; }
public DoneableCustomBuildStrategy(CustomBuildStrategy item,Function<CustomBuildStrategy,CustomBuildStrategy> function){ super(item);this.builder=new CustomBuildStrategyBuilder(this, item);this.function=function; } public DoneableCustomBuildStrategy(CustomBuildStrategy item){
public T withCustomStrategy( CustomBuildStrategy customStrategy){ if (customStrategy!=null){ this.customStrategy= new CustomBuildStrategyBuilder(customStrategy); _visitables.add(this.customStrategy);} return (T) this; } public CustomStrategyNested<T> withNewCustomStrategy(){
public T withCustomStrategy( CustomBuildStrategy customStrategy){ if (customStrategy!=null){ this.customStrategy= new CustomBuildStrategyBuilder(customStrategy); _visitables.add(this.customStrategy);} return (T) this; } public CustomStrategyNested<T> withNewCustomStrategy(){
public A withCustomStrategy(CustomBuildStrategy customStrategy){ if (customStrategy!=null){ this.customStrategy= new CustomBuildStrategyBuilder(customStrategy); _visitables.add(this.customStrategy);} return (A) this; }
SourceStrategyNested ( SourceBuildStrategy item){ this.builder = new SourceBuildStrategyBuilder(this, item); }
SourceStrategyNested (){ this.builder = new SourceBuildStrategyBuilder(this); }
public class SourceStrategyNestedImpl<N> extends SourceBuildStrategyFluentImpl<BuildStrategyFluent.SourceStrategyNested<N>> implements BuildStrategyFluent.SourceStrategyNested<N>,Nested<N>{ private final SourceBuildStrategyBuilder builder; SourceStrategyNestedImpl(){ this.builder = new SourceBuildStrategyBuilder(this); } SourceStrategyNestedImpl(SourceBuildStrategy item){ this.builder = new SourceBuildStrategyBuilder(this, item); } public N endSourceStrategy(){ return and(); } public N and(){ return (N) BuildStrategyFluentImpl.this.withSourceStrategy(builder.build()); } }