Class CfnAssetProps.Builder
java.lang.Object
software.amazon.awscdk.services.devopsagent.CfnAssetProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssetProps>
- Enclosing interface:
CfnAssetProps
@Stability(Stable)
public static final class CfnAssetProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAssetProps>
A builder for
CfnAssetProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionagentSpaceId(String agentSpaceId) Sets the value ofCfnAssetProps.getAgentSpaceId()Sets the value ofCfnAssetProps.getAssetType()build()Builds the configured instance.Sets the value ofCfnAssetProps.getFiles()files(IResolvable files) Sets the value ofCfnAssetProps.getFiles()Sets the value ofCfnAssetProps.getMetadata()Sets the value ofCfnAssetProps.getZip()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
agentSpaceId
Sets the value ofCfnAssetProps.getAgentSpaceId()- Parameters:
agentSpaceId- The unique identifier of the parent Agent Space. This parameter is required. The asset is created as a child of this agent space.- Returns:
this
-
assetType
Sets the value ofCfnAssetProps.getAssetType()- Parameters:
assetType- The type of asset. This parameter is required. The Asset API treats this as an open string; call ListAssetTypes for the current authoritative set of supported types. As of launch, customer-creatable types include skill, agents_md, and attachment.- Returns:
this
-
files
Sets the value ofCfnAssetProps.getFiles()- Parameters:
files- Inline file list. Mutually exclusive with Zip; enforced by the handler at Create/Update time. Write-only: not repopulated by Read.- Returns:
this
-
files
Sets the value ofCfnAssetProps.getFiles()- Parameters:
files- Inline file list. Mutually exclusive with Zip; enforced by the handler at Create/Update time. Write-only: not repopulated by Read.- Returns:
this
-
metadata
Sets the value ofCfnAssetProps.getMetadata()- Parameters:
metadata- Asset metadata document. Required and optional keys depend on AssetType. Values may be strings, numbers, booleans, or lists of any of those - validated server-side; see the public Asset API docs for the per-type metadata schema.- Returns:
this
-
zip
Sets the value ofCfnAssetProps.getZip()- Parameters:
zip- Base64-encoded zip bundle containing all files for the asset. Mutually exclusive with Files; enforced by the handler at Create/Update time. Write-only: not repopulated by Read. Server treats a zip as 'replace all files' (max 6 MiB).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAssetProps>- Returns:
- a new instance of
CfnAssetProps - Throws:
NullPointerException- if any required attribute was not provided
-