Interface ContentBody.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ContentBody.Builder,ContentBody>,SdkBuilder<ContentBody.Builder,ContentBody>,SdkPojo
- Enclosing class:
- ContentBody
@Mutable @NotThreadSafe public static interface ContentBody.Builder extends SdkPojo, CopyableBuilder<ContentBody.Builder,ContentBody>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ContentBody.Builderbody(String body)The body of the API response.ContentBody.Builderimages(Collection<ImageInput> images)Lists details, including format and source, for the image in the response from the function call.ContentBody.Builderimages(Consumer<ImageInput.Builder>... images)Lists details, including format and source, for the image in the response from the function call.ContentBody.Builderimages(ImageInput... images)Lists details, including format and source, for the image in the response from the function call.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
body
ContentBody.Builder body(String body)
The body of the API response.
- Parameters:
body- The body of the API response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
images
ContentBody.Builder images(Collection<ImageInput> images)
Lists details, including format and source, for the image in the response from the function call. You can specify only one image and the function in the
returnControlInvocationResultsmust be a computer use action. For more information, see Configure an Amazon Bedrock Agent to complete tasks with computer use tools.- Parameters:
images- Lists details, including format and source, for the image in the response from the function call. You can specify only one image and the function in thereturnControlInvocationResultsmust be a computer use action. For more information, see Configure an Amazon Bedrock Agent to complete tasks with computer use tools.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
images
ContentBody.Builder images(ImageInput... images)
Lists details, including format and source, for the image in the response from the function call. You can specify only one image and the function in the
returnControlInvocationResultsmust be a computer use action. For more information, see Configure an Amazon Bedrock Agent to complete tasks with computer use tools.- Parameters:
images- Lists details, including format and source, for the image in the response from the function call. You can specify only one image and the function in thereturnControlInvocationResultsmust be a computer use action. For more information, see Configure an Amazon Bedrock Agent to complete tasks with computer use tools.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
images
ContentBody.Builder images(Consumer<ImageInput.Builder>... images)
Lists details, including format and source, for the image in the response from the function call. You can specify only one image and the function in the
This is a convenience method that creates an instance of thereturnControlInvocationResultsmust be a computer use action. For more information, see Configure an Amazon Bedrock Agent to complete tasks with computer use tools.ImageInput.Builderavoiding the need to create one manually viaImageInput.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#images(List.) - Parameters:
images- a consumer that will call methods onImageInput.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#images(java.util.Collection)
-
-