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