Interface GetAiPromptResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetAiPromptResponse.Builder,
,GetAiPromptResponse> QConnectResponse.Builder
,SdkBuilder<GetAiPromptResponse.Builder,
,GetAiPromptResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetAiPromptResponse
@Mutable
@NotThreadSafe
public static interface GetAiPromptResponse.Builder
extends QConnectResponse.Builder, SdkPojo, CopyableBuilder<GetAiPromptResponse.Builder,GetAiPromptResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetAiPromptResponse.Builder
aiPrompt
(Consumer<AIPromptData.Builder> aiPrompt) The data of the AI Prompt.aiPrompt
(AIPromptData aiPrompt) The data of the AI Prompt.versionNumber
(Long versionNumber) The version number of the AI Prompt version (returned if an AI Prompt version was specified via use of a qualifier for theaiPromptId
on the request).Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.qconnect.model.QConnectResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
aiPrompt
The data of the AI Prompt.
- Parameters:
aiPrompt
- The data of the AI Prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
aiPrompt
The data of the AI Prompt.
This is a convenience method that creates an instance of theAIPromptData.Builder
avoiding the need to create one manually viaAIPromptData.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaiPrompt(AIPromptData)
.- Parameters:
aiPrompt
- a consumer that will call methods onAIPromptData.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
versionNumber
The version number of the AI Prompt version (returned if an AI Prompt version was specified via use of a qualifier for the
aiPromptId
on the request).- Parameters:
versionNumber
- The version number of the AI Prompt version (returned if an AI Prompt version was specified via use of a qualifier for theaiPromptId
on the request).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-