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