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
protected static class TracePart.BuilderImpl extends Object implements TracePart.Builder
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilderImpl()protectedBuilderImpl(TracePart model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TracePart.BuilderagentAliasId(String agentAliasId)The unique identifier of the alias of the agent.TracePart.BuilderagentId(String agentId)The unique identifier of the agent.TracePart.BuilderagentVersion(String agentVersion)The version of the agent.TracePartbuild()StringgetAgentAliasId()StringgetAgentId()StringgetAgentVersion()StringgetSessionId()Trace.BuildergetTrace()List<SdkField<?>>sdkFields()TracePart.BuildersessionId(String sessionId)The unique identifier of the session with the agent.voidsetAgentAliasId(String agentAliasId)voidsetAgentId(String agentId)voidsetAgentVersion(String agentVersion)voidsetSessionId(String sessionId)voidsetTrace(software.amazon.awssdk.services.bedrockagentruntime.model.Trace.BuilderImpl trace)TracePart.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.utils.builder.SdkBuilder
applyMutation
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields
-
Methods inherited from interface software.amazon.awssdk.services.bedrockagentruntime.model.TracePart.Builder
trace
-
-
-
-
Constructor Detail
-
BuilderImpl
protected BuilderImpl()
-
BuilderImpl
protected BuilderImpl(TracePart model)
-
-
Method Detail
-
getAgentAliasId
public final String getAgentAliasId()
-
setAgentAliasId
public final void setAgentAliasId(String agentAliasId)
-
agentAliasId
public final TracePart.Builder agentAliasId(String 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
public final String getAgentId()
-
setAgentId
public final void setAgentId(String agentId)
-
agentId
public final TracePart.Builder agentId(String 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
public final String getAgentVersion()
-
setAgentVersion
public final void setAgentVersion(String agentVersion)
-
agentVersion
public final TracePart.Builder agentVersion(String 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.
-
getSessionId
public final String getSessionId()
-
setSessionId
public final void setSessionId(String sessionId)
-
sessionId
public final TracePart.Builder sessionId(String 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
public final Trace.Builder getTrace()
-
setTrace
public final void setTrace(software.amazon.awssdk.services.bedrockagentruntime.model.Trace.BuilderImpl trace)
-
trace
public final TracePart.Builder trace(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
public TracePart build()
- Specified by:
buildin interfaceBuildable- Specified by:
buildin interfaceSdkBuilder<TracePart.Builder,TracePart>
-
-