Interface FunctionTarget.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<FunctionTarget.Builder,,FunctionTarget> SdkBuilder<FunctionTarget.Builder,,FunctionTarget> SdkPojo
- Enclosing class:
FunctionTarget
@Mutable
@NotThreadSafe
public static interface FunctionTarget.Builder
extends SdkPojo, CopyableBuilder<FunctionTarget.Builder,FunctionTarget>
-
Method Summary
Modifier and TypeMethodDescriptiondefault FunctionTarget.Builderbedrock(Consumer<BedrockFunctionTarget.Builder> bedrock) Send the request to an Amazon Bedrock model.bedrock(BedrockFunctionTarget bedrock) Send the request to an Amazon Bedrock model.default FunctionTarget.Builderpassthrough(Consumer<PassthroughFunctionTarget.Builder> passthrough) Send the request nowhere.passthrough(PassthroughFunctionTarget passthrough) Send the request nowhere.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, sdkFieldNameToField, sdkFields
-
Method Details
-
bedrock
Send the request to an Amazon Bedrock model.
- Parameters:
bedrock- Send the request to an Amazon Bedrock model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bedrock
Send the request to an Amazon Bedrock model.
This is a convenience method that creates an instance of theBedrockFunctionTarget.Builderavoiding the need to create one manually viaBedrockFunctionTarget.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobedrock(BedrockFunctionTarget).- Parameters:
bedrock- a consumer that will call methods onBedrockFunctionTarget.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
passthrough
Send the request nowhere. Use this target to reshape the metadata that Elemental Inference already produces, with no model invocation and no model charges.
- Parameters:
passthrough- Send the request nowhere. Use this target to reshape the metadata that Elemental Inference already produces, with no model invocation and no model charges.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
passthrough
Send the request nowhere. Use this target to reshape the metadata that Elemental Inference already produces, with no model invocation and no model charges.
This is a convenience method that creates an instance of thePassthroughFunctionTarget.Builderavoiding the need to create one manually viaPassthroughFunctionTarget.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topassthrough(PassthroughFunctionTarget).- Parameters:
passthrough- a consumer that will call methods onPassthroughFunctionTarget.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-