Class ArtifactManifest.Builder
- java.lang.Object
-
- software.amazon.awscdk.cloudassembly.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 forArtifactManifest
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
type
@Stability(Stable) public ArtifactManifest.Builder type(ArtifactType type)
Sets the value ofArtifactManifest.getType()- Parameters:
type- The type of artifact. This parameter is required.- Returns:
this
-
dependencies
@Stability(Stable) public ArtifactManifest.Builder dependencies(List<String> dependencies)
Sets the value ofArtifactManifest.getDependencies()- Parameters:
dependencies- IDs of artifacts that must be deployed before this artifact.- Returns:
this
-
displayName
@Stability(Stable) public ArtifactManifest.Builder displayName(String 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
@Stability(Stable) public ArtifactManifest.Builder environment(String 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.- 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
@Stability(Stable) public ArtifactManifest.Builder properties(AssetManifestProperties 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(TreeArtifactProperties 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
@Stability(Stable) public ArtifactManifest 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
-
-