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