Class TracePart
- java.lang.Object
-
- software.amazon.awssdk.services.bedrockagentruntime.model.TracePart
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ResponseStream
,ToCopyableBuilder<TracePart.Builder,TracePart>
- Direct Known Subclasses:
DefaultTrace
@Generated("software.amazon.awssdk:codegen") public class TracePart extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TracePart.Builder,TracePart>, ResponseStream
Trace Part which contains intermidate response for customer
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
TracePart.Builder
protected static class
TracePart.BuilderImpl
-
Nested classes/interfaces inherited from interface software.amazon.awssdk.services.bedrockagentruntime.model.ResponseStream
ResponseStream.EventType
-
-
Field Summary
-
Fields inherited from interface software.amazon.awssdk.services.bedrockagentruntime.model.ResponseStream
UNKNOWN
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TracePart(TracePart.BuilderImpl builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(InvokeAgentResponseHandler.Visitor visitor)
Calls the appropriate visit method depending on the subtype ofTracePart
.String
agentAliasId()
Returns the value of the AgentAliasId property for this object.String
agentId()
Returns the value of the AgentId property for this object.static TracePart.Builder
builder()
TracePart
copy(Consumer<? super TracePart.Builder> modifier)
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
List<SdkField<?>>
sdkFields()
static Class<? extends TracePart.Builder>
serializableBuilderClass()
String
sessionId()
Returns the value of the SessionId property for this object.TracePart.Builder
toBuilder()
String
toString()
Returns a string representation of this object.Trace
trace()
Returns the value of the Trace property for this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.services.bedrockagentruntime.model.ResponseStream
sdkEventType
-
-
-
-
Constructor Detail
-
TracePart
protected TracePart(TracePart.BuilderImpl builder)
-
-
Method Detail
-
agentId
public final String agentId()
Returns the value of the AgentId property for this object.- Returns:
- The value of the AgentId property for this object.
-
agentAliasId
public final String agentAliasId()
Returns the value of the AgentAliasId property for this object.- Returns:
- The value of the AgentAliasId property for this object.
-
sessionId
public final String sessionId()
Returns the value of the SessionId property for this object.- Returns:
- The value of the SessionId property for this object.
-
trace
public final Trace trace()
Returns the value of the Trace property for this object.- Returns:
- The value of the Trace property for this object.
-
toBuilder
public TracePart.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<TracePart.Builder,TracePart>
-
builder
public static TracePart.Builder builder()
-
serializableBuilderClass
public static Class<? extends TracePart.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in 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.
-
copy
public final TracePart copy(Consumer<? super TracePart.Builder> modifier)
- Specified by:
copy
in interfaceToCopyableBuilder<TracePart.Builder,TracePart>
-
accept
public void accept(InvokeAgentResponseHandler.Visitor visitor)
Calls the appropriate visit method depending on the subtype ofTracePart
.- Specified by:
accept
in interfaceResponseStream
- Parameters:
visitor
- Visitor to invoke.
-
-