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.BuilderaiPrompt(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 theaiPromptIdon the request).Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.qconnect.model.QConnectResponse.Builder
build, responseMetadata, responseMetadataMethods 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.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.Builderavoiding the need to create one manually viaAIPromptData.builder().When the
Consumercompletes,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
aiPromptIdon 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 theaiPromptIdon the request).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-