Class AssemblyManifest.Builder
java.lang.Object
software.amazon.awscdk.cloudassembly.schema.AssemblyManifest.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AssemblyManifest>
- Enclosing interface:
AssemblyManifest
@Stability(Stable)
public static final class AssemblyManifest.Builder
extends Object
implements software.amazon.jsii.Builder<AssemblyManifest>
A builder for
AssemblyManifest
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionartifacts
(Map<String, ? extends ArtifactManifest> artifacts) Sets the value ofAssemblyManifest.getArtifacts()
build()
Builds the configured instance.missing
(List<? extends MissingContext> missing) Sets the value ofAssemblyManifest.getMissing()
runtime
(RuntimeInfo runtime) Sets the value ofAssemblyManifest.getRuntime()
Sets the value ofAssemblyManifest.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
version
Sets the value ofAssemblyManifest.getVersion()
- Parameters:
version
- Protocol version. This parameter is required.- Returns:
this
-
artifacts
@Stability(Stable) public AssemblyManifest.Builder artifacts(Map<String, ? extends ArtifactManifest> artifacts) Sets the value ofAssemblyManifest.getArtifacts()
- Parameters:
artifacts
- The set of artifacts in this assembly.- Returns:
this
-
missing
Sets the value ofAssemblyManifest.getMissing()
- Parameters:
missing
- Missing context information. If this field has values, it means that the cloud assembly is not complete and should not be deployed.- Returns:
this
-
runtime
Sets the value ofAssemblyManifest.getRuntime()
- Parameters:
runtime
- Runtime information.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AssemblyManifest>
- Returns:
- a new instance of
AssemblyManifest
- Throws:
NullPointerException
- if any required attribute was not provided
-