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