Class WorkflowProps.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.alpha.WorkflowProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<WorkflowProps>
- Enclosing interface:
WorkflowProps
@Stability(Experimental)
public static final class WorkflowProps.Builder
extends Object
implements software.amazon.jsii.Builder<WorkflowProps>
A builder for
WorkflowProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.changeDescription(String changeDescription) Sets the value ofWorkflowProps.getChangeDescription()data(WorkflowData data) Sets the value ofWorkflowProps.getData()description(String description) Sets the value ofWorkflowProps.getDescription()Sets the value ofWorkflowProps.getKmsKey()Sets the value ofWorkflowProps.getTags()workflowName(String workflowName) Sets the value ofWorkflowProps.getWorkflowName()workflowType(WorkflowType workflowType) Sets the value ofWorkflowProps.getWorkflowType()workflowVersion(String workflowVersion) Sets the value ofWorkflowProps.getWorkflowVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
data
Sets the value ofWorkflowProps.getData()- Parameters:
data- The workflow document content that defines the image creation process. This parameter is required.- Returns:
this
-
workflowType
Sets the value ofWorkflowProps.getWorkflowType()- Parameters:
workflowType- The phase in the image build process for which the workflow resource is responsible. This parameter is required.- Returns:
this
-
changeDescription
Sets the value ofWorkflowProps.getChangeDescription()- Parameters:
changeDescription- The change description of the workflow. Describes what change has been made in this version of the workflow, or what makes this version different from other versions.- Returns:
this
-
description
Sets the value ofWorkflowProps.getDescription()- Parameters:
description- The description of the workflow.- Returns:
this
-
kmsKey
Sets the value ofWorkflowProps.getKmsKey()- Parameters:
kmsKey- The KMS key used to encrypt this workflow.- Returns:
this
-
tags
Sets the value ofWorkflowProps.getTags()- Parameters:
tags- The tags to apply to the workflow.- Returns:
this
-
workflowName
Sets the value ofWorkflowProps.getWorkflowName()- Parameters:
workflowName- The name of the workflow.- Returns:
this
-
workflowVersion
Sets the value ofWorkflowProps.getWorkflowVersion()- Parameters:
workflowVersion- The version of the workflow.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<WorkflowProps>- Returns:
- a new instance of
WorkflowProps - Throws:
NullPointerException- if any required attribute was not provided
-