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