Class TracePart.BuilderImpl
java.lang.Object
software.amazon.awssdk.services.bedrockagentruntime.model.TracePart.BuilderImpl
- All Implemented Interfaces:
SdkPojo,TracePart.Builder,Buildable,CopyableBuilder<TracePart.Builder,,TracePart> SdkBuilder<TracePart.Builder,TracePart>
- Enclosing class:
- TracePart
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal TracePart.BuilderagentAliasId(String agentAliasId) The unique identifier of the alias of the agent.final TracePart.BuilderThe unique identifier of the agent.final TracePart.BuilderagentVersion(String agentVersion) The version of the agent.build()final TracePart.BuildercallerChain(Collection<Caller> callerChain) The part's caller chain.final TracePart.BuildercallerChain(Consumer<Caller.Builder>... callerChain) The part's caller chain.final TracePart.BuildercallerChain(Caller... callerChain) The part's caller chain.final TracePart.BuildercollaboratorName(String collaboratorName) The part's collaborator name.final TracePart.BuilderThe time of the trace.final Stringfinal Stringfinal Stringfinal List<Caller.Builder>final Stringfinal Instantfinal Stringfinal Trace.BuildergetTrace()final TracePart.BuilderThe unique identifier of the session with the agent.final voidsetAgentAliasId(String agentAliasId) final voidsetAgentId(String agentId) final voidsetAgentVersion(String agentVersion) final voidsetCallerChain(Collection<software.amazon.awssdk.services.bedrockagentruntime.model.Caller.BuilderImpl> callerChain) final voidsetCollaboratorName(String collaboratorName) final voidsetEventTime(Instant eventTime) final voidsetSessionId(String sessionId) final voidsetTrace(software.amazon.awssdk.services.bedrockagentruntime.model.Trace.BuilderImpl trace) final TracePart.BuilderContains 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, waitMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutationMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFieldsMethods inherited from interface software.amazon.awssdk.services.bedrockagentruntime.model.TracePart.Builder
trace
-
Constructor Details
-
BuilderImpl
protected BuilderImpl() -
BuilderImpl
-
-
Method Details
-
getAgentAliasId
-
setAgentAliasId
-
agentAliasId
Description copied from interface:TracePart.BuilderThe unique identifier of the alias of the agent.
- Specified by:
agentAliasIdin interfaceTracePart.Builder- Parameters:
agentAliasId- The unique identifier of the alias of the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getAgentId
-
setAgentId
-
agentId
Description copied from interface:TracePart.BuilderThe unique identifier of the agent.
- Specified by:
agentIdin interfaceTracePart.Builder- Parameters:
agentId- The unique identifier of the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getAgentVersion
-
setAgentVersion
-
agentVersion
Description copied from interface:TracePart.BuilderThe version of the agent.
- Specified by:
agentVersionin interfaceTracePart.Builder- Parameters:
agentVersion- The version of the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getCallerChain
-
setCallerChain
public final void setCallerChain(Collection<software.amazon.awssdk.services.bedrockagentruntime.model.Caller.BuilderImpl> callerChain) -
callerChain
Description copied from interface:TracePart.BuilderThe part's caller chain.
- Specified by:
callerChainin interfaceTracePart.Builder- Parameters:
callerChain- The part's caller chain.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
callerChain
Description copied from interface:TracePart.BuilderThe part's caller chain.
- Specified by:
callerChainin interfaceTracePart.Builder- Parameters:
callerChain- The part's caller chain.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
callerChain
Description copied from interface:TracePart.BuilderThe part's caller chain.
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 toTracePart.Builder.callerChain(List<Caller>).- Specified by:
callerChainin interfaceTracePart.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:
-
getCollaboratorName
-
setCollaboratorName
-
collaboratorName
Description copied from interface:TracePart.BuilderThe part's collaborator name.
- Specified by:
collaboratorNamein interfaceTracePart.Builder- Parameters:
collaboratorName- The part's collaborator name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getEventTime
-
setEventTime
-
eventTime
Description copied from interface:TracePart.BuilderThe time of the trace.
- Specified by:
eventTimein interfaceTracePart.Builder- Parameters:
eventTime- The time of the trace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getSessionId
-
setSessionId
-
sessionId
Description copied from interface:TracePart.BuilderThe unique identifier of the session with the agent.
- Specified by:
sessionIdin interfaceTracePart.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
-
setTrace
public final void setTrace(software.amazon.awssdk.services.bedrockagentruntime.model.Trace.BuilderImpl trace) -
trace
Description copied from interface:TracePart.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 interfaceTracePart.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
- Specified by:
buildin interfaceBuildable- Specified by:
buildin interfaceSdkBuilder<TracePart.Builder,TracePart>
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-