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