Interface CreateAiPromptRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateAiPromptRequest.Builder,
,CreateAiPromptRequest> QConnectRequest.Builder
,SdkBuilder<CreateAiPromptRequest.Builder,
,CreateAiPromptRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateAiPromptRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe API Format of the AI Prompt.apiFormat
(AIPromptAPIFormat apiFormat) The API Format of the AI Prompt.assistantId
(String assistantId) The identifier of the Amazon Q in Connect assistant.clientToken
(String clientToken) A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.description
(String description) The description of the AI Prompt.The identifier of the model used for this AI Prompt.The name of the AI Prompt.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The tags used to organize, track, or control access for this resource.default CreateAiPromptRequest.Builder
templateConfiguration
(Consumer<AIPromptTemplateConfiguration.Builder> templateConfiguration) The configuration of the prompt template for this AI Prompt.templateConfiguration
(AIPromptTemplateConfiguration templateConfiguration) The configuration of the prompt template for this AI Prompt.templateType
(String templateType) The type of the prompt template for this AI Prompt.templateType
(AIPromptTemplateType templateType) The type of the prompt template for this AI Prompt.The type of this AI Prompt.type
(AIPromptType type) The type of this AI Prompt.visibilityStatus
(String visibilityStatus) The visibility status of the AI Prompt.visibilityStatus
(VisibilityStatus visibilityStatus) The visibility status of the AI Prompt.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.qconnect.model.QConnectRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
clientToken
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs..
- Parameters:
clientToken
- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs..- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assistantId
The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
- Parameters:
assistantId
- The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the AI Prompt.
- Parameters:
name
- The name of the AI Prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
The type of this AI Prompt.
- Parameters:
type
- The type of this AI Prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of this AI Prompt.
- Parameters:
type
- The type of this AI Prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
templateConfiguration
CreateAiPromptRequest.Builder templateConfiguration(AIPromptTemplateConfiguration templateConfiguration) The configuration of the prompt template for this AI Prompt.
- Parameters:
templateConfiguration
- The configuration of the prompt template for this AI Prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templateConfiguration
default CreateAiPromptRequest.Builder templateConfiguration(Consumer<AIPromptTemplateConfiguration.Builder> templateConfiguration) The configuration of the prompt template for this AI Prompt.
This is a convenience method that creates an instance of theAIPromptTemplateConfiguration.Builder
avoiding the need to create one manually viaAIPromptTemplateConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totemplateConfiguration(AIPromptTemplateConfiguration)
.- Parameters:
templateConfiguration
- a consumer that will call methods onAIPromptTemplateConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
visibilityStatus
The visibility status of the AI Prompt.
- Parameters:
visibilityStatus
- The visibility status of the AI Prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
visibilityStatus
The visibility status of the AI Prompt.
- Parameters:
visibilityStatus
- The visibility status of the AI Prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
templateType
The type of the prompt template for this AI Prompt.
- Parameters:
templateType
- The type of the prompt template for this AI Prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
templateType
The type of the prompt template for this AI Prompt.
- Parameters:
templateType
- The type of the prompt template for this AI Prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
modelId
The identifier of the model used for this AI Prompt.
- Parameters:
modelId
- The identifier of the model used for this AI Prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
apiFormat
The API Format of the AI Prompt.
Recommended values:
MESSAGES | TEXT_COMPLETIONS
The values
ANTHROPIC_CLAUDE_MESSAGES | ANTHROPIC_CLAUDE_TEXT_COMPLETIONS
will be deprecated.- Parameters:
apiFormat
- The API Format of the AI Prompt.Recommended values:
MESSAGES | TEXT_COMPLETIONS
The values
ANTHROPIC_CLAUDE_MESSAGES | ANTHROPIC_CLAUDE_TEXT_COMPLETIONS
will be deprecated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
apiFormat
The API Format of the AI Prompt.
Recommended values:
MESSAGES | TEXT_COMPLETIONS
The values
ANTHROPIC_CLAUDE_MESSAGES | ANTHROPIC_CLAUDE_TEXT_COMPLETIONS
will be deprecated.- Parameters:
apiFormat
- The API Format of the AI Prompt.Recommended values:
MESSAGES | TEXT_COMPLETIONS
The values
ANTHROPIC_CLAUDE_MESSAGES | ANTHROPIC_CLAUDE_TEXT_COMPLETIONS
will be deprecated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The tags used to organize, track, or control access for this resource.
- Parameters:
tags
- The tags used to organize, track, or control access for this resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the AI Prompt.
- Parameters:
description
- The description of the AI Prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateAiPromptRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateAiPromptRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-