annotations.io.alauda.kubernetes.api.model.DoneablePodSecurityContext Maven / Gradle / Ivy
package io.alauda.kubernetes.api.model;
import io.alauda.kubernetes.api.builder.Function;
public class DoneablePodSecurityContext extends PodSecurityContextFluentImpl implements Doneable{
private final PodSecurityContextBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneablePodSecurityContext(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new PodSecurityContextBuilder(this);this.function=function;
}
public DoneablePodSecurityContext(PodSecurityContext item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new PodSecurityContextBuilder(this, item);this.function=function;
}
public DoneablePodSecurityContext(PodSecurityContext item){
super(item);this.builder=new PodSecurityContextBuilder(this, item);this.function=new Function() {
public PodSecurityContext apply(PodSecurityContext item) {
return item;
}
}
;
}
public PodSecurityContext done(){
return function.apply(builder.build());
}
}