me.snowdrop.istio.api.mesh.v1alpha1.DoneableSDS Maven / Gradle / Ivy
package me.snowdrop.istio.api.mesh.v1alpha1;
import io.fabric8.kubernetes.api.builder.Function;
import io.fabric8.kubernetes.api.model.Doneable;
public class DoneableSDS extends SDSFluentImpl implements Doneable{
private final SDSBuilder builder;
private final io.fabric8.kubernetes.api.builder.Function function;
public DoneableSDS(io.fabric8.kubernetes.api.builder.Function function){
super();this.builder=new SDSBuilder(this);this.function=function;
}
public DoneableSDS(SDS item,io.fabric8.kubernetes.api.builder.Function function){
super(item);this.builder=new SDSBuilder(this, item);this.function=function;
}
public DoneableSDS(SDS item){
super(item);this.builder=new SDSBuilder(this, item);this.function=new Function() {
public SDS apply(SDS item) {
return item;
}
}
;
}
public SDS done(){
return function.apply(builder.build());
}
}