annotations.me.snowdrop.applicationcrd.api.model.DoneableApplicationSpec Maven / Gradle / Ivy
package me.snowdrop.applicationcrd.api.model;
import io.fabric8.kubernetes.api.builder.Function;
import io.fabric8.kubernetes.api.model.Doneable;
public class DoneableApplicationSpec extends ApplicationSpecFluentImpl implements Doneable{
private final ApplicationSpecBuilder builder;
private final io.fabric8.kubernetes.api.builder.Function function;
public DoneableApplicationSpec(io.fabric8.kubernetes.api.builder.Function function){
super();this.builder=new ApplicationSpecBuilder(this);this.function=function;
}
public DoneableApplicationSpec(ApplicationSpec item,io.fabric8.kubernetes.api.builder.Function function){
super(item);this.builder=new ApplicationSpecBuilder(this, item);this.function=function;
}
public DoneableApplicationSpec(ApplicationSpec item){
super(item);this.builder=new ApplicationSpecBuilder(this, item);this.function=new Function() {
public ApplicationSpec apply(ApplicationSpec item) {
return item;
}
}
;
}
public ApplicationSpec done(){
return function.apply(builder.build());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy