Package software.amazon.awscdk.pipelines
Class StackAsset.Builder
java.lang.Object
software.amazon.awscdk.pipelines.StackAsset.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<StackAsset>
- Enclosing interface:
- StackAsset
@Stability(Stable)
public static final class StackAsset.Builder
extends Object
implements software.amazon.jsii.Builder<StackAsset>
A builder for
StackAsset-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofStackAsset.getAssetId()assetManifestPath(String assetManifestPath) Sets the value ofStackAsset.getAssetManifestPath()assetPublishingRoleArn(String assetPublishingRoleArn) Sets the value ofStackAsset.getAssetPublishingRoleArn()assetSelector(String assetSelector) Sets the value ofStackAsset.getAssetSelector()Sets the value ofStackAsset.getAssetType()build()Builds the configured instance.isTemplate(Boolean isTemplate) Sets the value ofStackAsset.getIsTemplate()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
assetId
Sets the value ofStackAsset.getAssetId()- Parameters:
assetId- Asset identifier. This parameter is required.- Returns:
this
-
assetManifestPath
Sets the value ofStackAsset.getAssetManifestPath()- Parameters:
assetManifestPath- Absolute asset manifest path. This parameter is required. This needs to be made relative at a later point in time, but when this information is parsed we don't know about the root cloud assembly yet.- Returns:
this
-
assetSelector
Sets the value ofStackAsset.getAssetSelector()- Parameters:
assetSelector- Asset selector to pass tocdk-assets. This parameter is required.- Returns:
this
-
assetType
Sets the value ofStackAsset.getAssetType()- Parameters:
assetType- Type of asset to publish. This parameter is required.- Returns:
this
-
isTemplate
Sets the value ofStackAsset.getIsTemplate()- Parameters:
isTemplate- Does this asset represent the CloudFormation template for the stack. This parameter is required.- Returns:
this
-
assetPublishingRoleArn
Sets the value ofStackAsset.getAssetPublishingRoleArn()- Parameters:
assetPublishingRoleArn- Role ARN to assume to publish.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<StackAsset>- Returns:
- a new instance of
StackAsset - Throws:
NullPointerException- if any required attribute was not provided
-