io.alauda.kubernetes.api.model.extensions.DoneableStatefulSetUpdateStrategy 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 DoneableStatefulSetUpdateStrategy extends StatefulSetUpdateStrategyFluentImpl implements Doneable{
private final StatefulSetUpdateStrategyBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneableStatefulSetUpdateStrategy(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new StatefulSetUpdateStrategyBuilder(this);this.function=function;
}
public DoneableStatefulSetUpdateStrategy(StatefulSetUpdateStrategy item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new StatefulSetUpdateStrategyBuilder(this, item);this.function=function;
}
public DoneableStatefulSetUpdateStrategy(StatefulSetUpdateStrategy item){
super(item);this.builder=new StatefulSetUpdateStrategyBuilder(this, item);this.function=new Function() {
public StatefulSetUpdateStrategy apply(StatefulSetUpdateStrategy item) {
return item;
}
}
;
}
public StatefulSetUpdateStrategy done(){
return function.apply(builder.build());
}
}