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