io.alauda.kubernetes.api.model.extensions.DoneablePodSecurityPolicySpec 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 DoneablePodSecurityPolicySpec extends PodSecurityPolicySpecFluentImpl implements Doneable{
private final PodSecurityPolicySpecBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneablePodSecurityPolicySpec(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new PodSecurityPolicySpecBuilder(this);this.function=function;
}
public DoneablePodSecurityPolicySpec(PodSecurityPolicySpec item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new PodSecurityPolicySpecBuilder(this, item);this.function=function;
}
public DoneablePodSecurityPolicySpec(PodSecurityPolicySpec item){
super(item);this.builder=new PodSecurityPolicySpecBuilder(this, item);this.function=new Function() {
public PodSecurityPolicySpec apply(PodSecurityPolicySpec item) {
return item;
}
}
;
}
public PodSecurityPolicySpec done(){
return function.apply(builder.build());
}
}