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