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 Details

    • Builder

      public Builder()
  • Method Details

    • agentSpaceId

      @Stability(Stable) public CfnAssetProps.Builder agentSpaceId(String agentSpaceId)
      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

      @Stability(Stable) public CfnAssetProps.Builder assetType(String assetType)
      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

      @Stability(Stable) public CfnAssetProps.Builder files(IResolvable files)
      Sets the value of CfnAssetProps.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

      @Stability(Stable) public CfnAssetProps.Builder files(List<? extends Object> files)
      Sets the value of CfnAssetProps.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

      @Stability(Stable) public CfnAssetProps.Builder metadata(Object metadata)
      Sets the value of CfnAssetProps.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

      @Stability(Stable) public CfnAssetProps.Builder zip(String zip)
      Sets the value of CfnAssetProps.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

      @Stability(Stable) public CfnAssetProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnAssetProps>
      Returns:
      a new instance of CfnAssetProps
      Throws:
      NullPointerException - if any required attribute was not provided