public static final class StageOptions.Builder
extends java.lang.Object
StageOptions
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
StageOptions.Builder |
actions(java.util.List<? extends IAction> actions)
Sets the value of
StageProps.getActions() |
StageOptions |
build()
Builds the configured instance.
|
StageOptions.Builder |
placement(StagePlacement placement)
Sets the value of
StageOptions.getPlacement() |
StageOptions.Builder |
stageName(java.lang.String stageName)
Sets the value of
StageProps.getStageName() |
StageOptions.Builder |
transitionDisabledReason(java.lang.String transitionDisabledReason)
Sets the value of
StageProps.getTransitionDisabledReason() |
StageOptions.Builder |
transitionToEnabled(java.lang.Boolean transitionToEnabled)
Sets the value of
StageProps.getTransitionToEnabled() |
public StageOptions.Builder placement(StagePlacement placement)
StageOptions.getPlacement()
placement
- the value to be set.this
public StageOptions.Builder stageName(java.lang.String stageName)
StageProps.getStageName()
stageName
- The physical, human-readable name to assign to this Pipeline Stage. This parameter is required.this
public StageOptions.Builder actions(java.util.List<? extends IAction> actions)
StageProps.getActions()
actions
- The list of Actions to create this Stage with.
You can always add more Actions later by calling {@link IStage#addAction}.this
public StageOptions.Builder transitionDisabledReason(java.lang.String transitionDisabledReason)
StageProps.getTransitionDisabledReason()
transitionDisabledReason
- The reason for disabling transition to this stage.
Only applicable
if transitionToEnabled
is set to false
.this
public StageOptions.Builder transitionToEnabled(java.lang.Boolean transitionToEnabled)
StageProps.getTransitionToEnabled()
transitionToEnabled
- Whether to enable transition to this stage.this
public StageOptions build()
StageOptions
java.lang.NullPointerException
- if any required attribute was not provided