Class InvocationStep
- java.lang.Object
-
- software.amazon.awssdk.services.bedrockagentruntime.model.InvocationStep
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<InvocationStep.Builder,InvocationStep>
@Generated("software.amazon.awssdk:codegen") public final class InvocationStep extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InvocationStep.Builder,InvocationStep>
Stores fine-grained state checkpoints, including text and images, for each interaction in an invocation in a session. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceInvocationStep.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InvocationStep.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringinvocationId()The unique identifier (in UUID format) for the invocation that includes the invocation step.StringinvocationStepId()The unique identifier (in UUID format) for the invocation step.InstantinvocationStepTime()The timestamp for when the invocation step was created.InvocationStepPayloadpayload()Payload content, such as text and images, for the invocation step.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends InvocationStep.Builder>serializableBuilderClass()StringsessionId()The unique identifier of the session containing the invocation step.InvocationStep.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
invocationId
public final String invocationId()
The unique identifier (in UUID format) for the invocation that includes the invocation step.
- Returns:
- The unique identifier (in UUID format) for the invocation that includes the invocation step.
-
invocationStepId
public final String invocationStepId()
The unique identifier (in UUID format) for the invocation step.
- Returns:
- The unique identifier (in UUID format) for the invocation step.
-
invocationStepTime
public final Instant invocationStepTime()
The timestamp for when the invocation step was created.
- Returns:
- The timestamp for when the invocation step was created.
-
payload
public final InvocationStepPayload payload()
Payload content, such as text and images, for the invocation step.
- Returns:
- Payload content, such as text and images, for the invocation step.
-
sessionId
public final String sessionId()
The unique identifier of the session containing the invocation step.
- Returns:
- The unique identifier of the session containing the invocation step.
-
toBuilder
public InvocationStep.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<InvocationStep.Builder,InvocationStep>
-
builder
public static InvocationStep.Builder builder()
-
serializableBuilderClass
public static Class<? extends InvocationStep.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String 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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-