Class CfnWorkflowProps.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.CfnWorkflowProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkflowProps>
- Enclosing interface:
CfnWorkflowProps
@Stability(Stable)
public static final class CfnWorkflowProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWorkflowProps>
A builder for
CfnWorkflowProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.changeDescription(String changeDescription) Sets the value ofCfnWorkflowProps.getChangeDescription()Sets the value ofCfnWorkflowProps.getData()description(String description) Sets the value ofCfnWorkflowProps.getDescription()Sets the value ofCfnWorkflowProps.getKmsKeyId()Sets the value ofCfnWorkflowProps.getName()Sets the value ofCfnWorkflowProps.getTags()Sets the value ofCfnWorkflowProps.getType()Sets the value ofCfnWorkflowProps.getUri()Sets the value ofCfnWorkflowProps.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnWorkflowProps.getName()- Parameters:
name- The name of the workflow resource. This parameter is required.- Returns:
this
-
type
Sets the value ofCfnWorkflowProps.getType()- Parameters:
type- Specifies the image creation stage that the workflow applies to. This parameter is required. Image Builder currently supports build and test workflows.- Returns:
this
-
version
Sets the value ofCfnWorkflowProps.getVersion()- Parameters:
version- The workflow resource version. This parameter is required. Workflow resources are immutable. To make a change, you can clone a workflow or create a new version.- Returns:
this
-
changeDescription
Sets the value ofCfnWorkflowProps.getChangeDescription()- Parameters:
changeDescription- Describes what change has been made in this version of the workflow, or what makes this version different from other versions of the workflow.- Returns:
this
-
data
Sets the value ofCfnWorkflowProps.getData()- Parameters:
data- Contains the YAML document content for the workflow.- Returns:
this
-
description
Sets the value ofCfnWorkflowProps.getDescription()- Parameters:
description- The description of the workflow.- Returns:
this
-
kmsKeyId
Sets the value ofCfnWorkflowProps.getKmsKeyId()- Parameters:
kmsKeyId- The KMS key identifier used to encrypt the workflow resource.- Returns:
this
-
tags
Sets the value ofCfnWorkflowProps.getTags()- Parameters:
tags- The tags that apply to the workflow resource.- Returns:
this
-
uri
Sets the value ofCfnWorkflowProps.getUri()- Parameters:
uri- The uri of the workflow.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWorkflowProps>- Returns:
- a new instance of
CfnWorkflowProps - Throws:
NullPointerException- if any required attribute was not provided
-