annotations.io.alauda.kubernetes.api.model.DoneableHorizontalPodAutoscaler Maven / Gradle / Ivy
package io.alauda.kubernetes.api.model;
import io.alauda.kubernetes.api.builder.Function;
public class DoneableHorizontalPodAutoscaler extends HorizontalPodAutoscalerFluentImpl implements Doneable{
private final HorizontalPodAutoscalerBuilder builder;
private final io.alauda.kubernetes.api.builder.Function function;
public DoneableHorizontalPodAutoscaler(io.alauda.kubernetes.api.builder.Function function){
super();this.builder=new HorizontalPodAutoscalerBuilder(this);this.function=function;
}
public DoneableHorizontalPodAutoscaler(HorizontalPodAutoscaler item,io.alauda.kubernetes.api.builder.Function function){
super(item);this.builder=new HorizontalPodAutoscalerBuilder(this, item);this.function=function;
}
public DoneableHorizontalPodAutoscaler(HorizontalPodAutoscaler item){
super(item);this.builder=new HorizontalPodAutoscalerBuilder(this, item);this.function=new Function() {
public HorizontalPodAutoscaler apply(HorizontalPodAutoscaler item) {
return item;
}
}
;
}
public HorizontalPodAutoscaler done(){
return function.apply(builder.build());
}
}