Package org.jvnet.hudson.test
Interface InboundAgentRule.Options.Builder
-
- Enclosing class:
- InboundAgentRule.Options
public static interface InboundAgentRule.Options.Builder
A builder ofInboundAgentRule.Options
.Instances of
InboundAgentRule.Options.Builder
are created by callingInboundAgentRule.Options.newBuilder()
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InboundAgentRule.Options
build()
Build and return anInboundAgentRule.Options
.InboundAgentRule.Options.Builder
color(PrefixedOutputStream.Color color)
Set a color for agent logs.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
webSocket()
Use WebSocket when connecting.
-
-
-
Method Detail
-
name
InboundAgentRule.Options.Builder name(String name)
Set the name of the agent.- Parameters:
name
- the name- Returns:
- this builder
-
color
InboundAgentRule.Options.Builder color(PrefixedOutputStream.Color color)
Set a color for agent logs.- Parameters:
color
- the color- Returns:
- this builder
-
secret
InboundAgentRule.Options.Builder secret()
Use secret when connecting.- Returns:
- this builder
-
webSocket
InboundAgentRule.Options.Builder webSocket()
Use WebSocket when connecting.- Returns:
- this builder
-
skipStart
InboundAgentRule.Options.Builder skipStart()
Skip starting the agent.- Returns:
- this builder
-
build
InboundAgentRule.Options build()
Build and return anInboundAgentRule.Options
.- Returns:
- a new
InboundAgentRule.Options
-
-