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