Skip to content

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.

outdirOptional

  • Type: java.lang.String

The output directory, uses temporary directory if undefined.


assetOutdirOptional

  • Type: java.lang.String
  • Default: Same as the manifest outdir

Use the given asset output directory.


parentBuilderOptional

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.

idRequired

  • Type: java.lang.String

The ID of the artifact.


manifestRequired

  • 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.

missingRequired

  • 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.

optionsOptional


createNestedAssembly

public CloudAssemblyBuilder createNestedAssembly(java.lang.String artifactId, java.lang.String displayName)

Creates a nested cloud assembly.

artifactIdRequired

  • Type: java.lang.String

displayNameRequired

  • 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.

assetOutdirRequired

public java.lang.String getAssetOutdir();
  • Type: java.lang.String

The directory where assets of this Cloud Assembly should be stored.


outdirRequired

public java.lang.String getOutdir();
  • Type: java.lang.String

The root directory of the resulting cloud assembly.