io.alauda.kubernetes.api.model.extensions.DoneablePodSecurityPolicy Maven / Gradle / Ivy
package io.alauda.kubernetes.api.model.extensions;
import io.alauda.kubernetes.api.builder.Function;
import io.alauda.kubernetes.api.model.Doneable;
public class DoneablePodSecurityPolicy extends PodSecurityPolicyFluentImpl implements Doneable{
private final PodSecurityPolicyBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneablePodSecurityPolicy(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new PodSecurityPolicyBuilder(this);this.function=function;
}
public DoneablePodSecurityPolicy(PodSecurityPolicy item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new PodSecurityPolicyBuilder(this, item);this.function=function;
}
public DoneablePodSecurityPolicy(PodSecurityPolicy item){
super(item);this.builder=new PodSecurityPolicyBuilder(this, item);this.function=new Function() {
public PodSecurityPolicy apply(PodSecurityPolicy item) {
return item;
}
}
;
}
public PodSecurityPolicy done(){
return function.apply(builder.build());
}
}