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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default PromptVariant.BuilderinferenceConfiguration(Consumer<PromptInferenceConfiguration.Builder> inferenceConfiguration)Contains inference configurations for the prompt variant.PromptVariant.BuilderinferenceConfiguration(PromptInferenceConfiguration inferenceConfiguration)Contains inference configurations for the prompt variant.PromptVariant.Buildermetadata(Collection<PromptMetadataEntry> metadata)An array of objects, each containing a key-value pair that defines a metadata tag and value to attach to a prompt variant.PromptVariant.Buildermetadata(Consumer<PromptMetadataEntry.Builder>... metadata)An array of objects, each containing a key-value pair that defines a metadata tag and value to attach to a prompt variant.PromptVariant.Buildermetadata(PromptMetadataEntry... metadata)An array of objects, each containing a key-value pair that defines a metadata tag and value to attach to a prompt variant.PromptVariant.BuildermodelId(String modelId)The unique identifier of the model or inference profile with which to run inference on the prompt.PromptVariant.Buildername(String name)The name of the prompt variant.default PromptVariant.BuildertemplateConfiguration(Consumer<PromptTemplateConfiguration.Builder> templateConfiguration)Contains configurations for the prompt template.PromptVariant.BuildertemplateConfiguration(PromptTemplateConfiguration templateConfiguration)Contains configurations for the prompt template.PromptVariant.BuildertemplateType(String templateType)The type of prompt template to use.PromptVariant.BuildertemplateType(PromptTemplateType templateType)The type of prompt template to use.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
inferenceConfiguration
PromptVariant.Builder inferenceConfiguration(PromptInferenceConfiguration 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:
inferenceConfiguration(PromptInferenceConfiguration)
-
metadata
PromptVariant.Builder metadata(Collection<PromptMetadataEntry> metadata)
An array of objects, each containing a key-value pair that defines a metadata tag and value to attach to a prompt variant. For more information, see Create a prompt using Prompt management.
- Parameters:
metadata- An array of objects, each containing a key-value pair that defines a metadata tag and value to attach to a prompt variant. For more information, see Create a prompt using Prompt management.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadata
PromptVariant.Builder metadata(PromptMetadataEntry... metadata)
An array of objects, each containing a key-value pair that defines a metadata tag and value to attach to a prompt variant. For more information, see Create a prompt using Prompt management.
- Parameters:
metadata- An array of objects, each containing a key-value pair that defines a metadata tag and value to attach to a prompt variant. For more information, see Create a prompt using Prompt management.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadata
PromptVariant.Builder metadata(Consumer<PromptMetadataEntry.Builder>... metadata)
An array of objects, each containing a key-value pair that defines a metadata tag and value to attach to a prompt variant. For more information, see Create a prompt using Prompt management.
This is a convenience method that creates an instance of thePromptMetadataEntry.Builderavoiding the need to create one manually viaPromptMetadataEntry.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#metadata(List.) - Parameters:
metadata- a consumer that will call methods onPromptMetadataEntry.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#metadata(java.util.Collection)
-
modelId
PromptVariant.Builder modelId(String modelId)
The unique identifier of the model or inference profile with which to run inference on the prompt.
- Parameters:
modelId- The unique identifier of the model or inference profile with which to run inference on the prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
PromptVariant.Builder name(String 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
PromptVariant.Builder templateConfiguration(PromptTemplateConfiguration 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:
templateConfiguration(PromptTemplateConfiguration)
-
templateType
PromptVariant.Builder templateType(String 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:
PromptTemplateType,PromptTemplateType
-
templateType
PromptVariant.Builder templateType(PromptTemplateType 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:
PromptTemplateType,PromptTemplateType
-
-