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