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 class FromNested<N> extends ObjectReferenceFluent<FromNested<N>> implements Nested<N>{ private final ObjectReferenceBuilder builder; FromNested ( ObjectReference item){ this.builder = new ObjectReferenceBuilder(this, item); } FromNested (){ this.builder = new ObjectReferenceBuilder(this); } public N endFrom(){ return and(); } public N and(){ return (N) CustomBuildStrategyFluent.this.withFrom(builder.build()); } }
public List<EnvVar> getEnv(){ return build(env); } public T withEnv( List<EnvVar> env){
public FromNested<T> editFrom(){ return withNewFromLike(getFrom()); } public LocalObjectReference getPullSecret(){
public CustomBuildStrategyBuilder(CustomBuildStrategyFluent<?> fluent,CustomBuildStrategy instance,Boolean validationEnabled){ this.fluent = fluent; fluent.withBuildAPIVersion(instance.getBuildAPIVersion()); fluent.withEnv(instance.getEnv()); fluent.withExposeDockerSocket(instance.getExposeDockerSocket()); fluent.withForcePull(instance.getForcePull()); fluent.withFrom(instance.getFrom()); fluent.withPullSecret(instance.getPullSecret()); fluent.withSecrets(instance.getSecrets()); this.validationEnabled = validationEnabled; } public CustomBuildStrategyBuilder(CustomBuildStrategy instance){
public CustomBuildStrategy build(){ CustomBuildStrategy buildable = new CustomBuildStrategy(fluent.getEnv(),fluent.isExposeDockerSocket(),fluent.getFrom(),fluent.getPullSecret()); validate(buildable); return buildable; }
public CustomBuildStrategyBuilder( CustomBuildStrategyFluent<?> fluent , CustomBuildStrategy instance ){ this.fluent = fluent; fluent.withEnv(instance.getEnv()); fluent.withExposeDockerSocket(instance.getExposeDockerSocket()); fluent.withFrom(instance.getFrom()); fluent.withPullSecret(instance.getPullSecret()); } public CustomBuildStrategyBuilder( CustomBuildStrategy instance ){
public CustomBuildStrategy build(){ CustomBuildStrategy buildable = new CustomBuildStrategy(fluent.getEnv(),fluent.isExposeDockerSocket(),fluent.getFrom(),fluent.getPullSecret()); validate(buildable); return buildable; }
public CustomBuildStrategyBuilder( CustomBuildStrategyFluent<?> fluent , CustomBuildStrategy instance ){ this.fluent = fluent; fluent.withEnv(instance.getEnv()); fluent.withExposeDockerSocket(instance.getExposeDockerSocket()); fluent.withFrom(instance.getFrom()); fluent.withPullSecret(instance.getPullSecret()); } public CustomBuildStrategyBuilder( CustomBuildStrategy instance ){
public FromNested<T> editFrom(){ return withNewFromLike(getFrom()); } public LocalObjectReference getPullSecret(){
public class FromNested<N> extends ObjectReferenceFluent<FromNested<N>> implements Nested<N>{ private final ObjectReferenceBuilder builder; FromNested (){ this.builder = new ObjectReferenceBuilder(this); } FromNested ( ObjectReference item){ this.builder = new ObjectReferenceBuilder(item); } public N and(){ return (N) CustomBuildStrategyFluent.this.withFrom(builder.build()); } public N endFrom(){ return and(); } }
public List<EnvVar> getEnv(){ return build(env); } public T withEnv( List<EnvVar> env){
public T withEnv( List<EnvVar> env){ this.env.clear();if (env != null) {for (EnvVar item : env){this.addToEnv(item);}} return (T) this; } public EnvNested<T> addNewEnv(){
public T withEnv( List<EnvVar> env){ this.env.clear();if (env != null) {for (EnvVar item : env){this.addToEnv(item);}} return (T) this; } public EnvNested<T> addNewEnv(){