Class AIPromptVersionReference.Builder
java.lang.Object
software.amazon.awscdk.services.wisdom.AIPromptVersionReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AIPromptVersionReference>
- Enclosing interface:
AIPromptVersionReference
@Stability(Stable)
public static final class AIPromptVersionReference.Builder
extends Object
implements software.amazon.jsii.Builder<AIPromptVersionReference>
A builder for
AIPromptVersionReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaiPromptId
(String aiPromptId) Sets the value ofAIPromptVersionReference.getAiPromptId()
assistantId
(String assistantId) Sets the value ofAIPromptVersionReference.getAssistantId()
build()
Builds the configured instance.versionNumber
(String versionNumber) Sets the value ofAIPromptVersionReference.getVersionNumber()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
aiPromptId
Sets the value ofAIPromptVersionReference.getAiPromptId()
- Parameters:
aiPromptId
- The AIPromptId of the AIPromptVersion resource. This parameter is required.- Returns:
this
-
assistantId
Sets the value ofAIPromptVersionReference.getAssistantId()
- Parameters:
assistantId
- The AssistantId of the AIPromptVersion resource. This parameter is required.- Returns:
this
-
versionNumber
Sets the value ofAIPromptVersionReference.getVersionNumber()
- Parameters:
versionNumber
- The VersionNumber of the AIPromptVersion resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AIPromptVersionReference>
- Returns:
- a new instance of
AIPromptVersionReference
- Throws:
NullPointerException
- if any required attribute was not provided
-