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