annotations.io.fabric8.kubernetes.api.model.DoneableBinding Maven / Gradle / Ivy
package io.fabric8.kubernetes.api.model;
import io.fabric8.kubernetes.api.builder.Visitable;
import io.fabric8.kubernetes.api.builder.Builder;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import io.fabric8.kubernetes.api.builder.Fluent;
import io.fabric8.kubernetes.api.builder.Function;
import io.fabric8.kubernetes.api.builder.Visitable;
import io.fabric8.kubernetes.api.builder.BaseFluent;
public class DoneableBinding extends BindingFluentImpl implements Doneable, BindingFluent{
private final BindingBuilder builder; private final Function function;
public DoneableBinding ( Function function){
this.builder=new BindingBuilder(this);this.function=function;
}
public DoneableBinding ( Binding item, Function function){
this.builder=new BindingBuilder(this, item);this.function=function;
}
public DoneableBinding ( Binding item){
this.builder=new BindingBuilder(this, item);this.function=new Function() {
public Binding apply(Binding item) {
return item;
}
}
;
}
public Binding done(){
return function.apply(builder.build());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy