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 Details

    • BuilderImpl

      protected BuilderImpl()
    • BuilderImpl

      protected BuilderImpl(TracePart model)
  • Method Details

    • 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.Builder

      The unique identifier of the alias of the agent.

      Specified by:
      agentAliasId in interface TracePart.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.Builder

      The unique identifier of the agent.

      Specified by:
      agentId in interface TracePart.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.Builder

      The version of the agent.

      Specified by:
      agentVersion in interface TracePart.Builder
      Parameters:
      agentVersion - The version of the agent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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 TracePart.Builder callerChain(Collection<Caller> callerChain)
      Description copied from interface: TracePart.Builder

      The part's caller chain.

      Specified by:
      callerChain in interface TracePart.Builder
      Parameters:
      callerChain - The part's caller chain.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • callerChain

      @SafeVarargs public final TracePart.Builder callerChain(Caller... callerChain)
      Description copied from interface: TracePart.Builder

      The part's caller chain.

      Specified by:
      callerChain in interface TracePart.Builder
      Parameters:
      callerChain - The part's caller chain.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • callerChain

      @SafeVarargs public final TracePart.Builder callerChain(Consumer<Caller.Builder>... callerChain)
      Description copied from interface: TracePart.Builder

      The part's caller chain.

      This is a convenience method that creates an instance of the Caller.Builder avoiding the need to create one manually via Caller.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to TracePart.Builder.callerChain(List<Caller>).

      Specified by:
      callerChain in interface TracePart.Builder
      Parameters:
      callerChain - a consumer that will call methods on Caller.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • getCollaboratorName

      public final String getCollaboratorName()
    • setCollaboratorName

      public final void setCollaboratorName(String collaboratorName)
    • collaboratorName

      public final TracePart.Builder collaboratorName(String collaboratorName)
      Description copied from interface: TracePart.Builder

      The part's collaborator name.

      Specified by:
      collaboratorName in interface TracePart.Builder
      Parameters:
      collaboratorName - The part's collaborator name.
      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 TracePart.Builder eventTime(Instant eventTime)
      Description copied from interface: TracePart.Builder

      The time of the trace.

      Specified by:
      eventTime in interface TracePart.Builder
      Parameters:
      eventTime - The time of the trace.
      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.Builder

      The unique identifier of the session with the agent.

      Specified by:
      sessionId in interface TracePart.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.Builder

      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.

      Specified by:
      trace in interface TracePart.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:
      build in interface Buildable
      Specified by:
      build in interface SdkBuilder<TracePart.Builder,TracePart>
    • sdkFields

      public List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
    • sdkFieldNameToField

      public Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo