CloudAssemblyBuilder
Can be used to build a cloud assembly.
Initializers
import com.aliyun.ros.cdk.cxapi.CloudAssemblyBuilder;
CloudAssemblyBuilder.Builder.create(java.lang.String outdir)
// .assetOutdir(java.lang.String)
// .parentBuilder(CloudAssemblyBuilder)
.build();
Name | Type | Description |
---|---|---|
outdir |
java.lang.String |
The output directory, uses temporary directory if undefined. |
assetOutdir |
java.lang.String |
Use the given asset output directory. |
parentBuilder |
CloudAssemblyBuilder |
If this builder is for a nested assembly, the parent assembly builder. |
outdir
Optional
- Type: java.lang.String
The output directory, uses temporary directory if undefined.
assetOutdir
Optional
- Type: java.lang.String
- Default: Same as the manifest outdir
Use the given asset output directory.
parentBuilder
Optional
- Type: CloudAssemblyBuilder
- Default: This is a root assembly
If this builder is for a nested assembly, the parent assembly builder.
Methods
Name | Description |
---|---|
addArtifact |
Adds an artifact into the cloud assembly. |
addMissing |
Reports that some context is missing in order for this cloud assembly to be fully synthesized. |
buildAssembly |
Finalizes the cloud assembly into the output directory returns a 'CloudAssembly' object that can be used to inspect the assembly. |
createNestedAssembly |
Creates a nested cloud assembly. |
addArtifact
public void addArtifact(java.lang.String id, ArtifactManifest manifest)
Adds an artifact into the cloud assembly.
- Type: java.lang.String
The ID of the artifact.
- Type: com.aliyun.ros.cdk.assembly.schema.ArtifactManifest
The artifact manifest.
addMissing
public void addMissing(MissingContext missing)
Reports that some context is missing in order for this cloud assembly to be fully synthesized.
- Type: com.aliyun.ros.cdk.assembly.schema.MissingContext
Missing context information.
buildAssembly
public CloudAssembly buildAssembly()
public CloudAssembly buildAssembly(AssemblyBuildOptions options)
Finalizes the cloud assembly into the output directory returns a 'CloudAssembly' object that can be used to inspect the assembly.
- Type: AssemblyBuildOptions
createNestedAssembly
public CloudAssemblyBuilder createNestedAssembly(java.lang.String artifactId, java.lang.String displayName)
Creates a nested cloud assembly.
- Type: java.lang.String
- Type: java.lang.String
Properties
Name | Type | Description |
---|---|---|
assetOutdir |
java.lang.String |
The directory where assets of this Cloud Assembly should be stored. |
outdir |
java.lang.String |
The root directory of the resulting cloud assembly. |
assetOutdir
Required
public java.lang.String getAssetOutdir();
- Type: java.lang.String
The directory where assets of this Cloud Assembly should be stored.
outdir
Required
public java.lang.String getOutdir();
- Type: java.lang.String
The root directory of the resulting cloud assembly.