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 Details

    • Builder

      public Builder()
  • Method Details

    • assetId

      @Stability(Stable) public StackAsset.Builder assetId(String assetId)
      Sets the value of StackAsset.getAssetId()
      Parameters:
      assetId - Asset identifier. This parameter is required.
      Returns:
      this
    • assetManifestPath

      @Stability(Stable) public StackAsset.Builder assetManifestPath(String assetManifestPath)
      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

      @Stability(Stable) public StackAsset.Builder assetSelector(String assetSelector)
      Parameters:
      assetSelector - Asset selector to pass to cdk-assets. This parameter is required.
      Returns:
      this
    • assetType

      @Stability(Stable) public StackAsset.Builder assetType(AssetType assetType)
      Sets the value of StackAsset.getAssetType()
      Parameters:
      assetType - Type of asset to publish. This parameter is required.
      Returns:
      this
    • isTemplate

      @Stability(Stable) public StackAsset.Builder isTemplate(Boolean isTemplate)
      Sets the value of StackAsset.getIsTemplate()
      Parameters:
      isTemplate - Does this asset represent the CloudFormation template for the stack. This parameter is required.
      Returns:
      this
    • assetPublishingRoleArn

      @Stability(Stable) public StackAsset.Builder assetPublishingRoleArn(String assetPublishingRoleArn)
      Parameters:
      assetPublishingRoleArn - Role ARN to assume to publish.
      Returns:
      this
    • build

      @Stability(Stable) public StackAsset build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<StackAsset>
      Returns:
      a new instance of StackAsset
      Throws:
      NullPointerException - if any required attribute was not provided