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