Interface ApprovalAction.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ApprovalAction.Builder,,ApprovalAction> SdkBuilder<ApprovalAction.Builder,,ApprovalAction> SdkPojo
- Enclosing class:
ApprovalAction
@Mutable
@NotThreadSafe
public static interface ApprovalAction.Builder
extends SdkPojo, CopyableBuilder<ApprovalAction.Builder,ApprovalAction>
-
Method Summary
Modifier and TypeMethodDescriptionThe action taken on the approval request — APPROVED or REJECTED.action(ApprovalActionType action) The action taken on the approval request — APPROVED or REJECTED.approvalId(String approvalId) Identifier of the approval request being resolved.buttonText(String buttonText) Optional display text of the UI control the user chose (for example, "Approve Exact", "Approve Broader", or "Reject"), provided as auxiliary decision context.interruptId(String interruptId) An opaque resume identifier issued by the service when an agent execution pauses for approval.Identifier of the specific paused tool invocation that requested approval.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
toolUseId
Identifier of the specific paused tool invocation that requested approval. Correlates the approval decision back to the paused invocation.
- Parameters:
toolUseId- Identifier of the specific paused tool invocation that requested approval. Correlates the approval decision back to the paused invocation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
interruptId
An opaque resume identifier issued by the service when an agent execution pauses for approval. Provide it when resuming so the service can resume the correct paused execution.
- Parameters:
interruptId- An opaque resume identifier issued by the service when an agent execution pauses for approval. Provide it when resuming so the service can resume the correct paused execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
approvalId
Identifier of the approval request being resolved.
- Parameters:
approvalId- Identifier of the approval request being resolved.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
buttonText
Optional display text of the UI control the user chose (for example, "Approve Exact", "Approve Broader", or "Reject"), provided as auxiliary decision context.
- Parameters:
buttonText- Optional display text of the UI control the user chose (for example, "Approve Exact", "Approve Broader", or "Reject"), provided as auxiliary decision context.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
action
The action taken on the approval request — APPROVED or REJECTED.
- Parameters:
action- The action taken on the approval request — APPROVED or REJECTED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
action
The action taken on the approval request — APPROVED or REJECTED.
- Parameters:
action- The action taken on the approval request — APPROVED or REJECTED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-