Package org.jvnet.hudson.test
Class InboundAgentRule.Options.Builder
- java.lang.Object
-
- org.jvnet.hudson.test.InboundAgentRule.Options.Builder
-
- Enclosing class:
- InboundAgentRule.Options
public static final class InboundAgentRule.Options.Builder extends Object
A builder ofInboundAgentRule.Options
.Instances of
InboundAgentRule.Options.Builder
are created by callingInboundAgentRule.Options.newBuilder()
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InboundAgentRule.Options
build()
Build and return anInboundAgentRule.Options
.InboundAgentRule.Options.Builder
color(PrefixedOutputStream.AnsiColor color)
Set a color for agent logs.InboundAgentRule.Options.Builder
label(String label)
Set a label for the agent.InboundAgentRule.Options.Builder
name(String name)
Set the name of the agent.InboundAgentRule.Options.Builder
secret()
Use secret when connecting.InboundAgentRule.Options.Builder
skipStart()
Skip starting the agent.InboundAgentRule.Options.Builder
tunnel(String tunnel)
Set a tunnel for the agentInboundAgentRule.Options.Builder
webSocket()
Use WebSocket when connecting.InboundAgentRule.Options.Builder
webSocket(boolean websocket)
Configure usage of WebSocket when connecting.
-
-
-
Method Detail
-
name
public InboundAgentRule.Options.Builder name(String name)
Set the name of the agent.- Parameters:
name
- the name- Returns:
- this builder
-
color
public InboundAgentRule.Options.Builder color(PrefixedOutputStream.AnsiColor color)
Set a color for agent logs.- Parameters:
color
- the color- Returns:
- this builder
-
secret
public InboundAgentRule.Options.Builder secret()
Use secret when connecting.- Returns:
- this builder
-
webSocket
public InboundAgentRule.Options.Builder webSocket()
Use WebSocket when connecting.- Returns:
- this builder
-
webSocket
public InboundAgentRule.Options.Builder webSocket(boolean websocket)
Configure usage of WebSocket when connecting.- Parameters:
websocket
- use websocket if true, otherwise use inbound TCP- Returns:
- this builder
-
tunnel
public InboundAgentRule.Options.Builder tunnel(String tunnel)
Set a tunnel for the agent- Returns:
- this builder
-
skipStart
public InboundAgentRule.Options.Builder skipStart()
Skip starting the agent.- Returns:
- this builder
-
label
public InboundAgentRule.Options.Builder label(String label)
Set a label for the agent.- Returns:
- this builder.
-
build
public InboundAgentRule.Options build()
Build and return anInboundAgentRule.Options
.- Returns:
- a new
InboundAgentRule.Options
-
-