Interface ModelInvocationInput.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<ModelInvocationInput.Builder,ModelInvocationInput>
,SdkBuilder<ModelInvocationInput.Builder,ModelInvocationInput>
,SdkPojo
- Enclosing class:
- ModelInvocationInput
public static interface ModelInvocationInput.Builder extends SdkPojo, CopyableBuilder<ModelInvocationInput.Builder,ModelInvocationInput>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ModelInvocationInput.Builder
inferenceConfiguration(Consumer<InferenceConfiguration.Builder> inferenceConfiguration)
Sets the value of the InferenceConfiguration property for this object.ModelInvocationInput.Builder
inferenceConfiguration(InferenceConfiguration inferenceConfiguration)
Sets the value of the InferenceConfiguration property for this object.ModelInvocationInput.Builder
overrideLambda(String overrideLambda)
Sets the value of the OverrideLambda property for this object.ModelInvocationInput.Builder
parserMode(String parserMode)
Sets the value of the ParserMode property for this object.ModelInvocationInput.Builder
parserMode(CreationMode parserMode)
Sets the value of the ParserMode property for this object.ModelInvocationInput.Builder
promptCreationMode(String promptCreationMode)
Sets the value of the PromptCreationMode property for this object.ModelInvocationInput.Builder
promptCreationMode(CreationMode promptCreationMode)
Sets the value of the PromptCreationMode property for this object.ModelInvocationInput.Builder
text(String text)
Sets the value of the Text property for this object.ModelInvocationInput.Builder
traceId(String traceId)
Sets the value of the TraceId property for this object.ModelInvocationInput.Builder
type(String type)
Sets the value of the Type property for this object.ModelInvocationInput.Builder
type(PromptType type)
Sets the value of the Type 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
-
traceId
ModelInvocationInput.Builder traceId(String traceId)
Sets the value of the TraceId property for this object.- Parameters:
traceId
- The new value for the TraceId property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
text
ModelInvocationInput.Builder text(String text)
Sets the value of the Text property for this object.- Parameters:
text
- The new value for the Text property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
ModelInvocationInput.Builder type(String type)
Sets the value of the Type property for this object.- Parameters:
type
- The new value for the Type property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PromptType
,PromptType
-
type
ModelInvocationInput.Builder type(PromptType type)
Sets the value of the Type property for this object.- Parameters:
type
- The new value for the Type property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PromptType
,PromptType
-
inferenceConfiguration
ModelInvocationInput.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 ModelInvocationInput.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.Builder
avoiding the need to create one manually viaInferenceConfiguration.builder()
.When the
Consumer
completes,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)
-
overrideLambda
ModelInvocationInput.Builder overrideLambda(String overrideLambda)
Sets the value of the OverrideLambda property for this object.- Parameters:
overrideLambda
- The new value for the OverrideLambda property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
promptCreationMode
ModelInvocationInput.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
ModelInvocationInput.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
-
parserMode
ModelInvocationInput.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
ModelInvocationInput.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
-
-