io.alauda.devops.api.model.DoneableBuildTriggerPolicy 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 DoneableBuildTriggerPolicy extends BuildTriggerPolicyFluentImpl implements Doneable{
private final BuildTriggerPolicyBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneableBuildTriggerPolicy(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new BuildTriggerPolicyBuilder(this);this.function=function;
}
public DoneableBuildTriggerPolicy(BuildTriggerPolicy item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new BuildTriggerPolicyBuilder(this, item);this.function=function;
}
public DoneableBuildTriggerPolicy(BuildTriggerPolicy item){
super(item);this.builder=new BuildTriggerPolicyBuilder(this, item);this.function=new Function() {
public BuildTriggerPolicy apply(BuildTriggerPolicy item) {
return item;
}
}
;
}
public BuildTriggerPolicy done(){
return function.apply(builder.build());
}
}