Class ComponentDocumentStep.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.alpha.ComponentDocumentStep.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComponentDocumentStep>
- Enclosing interface:
ComponentDocumentStep
@Stability(Experimental)
public static final class ComponentDocumentStep.Builder
extends Object
implements software.amazon.jsii.Builder<ComponentDocumentStep>
A builder for
ComponentDocumentStep-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction(ComponentAction action) Sets the value ofComponentDocumentStep.getAction()build()Builds the configured instance.ifValue(ComponentStepIfCondition ifValue) Sets the value ofComponentDocumentStep.getIfValue()inputs(ComponentStepInputs inputs) Sets the value ofComponentDocumentStep.getInputs()loop(ComponentDocumentLoop loop) Sets the value ofComponentDocumentStep.getLoop()Sets the value ofComponentDocumentStep.getName()onFailure(ComponentOnFailure onFailure) Sets the value ofComponentDocumentStep.getOnFailure()Sets the value ofComponentDocumentStep.getTimeout()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
action
Sets the value ofComponentDocumentStep.getAction()- Parameters:
action- The action to perform in the step. This parameter is required.- Returns:
this
-
inputs
Sets the value ofComponentDocumentStep.getInputs()- Parameters:
inputs- Contains parameters required by the action to run the step. This parameter is required.- Returns:
this
-
name
Sets the value ofComponentDocumentStep.getName()- Parameters:
name- The name of the step. This parameter is required.- Returns:
this
-
ifValue
@Stability(Experimental) public ComponentDocumentStep.Builder ifValue(ComponentStepIfCondition ifValue) Sets the value ofComponentDocumentStep.getIfValue()- Parameters:
ifValue- The condition to apply to the step. If the condition is false, then the step is skipped- Returns:
this
-
loop
Sets the value ofComponentDocumentStep.getLoop()- Parameters:
loop- A looping construct defining a repeated sequence of instructions.- Returns:
this
-
onFailure
@Stability(Experimental) public ComponentDocumentStep.Builder onFailure(ComponentOnFailure onFailure) Sets the value ofComponentDocumentStep.getOnFailure()- Parameters:
onFailure- Specifies what the step should do in case of failure.- Returns:
this
-
timeout
Sets the value ofComponentDocumentStep.getTimeout()- Parameters:
timeout- The timeout of the step.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComponentDocumentStep>- Returns:
- a new instance of
ComponentDocumentStep - Throws:
NullPointerException- if any required attribute was not provided
-