io.fabric8.kubernetes.api.model.DoneableNamedCluster Maven / Gradle / Ivy
package io.fabric8.kubernetes.api.model;
import io.fabric8.kubernetes.api.builder.Function;
public class DoneableNamedCluster extends NamedClusterFluentImpl implements Doneable{
private final NamedClusterBuilder builder;
private final io.fabric8.kubernetes.api.builder.Function function;
public DoneableNamedCluster(io.fabric8.kubernetes.api.builder.Function function){
super();this.builder=new NamedClusterBuilder(this);this.function=function;
}
public DoneableNamedCluster(NamedCluster item,io.fabric8.kubernetes.api.builder.Function function){
super(item);this.builder=new NamedClusterBuilder(this, item);this.function=function;
}
public DoneableNamedCluster(NamedCluster item){
super(item);this.builder=new NamedClusterBuilder(this, item);this.function=new Function() {
public NamedCluster apply(NamedCluster item) {
return item;
}
}
;
}
public NamedCluster done(){
return function.apply(builder.build());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy