Class CfnAssetMixinProps.Builder

java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.devopsagent.CfnAssetMixinProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssetMixinProps>
Enclosing interface:
CfnAssetMixinProps

@Stability(Stable) public static final class CfnAssetMixinProps.Builder extends Object implements software.amazon.jsii.Builder<CfnAssetMixinProps>
A builder for CfnAssetMixinProps
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • agentSpaceId

      @Stability(Stable) public CfnAssetMixinProps.Builder agentSpaceId(String agentSpaceId)
      Parameters:
      agentSpaceId - The unique identifier of the parent Agent Space. The asset is created as a child of this agent space.
      Returns:
      this
    • assetType

      @Stability(Stable) public CfnAssetMixinProps.Builder assetType(String assetType)
      Parameters:
      assetType - The type of asset. 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 CfnAssetMixinProps.Builder files(IResolvable files)
      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 CfnAssetMixinProps.Builder files(List<? extends Object> files)
      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 CfnAssetMixinProps.Builder metadata(Object metadata)
      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 CfnAssetMixinProps.Builder zip(String zip)
      Sets the value of CfnAssetMixinProps.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 CfnAssetMixinProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnAssetMixinProps>
      Returns:
      a new instance of CfnAssetMixinProps
      Throws:
      NullPointerException - if any required attribute was not provided