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 forAssemblyManifest
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssemblyManifest.Builderartifacts(Map<String,? extends ArtifactManifest> artifacts)Sets the value ofAssemblyManifest.getArtifacts()AssemblyManifestbuild()Builds the configured instance.AssemblyManifest.BuilderminimumCliVersion(String minimumCliVersion)Sets the value ofAssemblyManifest.getMinimumCliVersion()AssemblyManifest.Buildermissing(List<? extends MissingContext> missing)Sets the value ofAssemblyManifest.getMissing()AssemblyManifest.Builderruntime(RuntimeInfo runtime)Sets the value ofAssemblyManifest.getRuntime()AssemblyManifest.Builderversion(String version)Sets the value ofAssemblyManifest.getVersion()
-
-
-
Method Detail
-
version
@Stability(Stable) public AssemblyManifest.Builder version(String 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
-
minimumCliVersion
@Stability(Stable) public AssemblyManifest.Builder minimumCliVersion(String minimumCliVersion)
Sets the value ofAssemblyManifest.getMinimumCliVersion()- Parameters:
minimumCliVersion- Required CLI version, if available. If the manifest producer knows, it can put the minimum version of the CLI here that supports reading this assembly.If set, it can be used to show a more informative error message to users.
- Returns:
this
-
missing
@Stability(Stable) public AssemblyManifest.Builder missing(List<? extends MissingContext> 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
@Stability(Stable) public AssemblyManifest.Builder runtime(RuntimeInfo runtime)
Sets the value ofAssemblyManifest.getRuntime()- Parameters:
runtime- Runtime information.- Returns:
this
-
build
@Stability(Stable) public AssemblyManifest build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AssemblyManifest>- Returns:
- a new instance of
AssemblyManifest - Throws:
NullPointerException- if any required attribute was not provided
-
-