public DoneableHTTPGetAction(HTTPGetAction item,Function<HTTPGetAction,HTTPGetAction> function){ super(item);this.builder=new HTTPGetActionBuilder(this, item);this.function=function; } public DoneableHTTPGetAction(HTTPGetAction item){
public DoneableHTTPGetAction(Function<HTTPGetAction,HTTPGetAction> function){ super();this.builder=new HTTPGetActionBuilder(this);this.function=function; } public DoneableHTTPGetAction(HTTPGetAction item,Function<HTTPGetAction,HTTPGetAction> function){
public DoneableHTTPGetAction(HTTPGetAction item){ super(item);this.builder=new HTTPGetActionBuilder(this, item);this.function=new Function<HTTPGetAction, HTTPGetAction>() { public HTTPGetAction apply(HTTPGetAction item) { return item; } } ; }
public HTTPGetActionBuilder edit(){ return new HTTPGetActionBuilder(this); }
public T withHttpGet( HTTPGetAction httpGet){ if (httpGet!=null){ this.httpGet= new HTTPGetActionBuilder(httpGet); _visitables.add(this.httpGet);} return (T) this; } public HttpGetNested<T> withNewHttpGet(){
public T withHttpGet( HTTPGetAction httpGet){ if (httpGet!=null){ this.httpGet= new HTTPGetActionBuilder(httpGet); _visitables.add(this.httpGet);} return (T) this; } public HttpGetNested<T> withNewHttpGet(){
public T withHttpGet( HTTPGetAction httpGet){ if (httpGet!=null){ this.httpGet= new HTTPGetActionBuilder(httpGet); _visitables.add(this.httpGet);} return (T) this; } public HttpGetNested<T> withNewHttpGet(){
public A withHttpGet(HTTPGetAction httpGet){ if (httpGet!=null){ this.httpGet= new HTTPGetActionBuilder(httpGet); _visitables.add(this.httpGet);} return (A) this; }
public T withHttpGet( HTTPGetAction httpGet){ if (httpGet!=null){ this.httpGet= new HTTPGetActionBuilder(httpGet); _visitables.add(this.httpGet);} return (T) this; } public HttpGetNested<T> withNewHttpGet(){
public A withHttpGet(HTTPGetAction httpGet){ if (httpGet!=null){ this.httpGet= new HTTPGetActionBuilder(httpGet); _visitables.add(this.httpGet);} return (A) this; }
TcpSocketNested ( TCPSocketAction item){ this.builder = new TCPSocketActionBuilder(this, item); }
TcpSocketNested (){ this.builder = new TCPSocketActionBuilder(this); }
TcpSocketNested (){ this.builder = new TCPSocketActionBuilder(this); }
TcpSocketNested (){ this.builder = new TCPSocketActionBuilder(this); }
public class TcpSocketNestedImpl<N> extends TCPSocketActionFluentImpl<HandlerFluent.TcpSocketNested<N>> implements HandlerFluent.TcpSocketNested<N>,Nested<N>{ private final TCPSocketActionBuilder builder; TcpSocketNestedImpl(){ this.builder = new TCPSocketActionBuilder(this); } TcpSocketNestedImpl(TCPSocketAction item){ this.builder = new TCPSocketActionBuilder(this, item); } public N endTcpSocket(){ return and(); } public N and(){ return (N) HandlerFluentImpl.this.withTcpSocket(builder.build()); } }
public class TcpSocketNestedImpl<N> extends TCPSocketActionFluentImpl<ProbeFluent.TcpSocketNested<N>> implements ProbeFluent.TcpSocketNested<N>,Nested<N>{ private final TCPSocketActionBuilder builder; TcpSocketNestedImpl(){ this.builder = new TCPSocketActionBuilder(this); } TcpSocketNestedImpl(TCPSocketAction item){ this.builder = new TCPSocketActionBuilder(this, item); } public N endTcpSocket(){ return and(); } public N and(){ return (N) ProbeFluentImpl.this.withTcpSocket(builder.build()); } }
Probe create() { HTTPGetActionBuilder httpGetActionBuilder = new HTTPGetActionBuilder() .withPath(getProbePath()) .withNewPort(getPort()); List<HTTPHeader> httpHeaders = getHttpHeaders(); if (!httpHeaders.isEmpty()) { httpGetActionBuilder.withHttpHeaders(httpHeaders); } return new ProbeBuilder() .withHttpGet(httpGetActionBuilder.build()) .withTimeoutSeconds(getTimeout()) .withInitialDelaySeconds(getInitialDelay()) .withPeriodSeconds(getPeriod()) .build(); }