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