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