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