Interface PromptConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<PromptConfiguration.Builder,PromptConfiguration>,SdkBuilder<PromptConfiguration.Builder,PromptConfiguration>,SdkPojo
- Enclosing class:
- PromptConfiguration
public static interface PromptConfiguration.Builder extends SdkPojo, CopyableBuilder<PromptConfiguration.Builder,PromptConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PromptConfiguration.BuilderbasePromptTemplate(String basePromptTemplate)Sets the value of the BasePromptTemplate property for this object.default PromptConfiguration.BuilderinferenceConfiguration(Consumer<InferenceConfiguration.Builder> inferenceConfiguration)Sets the value of the InferenceConfiguration property for this object.PromptConfiguration.BuilderinferenceConfiguration(InferenceConfiguration inferenceConfiguration)Sets the value of the InferenceConfiguration property for this object.PromptConfiguration.BuilderparserMode(String parserMode)Sets the value of the ParserMode property for this object.PromptConfiguration.BuilderparserMode(CreationMode parserMode)Sets the value of the ParserMode property for this object.PromptConfiguration.BuilderpromptCreationMode(String promptCreationMode)Sets the value of the PromptCreationMode property for this object.PromptConfiguration.BuilderpromptCreationMode(CreationMode promptCreationMode)Sets the value of the PromptCreationMode property for this object.PromptConfiguration.BuilderpromptState(String promptState)Sets the value of the PromptState property for this object.PromptConfiguration.BuilderpromptState(PromptState promptState)Sets the value of the PromptState property for this object.PromptConfiguration.BuilderpromptType(String promptType)Sets the value of the PromptType property for this object.PromptConfiguration.BuilderpromptType(PromptType promptType)Sets the value of the PromptType property for this object.-
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
-
promptType
PromptConfiguration.Builder promptType(String promptType)
Sets the value of the PromptType property for this object.- Parameters:
promptType- The new value for the PromptType property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PromptType,PromptType
-
promptType
PromptConfiguration.Builder promptType(PromptType promptType)
Sets the value of the PromptType property for this object.- Parameters:
promptType- The new value for the PromptType property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PromptType,PromptType
-
promptCreationMode
PromptConfiguration.Builder promptCreationMode(String promptCreationMode)
Sets the value of the PromptCreationMode property for this object.- Parameters:
promptCreationMode- The new value for the PromptCreationMode property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CreationMode,CreationMode
-
promptCreationMode
PromptConfiguration.Builder promptCreationMode(CreationMode promptCreationMode)
Sets the value of the PromptCreationMode property for this object.- Parameters:
promptCreationMode- The new value for the PromptCreationMode property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CreationMode,CreationMode
-
promptState
PromptConfiguration.Builder promptState(String promptState)
Sets the value of the PromptState property for this object.- Parameters:
promptState- The new value for the PromptState property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PromptState,PromptState
-
promptState
PromptConfiguration.Builder promptState(PromptState promptState)
Sets the value of the PromptState property for this object.- Parameters:
promptState- The new value for the PromptState property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PromptState,PromptState
-
basePromptTemplate
PromptConfiguration.Builder basePromptTemplate(String basePromptTemplate)
Sets the value of the BasePromptTemplate property for this object.- Parameters:
basePromptTemplate- The new value for the BasePromptTemplate property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inferenceConfiguration
PromptConfiguration.Builder inferenceConfiguration(InferenceConfiguration inferenceConfiguration)
Sets the value of the InferenceConfiguration property for this object.- Parameters:
inferenceConfiguration- The new value for the InferenceConfiguration property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inferenceConfiguration
default PromptConfiguration.Builder inferenceConfiguration(Consumer<InferenceConfiguration.Builder> inferenceConfiguration)
Sets the value of the InferenceConfiguration property for this object. This is a convenience method that creates an instance of theInferenceConfiguration.Builderavoiding the need to create one manually viaInferenceConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinferenceConfiguration(InferenceConfiguration).- Parameters:
inferenceConfiguration- a consumer that will call methods onInferenceConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
inferenceConfiguration(InferenceConfiguration)
-
parserMode
PromptConfiguration.Builder parserMode(String parserMode)
Sets the value of the ParserMode property for this object.- Parameters:
parserMode- The new value for the ParserMode property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CreationMode,CreationMode
-
parserMode
PromptConfiguration.Builder parserMode(CreationMode parserMode)
Sets the value of the ParserMode property for this object.- Parameters:
parserMode- The new value for the ParserMode property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CreationMode,CreationMode
-
-