Class ArtifactManifest.Builder
java.lang.Object
software.amazon.awscdk.cloud_assembly_schema.ArtifactManifest.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ArtifactManifest>
- Enclosing interface:
ArtifactManifest
@Stability(Stable)
public static final class ArtifactManifest.Builder
extends Object
implements software.amazon.jsii.Builder<ArtifactManifest>
A builder for
ArtifactManifest-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadditionalMetadataFile(String additionalMetadataFile) Sets the value ofArtifactManifest.getAdditionalMetadataFile()build()Builds the configured instance.dependencies(List<String> dependencies) Sets the value ofArtifactManifest.getDependencies()displayName(String displayName) Sets the value ofArtifactManifest.getDisplayName()environment(String environment) Sets the value ofArtifactManifest.getEnvironment()metadata(Map<String, ? extends List<? extends MetadataEntry>> metadata) Sets the value ofArtifactManifest.getMetadata()properties(AssetManifestProperties properties) Sets the value ofArtifactManifest.getProperties()properties(AwsCloudFormationStackProperties properties) Sets the value ofArtifactManifest.getProperties()properties(FeatureFlagReportProperties properties) Sets the value ofArtifactManifest.getProperties()properties(NestedCloudAssemblyProperties properties) Sets the value ofArtifactManifest.getProperties()properties(TreeArtifactProperties properties) Sets the value ofArtifactManifest.getProperties()type(ArtifactType type) Sets the value ofArtifactManifest.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofArtifactManifest.getType()- Parameters:
type- The type of artifact. This parameter is required.- Returns:
this
-
additionalMetadataFile
@Stability(Stable) public ArtifactManifest.Builder additionalMetadataFile(String additionalMetadataFile) Sets the value ofArtifactManifest.getAdditionalMetadataFile()- Parameters:
additionalMetadataFile- A file with additional metadata entries. The schema of this file is exactly the same as the type of themetadatafield. In other words, that file contains an object mapping construct paths to arrays of metadata entries.- Returns:
this
-
dependencies
Sets the value ofArtifactManifest.getDependencies()- Parameters:
dependencies- IDs of artifacts that must be deployed before this artifact.- Returns:
this
-
displayName
Sets the value ofArtifactManifest.getDisplayName()- Parameters:
displayName- A string that can be shown to a user to uniquely identify this artifact inside a cloud assembly tree. Is used by the CLI to present a list of stacks to the user in a way that makes sense to them. Even though the property name "display name" doesn't imply it, this field is used to select stacks as well, so all stacks should have a unique display name.- Returns:
this
-
environment
Sets the value ofArtifactManifest.getEnvironment()- Parameters:
environment- The environment into which this artifact is deployed.- Returns:
this
-
metadata
@Stability(Stable) public ArtifactManifest.Builder metadata(Map<String, ? extends List<? extends MetadataEntry>> metadata) Sets the value ofArtifactManifest.getMetadata()- Parameters:
metadata- Associated metadata. Metadata can be stored directly in the assembly manifest, as well as in a separate file (seeadditionalMetadataFile). It should prefer to be stored in the additional file, as that will reduce the size of the assembly manifest in cases of a lot of metdata (which CDK does emit by default).- Returns:
this
-
properties
@Stability(Stable) public ArtifactManifest.Builder properties(AwsCloudFormationStackProperties properties) Sets the value ofArtifactManifest.getProperties()- Parameters:
properties- The set of properties for this artifact (depends on type).- Returns:
this
-
properties
Sets the value ofArtifactManifest.getProperties()- Parameters:
properties- The set of properties for this artifact (depends on type).- Returns:
this
-
properties
Sets the value ofArtifactManifest.getProperties()- Parameters:
properties- The set of properties for this artifact (depends on type).- Returns:
this
-
properties
@Stability(Stable) public ArtifactManifest.Builder properties(NestedCloudAssemblyProperties properties) Sets the value ofArtifactManifest.getProperties()- Parameters:
properties- The set of properties for this artifact (depends on type).- Returns:
this
-
properties
@Stability(Stable) public ArtifactManifest.Builder properties(FeatureFlagReportProperties properties) Sets the value ofArtifactManifest.getProperties()- Parameters:
properties- The set of properties for this artifact (depends on type).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ArtifactManifest>- Returns:
- a new instance of
ArtifactManifest - Throws:
NullPointerException- if any required attribute was not provided
-