Interface PromptVariant.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PromptVariant.Builder,,PromptVariant> SdkBuilder<PromptVariant.Builder,,PromptVariant> SdkPojo
- Enclosing class:
PromptVariant
public static interface PromptVariant.Builder
extends SdkPojo, CopyableBuilder<PromptVariant.Builder,PromptVariant>
-
Method Summary
Modifier and TypeMethodDescriptiondefault PromptVariant.BuilderinferenceConfiguration(Consumer<PromptInferenceConfiguration.Builder> inferenceConfiguration) Contains inference configurations for the prompt variant.inferenceConfiguration(PromptInferenceConfiguration inferenceConfiguration) Contains inference configurations for the prompt variant.The unique identifier of the model with which to run inference on the prompt.The name of the prompt variant.default PromptVariant.BuildertemplateConfiguration(Consumer<PromptTemplateConfiguration.Builder> templateConfiguration) Contains configurations for the prompt template.templateConfiguration(PromptTemplateConfiguration templateConfiguration) Contains configurations for the prompt template.templateType(String templateType) The type of prompt template to use.templateType(PromptTemplateType templateType) The type of prompt template to use.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
inferenceConfiguration
Contains inference configurations for the prompt variant.
- Parameters:
inferenceConfiguration- Contains inference configurations for the prompt variant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inferenceConfiguration
default PromptVariant.Builder inferenceConfiguration(Consumer<PromptInferenceConfiguration.Builder> inferenceConfiguration) Contains inference configurations for the prompt variant.
This is a convenience method that creates an instance of thePromptInferenceConfiguration.Builderavoiding the need to create one manually viaPromptInferenceConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinferenceConfiguration(PromptInferenceConfiguration).- Parameters:
inferenceConfiguration- a consumer that will call methods onPromptInferenceConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
modelId
The unique identifier of the model with which to run inference on the prompt.
- Parameters:
modelId- The unique identifier of the model with which to run inference on the prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the prompt variant.
- Parameters:
name- The name of the prompt variant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templateConfiguration
Contains configurations for the prompt template.
- Parameters:
templateConfiguration- Contains configurations for the prompt template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templateConfiguration
default PromptVariant.Builder templateConfiguration(Consumer<PromptTemplateConfiguration.Builder> templateConfiguration) Contains configurations for the prompt template.
This is a convenience method that creates an instance of thePromptTemplateConfiguration.Builderavoiding the need to create one manually viaPromptTemplateConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totemplateConfiguration(PromptTemplateConfiguration).- Parameters:
templateConfiguration- a consumer that will call methods onPromptTemplateConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
templateType
The type of prompt template to use.
- Parameters:
templateType- The type of prompt template to use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
templateType
The type of prompt template to use.
- Parameters:
templateType- The type of prompt template to use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-