io.alauda.devops.api.model.DoneableBinaryBuildSource Maven / Gradle / Ivy
package io.alauda.devops.api.model;
import io.alauda.kubernetes.api.builder.Function;
import io.alauda.kubernetes.api.model.Doneable;
public class DoneableBinaryBuildSource extends BinaryBuildSourceFluentImpl implements Doneable{
private final BinaryBuildSourceBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneableBinaryBuildSource(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new BinaryBuildSourceBuilder(this);this.function=function;
}
public DoneableBinaryBuildSource(BinaryBuildSource item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new BinaryBuildSourceBuilder(this, item);this.function=function;
}
public DoneableBinaryBuildSource(BinaryBuildSource item){
super(item);this.builder=new BinaryBuildSourceBuilder(this, item);this.function=new Function() {
public BinaryBuildSource apply(BinaryBuildSource item) {
return item;
}
}
;
}
public BinaryBuildSource done(){
return function.apply(builder.build());
}
}