io.alauda.kubernetes.api.model.extensions.DoneableStatefulSetSpec Maven / Gradle / Ivy
package io.alauda.kubernetes.api.model.extensions;
import io.alauda.kubernetes.api.builder.Function;
import io.alauda.kubernetes.api.model.Doneable;
public class DoneableStatefulSetSpec extends StatefulSetSpecFluentImpl implements Doneable{
private final StatefulSetSpecBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneableStatefulSetSpec(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new StatefulSetSpecBuilder(this);this.function=function;
}
public DoneableStatefulSetSpec(StatefulSetSpec item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new StatefulSetSpecBuilder(this, item);this.function=function;
}
public DoneableStatefulSetSpec(StatefulSetSpec item){
super(item);this.builder=new StatefulSetSpecBuilder(this, item);this.function=new Function() {
public StatefulSetSpec apply(StatefulSetSpec item) {
return item;
}
}
;
}
public StatefulSetSpec done(){
return function.apply(builder.build());
}
}