me.snowdrop.istio.api.networking.v1alpha3.DoneableRouteDestination Maven / Gradle / Ivy
package me.snowdrop.istio.api.networking.v1alpha3;
import io.fabric8.kubernetes.api.builder.Function;
import io.fabric8.kubernetes.api.model.Doneable;
public class DoneableRouteDestination extends RouteDestinationFluentImpl implements Doneable{
private final RouteDestinationBuilder builder;
private final io.fabric8.kubernetes.api.builder.Function function;
public DoneableRouteDestination(io.fabric8.kubernetes.api.builder.Function function){
super();this.builder=new RouteDestinationBuilder(this);this.function=function;
}
public DoneableRouteDestination(RouteDestination item,io.fabric8.kubernetes.api.builder.Function function){
super(item);this.builder=new RouteDestinationBuilder(this, item);this.function=function;
}
public DoneableRouteDestination(RouteDestination item){
super(item);this.builder=new RouteDestinationBuilder(this, item);this.function=new Function() {
public RouteDestination apply(RouteDestination item) {
return item;
}
}
;
}
public RouteDestination done(){
return function.apply(builder.build());
}
}