Class InlineAgentTracePart.BuilderImpl
- java.lang.Object
-
- software.amazon.awssdk.services.bedrockagentruntime.model.InlineAgentTracePart.BuilderImpl
-
- All Implemented Interfaces:
SdkPojo,InlineAgentTracePart.Builder,Buildable,CopyableBuilder<InlineAgentTracePart.Builder,InlineAgentTracePart>,SdkBuilder<InlineAgentTracePart.Builder,InlineAgentTracePart>
- Enclosing class:
- InlineAgentTracePart
protected static class InlineAgentTracePart.BuilderImpl extends Object implements InlineAgentTracePart.Builder
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilderImpl()protectedBuilderImpl(InlineAgentTracePart model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InlineAgentTracePartbuild()InlineAgentTracePart.BuildercallerChain(Collection<Caller> callerChain)The caller chain for the trace part.InlineAgentTracePart.BuildercallerChain(Consumer<Caller.Builder>... callerChain)The caller chain for the trace part.InlineAgentTracePart.BuildercallerChain(Caller... callerChain)The caller chain for the trace part.InlineAgentTracePart.BuildercollaboratorName(String collaboratorName)The collaborator name for the trace part.InlineAgentTracePart.BuildereventTime(Instant eventTime)The time that trace occurred.List<Caller.Builder>getCallerChain()StringgetCollaboratorName()InstantgetEventTime()StringgetSessionId()Trace.BuildergetTrace()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()InlineAgentTracePart.BuildersessionId(String sessionId)The unique identifier of the session with the agent.voidsetCallerChain(Collection<software.amazon.awssdk.services.bedrockagentruntime.model.Caller.BuilderImpl> callerChain)voidsetCollaboratorName(String collaboratorName)voidsetEventTime(Instant eventTime)voidsetSessionId(String sessionId)voidsetTrace(software.amazon.awssdk.services.bedrockagentruntime.model.Trace.BuilderImpl trace)InlineAgentTracePart.Buildertrace(Trace trace)Contains one part of the agent's reasoning process and results from calling API actions and querying knowledge bases.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.bedrockagentruntime.model.InlineAgentTracePart.Builder
trace
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields
-
-
-
-
Constructor Detail
-
BuilderImpl
protected BuilderImpl()
-
BuilderImpl
protected BuilderImpl(InlineAgentTracePart model)
-
-
Method Detail
-
getCallerChain
public final List<Caller.Builder> getCallerChain()
-
setCallerChain
public final void setCallerChain(Collection<software.amazon.awssdk.services.bedrockagentruntime.model.Caller.BuilderImpl> callerChain)
-
callerChain
public final InlineAgentTracePart.Builder callerChain(Collection<Caller> callerChain)
Description copied from interface:InlineAgentTracePart.BuilderThe caller chain for the trace part.
- Specified by:
callerChainin interfaceInlineAgentTracePart.Builder- Parameters:
callerChain- The caller chain for the trace part.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
callerChain
@SafeVarargs public final InlineAgentTracePart.Builder callerChain(Caller... callerChain)
Description copied from interface:InlineAgentTracePart.BuilderThe caller chain for the trace part.
- Specified by:
callerChainin interfaceInlineAgentTracePart.Builder- Parameters:
callerChain- The caller chain for the trace part.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
callerChain
@SafeVarargs public final InlineAgentTracePart.Builder callerChain(Consumer<Caller.Builder>... callerChain)
Description copied from interface:InlineAgentTracePart.BuilderThe caller chain for the trace part.
This is a convenience method that creates an instance of theCaller.Builderavoiding the need to create one manually viaCaller.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#callerChain(List.) - Specified by:
callerChainin interfaceInlineAgentTracePart.Builder- Parameters:
callerChain- a consumer that will call methods onCaller.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#callerChain(java.util.Collection)
-
getCollaboratorName
public final String getCollaboratorName()
-
setCollaboratorName
public final void setCollaboratorName(String collaboratorName)
-
collaboratorName
public final InlineAgentTracePart.Builder collaboratorName(String collaboratorName)
Description copied from interface:InlineAgentTracePart.BuilderThe collaborator name for the trace part.
- Specified by:
collaboratorNamein interfaceInlineAgentTracePart.Builder- Parameters:
collaboratorName- The collaborator name for the trace part.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getEventTime
public final Instant getEventTime()
-
setEventTime
public final void setEventTime(Instant eventTime)
-
eventTime
public final InlineAgentTracePart.Builder eventTime(Instant eventTime)
Description copied from interface:InlineAgentTracePart.BuilderThe time that trace occurred.
- Specified by:
eventTimein interfaceInlineAgentTracePart.Builder- Parameters:
eventTime- The time that trace occurred.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getSessionId
public final String getSessionId()
-
setSessionId
public final void setSessionId(String sessionId)
-
sessionId
public final InlineAgentTracePart.Builder sessionId(String sessionId)
Description copied from interface:InlineAgentTracePart.BuilderThe unique identifier of the session with the agent.
- Specified by:
sessionIdin interfaceInlineAgentTracePart.Builder- Parameters:
sessionId- The unique identifier of the session with the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTrace
public final Trace.Builder getTrace()
-
setTrace
public final void setTrace(software.amazon.awssdk.services.bedrockagentruntime.model.Trace.BuilderImpl trace)
-
trace
public final InlineAgentTracePart.Builder trace(Trace trace)
Description copied from interface:InlineAgentTracePart.BuilderContains one part of the agent's reasoning process and results from calling API actions and querying knowledge bases. You can use the trace to understand how the agent arrived at the response it provided the customer. For more information, see Trace enablement.
- Specified by:
tracein interfaceInlineAgentTracePart.Builder- Parameters:
trace- Contains one part of the agent's reasoning process and results from calling API actions and querying knowledge bases. You can use the trace to understand how the agent arrived at the response it provided the customer. For more information, see Trace enablement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
build
public InlineAgentTracePart build()
- Specified by:
buildin interfaceBuildable- Specified by:
buildin interfaceSdkBuilder<InlineAgentTracePart.Builder,InlineAgentTracePart>
-
sdkFieldNameToField
public Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-