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