Interface Metadata.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<Metadata.Builder,,- Metadata> - SdkBuilder<Metadata.Builder,,- Metadata> - SdkPojo
- Enclosing class:
- Metadata
- 
Method SummaryModifier and TypeMethodDescriptionclientRequestId(String clientRequestId) A unique identifier associated with the downstream invocation.In the final response,endTimeis the end time of the agent invocation operation.operationTotalTimeMs(Long operationTotalTimeMs) The total time it took for the agent to complete execution.In the final response,startTimeis the start time of the agent invocation operation.totalTimeMs(Long totalTimeMs) The total execution time for the specific invocation being processed (model, knowledge base, guardrail, agent collaborator, or code interpreter).default Metadata.Builderusage(Consumer<Usage.Builder> usage) Specific to model invocation and contains details about the usage of a foundation model.Specific to model invocation and contains details about the usage of a foundation model.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
startTimeIn the final response, startTimeis the start time of the agent invocation operation.- Parameters:
- startTime- In the final response,- startTimeis the start time of the agent invocation operation.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
endTimeIn the final response, endTimeis the end time of the agent invocation operation.- Parameters:
- endTime- In the final response,- endTimeis the end time of the agent invocation operation.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
totalTimeMsThe total execution time for the specific invocation being processed (model, knowledge base, guardrail, agent collaborator, or code interpreter). It represents how long the individual invocation took. - Parameters:
- totalTimeMs- The total execution time for the specific invocation being processed (model, knowledge base, guardrail, agent collaborator, or code interpreter). It represents how long the individual invocation took.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
operationTotalTimeMsThe total time it took for the agent to complete execution. This field is only set for the final response. - Parameters:
- operationTotalTimeMs- The total time it took for the agent to complete execution. This field is only set for the final response.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
clientRequestIdA unique identifier associated with the downstream invocation. This ID can be used for tracing, debugging, and identifying specific invocations in customer logs or systems. - Parameters:
- clientRequestId- A unique identifier associated with the downstream invocation. This ID can be used for tracing, debugging, and identifying specific invocations in customer logs or systems.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
usageSpecific to model invocation and contains details about the usage of a foundation model. - Parameters:
- usage- Specific to model invocation and contains details about the usage of a foundation model.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
usageSpecific to model invocation and contains details about the usage of a foundation model. This is a convenience method that creates an instance of theUsage.Builderavoiding the need to create one manually viaUsage.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tousage(Usage).- Parameters:
- usage- a consumer that will call methods on- Usage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
 
-