Interface UpdateAssetRequest.Builder

  • Method Details

    • agentSpaceId

      UpdateAssetRequest.Builder agentSpaceId(String agentSpaceId)

      The unique identifier for the agent space containing the asset

      Parameters:
      agentSpaceId - The unique identifier for the agent space containing the asset
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • assetId

      The unique identifier of the asset to update

      Parameters:
      assetId - The unique identifier of the asset to update
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metadata

      Metadata fields to update. Only the fields present in this document are updated. Omitted fields retain their current values.

      Parameters:
      metadata - Metadata fields to update. Only the fields present in this document are updated. Omitted fields retain their current values.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • content

      Optional content update. A single file adds or replaces one file; a zip replaces all files; a sourceUrl re-syncs from the original source.

      Parameters:
      content - Optional content update. A single file adds or replaces one file; a zip replaces all files; a sourceUrl re-syncs from the original source.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • content

      Optional content update. A single file adds or replaces one file; a zip replaces all files; a sourceUrl re-syncs from the original source.

      This is a convenience method that creates an instance of the AssetContent.Builder avoiding the need to create one manually via AssetContent.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to content(AssetContent).

      Parameters:
      content - a consumer that will call methods on AssetContent.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • clientToken

      UpdateAssetRequest.Builder clientToken(String clientToken)

      A unique, case-sensitive identifier used for idempotent asset update

      Parameters:
      clientToken - A unique, case-sensitive identifier used for idempotent asset update
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      UpdateAssetRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.