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