Class ContentBlockStart
java.lang.Object
software.amazon.awssdk.services.bedrockruntime.model.ContentBlockStart
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ContentBlockStart.Builder,ContentBlockStart>
@Generated("software.amazon.awssdk:codegen")
public final class ContentBlockStart
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<ContentBlockStart.Builder,ContentBlockStart>
Content block start information.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Method Summary
Modifier and TypeMethodDescriptionstatic ContentBlockStart.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) static ContentBlockStartfromImage(Consumer<ImageBlockStart.Builder> image) Create an instance of this class withimage()initialized to the given value.static ContentBlockStartfromImage(ImageBlockStart image) Create an instance of this class withimage()initialized to the given value.static ContentBlockStartfromToolResult(Consumer<ToolResultBlockStart.Builder> toolResult) Create an instance of this class withtoolResult()initialized to the given value.static ContentBlockStartfromToolResult(ToolResultBlockStart toolResult) Create an instance of this class withtoolResult()initialized to the given value.static ContentBlockStartfromToolUse(Consumer<ToolUseBlockStart.Builder> toolUse) Create an instance of this class withtoolUse()initialized to the given value.static ContentBlockStartfromToolUse(ToolUseBlockStart toolUse) Create an instance of this class withtoolUse()initialized to the given value.final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final ImageBlockStartimage()The initial event indicating the start of a streaming image block.static Class<? extends ContentBlockStart.Builder>final ToolResultBlockStartThefinal ToolUseBlockStarttoolUse()Information about a tool that the model is requesting to use.final StringtoString()Returns a string representation of this object.type()Retrieve an enum value representing which member of this object is populated.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
toolUse
Information about a tool that the model is requesting to use.
- Returns:
- Information about a tool that the model is requesting to use.
-
toolResult
The
- Returns:
- The
-
image
The initial event indicating the start of a streaming image block.
- Returns:
- The initial event indicating the start of a streaming image block.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<ContentBlockStart.Builder,ContentBlockStart>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
fromToolUse
Create an instance of this class withtoolUse()initialized to the given value.Information about a tool that the model is requesting to use.
- Parameters:
toolUse- Information about a tool that the model is requesting to use.
-
fromToolUse
Create an instance of this class withtoolUse()initialized to the given value.Information about a tool that the model is requesting to use.
- Parameters:
toolUse- Information about a tool that the model is requesting to use.
-
fromToolResult
Create an instance of this class withtoolResult()initialized to the given value.The
- Parameters:
toolResult- The
-
fromToolResult
Create an instance of this class withtoolResult()initialized to the given value.The
- Parameters:
toolResult- The
-
fromImage
Create an instance of this class withimage()initialized to the given value.The initial event indicating the start of a streaming image block.
- Parameters:
image- The initial event indicating the start of a streaming image block.
-
fromImage
Create an instance of this class withimage()initialized to the given value.The initial event indicating the start of a streaming image block.
- Parameters:
image- The initial event indicating the start of a streaming image block.
-
type
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beContentBlockStart.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beContentBlockStart.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set. -
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-