annotations.io.alauda.kubernetes.api.model.DoneableClusterPipelineTaskTemplate Maven / Gradle / Ivy
package io.alauda.kubernetes.api.model;
import io.alauda.kubernetes.api.builder.Function;
public class DoneableClusterPipelineTaskTemplate extends ClusterPipelineTaskTemplateFluentImpl implements Doneable{
private final ClusterPipelineTaskTemplateBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneableClusterPipelineTaskTemplate(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new ClusterPipelineTaskTemplateBuilder(this);this.function=function;
}
public DoneableClusterPipelineTaskTemplate(ClusterPipelineTaskTemplate item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new ClusterPipelineTaskTemplateBuilder(this, item);this.function=function;
}
public DoneableClusterPipelineTaskTemplate(ClusterPipelineTaskTemplate item){
super(item);this.builder=new ClusterPipelineTaskTemplateBuilder(this, item);this.function=new Function() {
public ClusterPipelineTaskTemplate apply(ClusterPipelineTaskTemplate item) {
return item;
}
}
;
}
public ClusterPipelineTaskTemplate done(){
return function.apply(builder.build());
}
}