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