Interface CreateAiPromptRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateAiPromptRequest.Builder,CreateAiPromptRequest>,QConnectRequest.Builder,SdkBuilder<CreateAiPromptRequest.Builder,CreateAiPromptRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateAiPromptRequest
public static interface CreateAiPromptRequest.Builder extends QConnectRequest.Builder, SdkPojo, CopyableBuilder<CreateAiPromptRequest.Builder,CreateAiPromptRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateAiPromptRequest.BuilderapiFormat(String apiFormat)The API Format of the AI Prompt.CreateAiPromptRequest.BuilderapiFormat(AIPromptAPIFormat apiFormat)The API Format of the AI Prompt.CreateAiPromptRequest.BuilderassistantId(String assistantId)The identifier of the Amazon Q in Connect assistant.CreateAiPromptRequest.BuilderclientToken(String clientToken)A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.CreateAiPromptRequest.Builderdescription(String description)The description of the AI Prompt.CreateAiPromptRequest.BuildermodelId(String modelId)The identifier of the model used for this AI Prompt.CreateAiPromptRequest.Buildername(String name)The name of the AI Prompt.CreateAiPromptRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateAiPromptRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateAiPromptRequest.Buildertags(Map<String,String> tags)The tags used to organize, track, or control access for this resource.default CreateAiPromptRequest.BuildertemplateConfiguration(Consumer<AIPromptTemplateConfiguration.Builder> templateConfiguration)The configuration of the prompt template for this AI Prompt.CreateAiPromptRequest.BuildertemplateConfiguration(AIPromptTemplateConfiguration templateConfiguration)The configuration of the prompt template for this AI Prompt.CreateAiPromptRequest.BuildertemplateType(String templateType)The type of the prompt template for this AI Prompt.CreateAiPromptRequest.BuildertemplateType(AIPromptTemplateType templateType)The type of the prompt template for this AI Prompt.CreateAiPromptRequest.Buildertype(String type)The type of this AI Prompt.CreateAiPromptRequest.Buildertype(AIPromptType type)The type of this AI Prompt.CreateAiPromptRequest.BuildervisibilityStatus(String visibilityStatus)The visibility status of the AI Prompt.CreateAiPromptRequest.BuildervisibilityStatus(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 Detail
-
apiFormat
CreateAiPromptRequest.Builder apiFormat(String apiFormat)
The API Format of the AI Prompt.
- Parameters:
apiFormat- The API Format of the AI Prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AIPromptAPIFormat,AIPromptAPIFormat
-
apiFormat
CreateAiPromptRequest.Builder apiFormat(AIPromptAPIFormat apiFormat)
The API Format of the AI Prompt.
- Parameters:
apiFormat- The API Format of the AI Prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AIPromptAPIFormat,AIPromptAPIFormat
-
assistantId
CreateAiPromptRequest.Builder assistantId(String 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.
-
clientToken
CreateAiPromptRequest.Builder clientToken(String 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.
-
description
CreateAiPromptRequest.Builder description(String 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.
-
modelId
CreateAiPromptRequest.Builder modelId(String modelId)
The identifier of the model used for this AI Prompt. Model Ids supported are:
CLAUDE_3_HAIKU_20240307_V1- Parameters:
modelId- The identifier of the model used for this AI Prompt. Model Ids supported are:CLAUDE_3_HAIKU_20240307_V1- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
CreateAiPromptRequest.Builder name(String 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.
-
tags
CreateAiPromptRequest.Builder tags(Map<String,String> 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.
-
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.Builderavoiding the need to create one manually viaAIPromptTemplateConfiguration.builder().When the
Consumercompletes,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:
templateConfiguration(AIPromptTemplateConfiguration)
-
templateType
CreateAiPromptRequest.Builder templateType(String 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:
AIPromptTemplateType,AIPromptTemplateType
-
templateType
CreateAiPromptRequest.Builder templateType(AIPromptTemplateType 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:
AIPromptTemplateType,AIPromptTemplateType
-
type
CreateAiPromptRequest.Builder type(String 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:
AIPromptType,AIPromptType
-
type
CreateAiPromptRequest.Builder type(AIPromptType 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:
AIPromptType,AIPromptType
-
visibilityStatus
CreateAiPromptRequest.Builder visibilityStatus(String 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,VisibilityStatus
-
visibilityStatus
CreateAiPromptRequest.Builder visibilityStatus(VisibilityStatus 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,VisibilityStatus
-
overrideConfiguration
CreateAiPromptRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateAiPromptRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-