Interface CreateAgenticContextRequest.Builder

  • Method Details

    • clientToken

      CreateAgenticContextRequest.Builder clientToken(String clientToken)

      A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. If this token matches a previous request with the same parameters, the service returns the result of that request and doesn't create another context.

      If you reuse the token with different parameters, the operation returns ValidationException. If you deleted the context created with this token, the operation returns ResourceNotFoundException .

      Parameters:
      clientToken - A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. If this token matches a previous request with the same parameters, the service returns the result of that request and doesn't create another context.

      If you reuse the token with different parameters, the operation returns ValidationException. If you deleted the context created with this token, the operation returns ResourceNotFoundException.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The name of the context.

      Parameters:
      name - The name of the context.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      CreateAgenticContextRequest.Builder description(String description)

      The description of the context.

      Parameters:
      description - The description of the context.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • contextType

      CreateAgenticContextRequest.Builder contextType(String contextType)

      The type of the context. Valid values:

      • STEERING – Guidance that shapes how the agent behaves.

      • SKILL – A reusable capability that the agent can use.

      • WORKFLOW – A multi-step procedure that the agent follows.

      Parameters:
      contextType - The type of the context. Valid values:

      • STEERING – Guidance that shapes how the agent behaves.

      • SKILL – A reusable capability that the agent can use.

      • WORKFLOW – A multi-step procedure that the agent follows.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • contextType

      The type of the context. Valid values:

      • STEERING – Guidance that shapes how the agent behaves.

      • SKILL – A reusable capability that the agent can use.

      • WORKFLOW – A multi-step procedure that the agent follows.

      Parameters:
      contextType - The type of the context. Valid values:

      • STEERING – Guidance that shapes how the agent behaves.

      • SKILL – A reusable capability that the agent can use.

      • WORKFLOW – A multi-step procedure that the agent follows.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • targetFilePath

      CreateAgenticContextRequest.Builder targetFilePath(String targetFilePath)

      The name of the Markdown file that the context is written to on the WorkSpace, for example code-review.md. This is a file name, not a path. It can contain letters, digits, periods (.), underscores (_), and hyphens (-), can be 1–255 characters long, and can't be . or ...

      Parameters:
      targetFilePath - The name of the Markdown file that the context is written to on the WorkSpace, for example code-review.md. This is a file name, not a path. It can contain letters, digits, periods (.), underscores (_), and hyphens (-), can be 1–255 characters long, and can't be . or ...
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • contextBody

      CreateAgenticContextRequest.Builder contextBody(String contextBody)

      The Markdown content of the context, up to 1 MiB of UTF-8 text. Currently, you must specify this field.

      Parameters:
      contextBody - The Markdown content of the context, up to 1 MiB of UTF-8 text. Currently, you must specify this field.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags to add to the context. Each tag key can appear only once.

      Parameters:
      tags - The tags to add to the context. Each tag key can appear only once.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags to add to the context. Each tag key can appear only once.

      Parameters:
      tags - The tags to add to the context. Each tag key can appear only once.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags to add to the context. Each tag key can appear only once.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tags(List<Tag>).

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

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