Interface CreateAgenticContextRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateAgenticContextRequest.Builder,,CreateAgenticContextRequest> SdkBuilder<CreateAgenticContextRequest.Builder,,CreateAgenticContextRequest> SdkPojo,SdkRequest.Builder,WorkSpacesRequest.Builder
- Enclosing class:
CreateAgenticContextRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time.contextBody(String contextBody) The Markdown content of the context, up to 1 MiB of UTF-8 text.contextType(String contextType) The type of the context.contextType(AgenticContextType contextType) The type of the context.description(String description) The description of the context.The name of the context.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.tags(Collection<Tag> tags) The tags to add to the context.tags(Consumer<Tag.Builder>... tags) The tags to add to the context.The tags to add to the context.targetFilePath(String targetFilePath) The name of the Markdown file that the context is written to on the WorkSpace, for examplecode-review.md.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.services.workspaces.model.WorkSpacesRequest.Builder
build
-
Method Details
-
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 returnsResourceNotFoundException.- 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 returnsResourceNotFoundException.- 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
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
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
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 examplecode-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
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 theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
tags- a consumer that will call methods onTag.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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateAgenticContextRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-