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