Class ApprovalAction
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ApprovalAction.Builder,ApprovalAction>
An approval decision supplied when resuming a paused agent execution. When an agent execution pauses to request approval for an elevated action, SendMessage streams an approval request carrying interrupt identifiers. This structure carries the decision back to the service — which paused tool invocation is being resumed, the opaque interrupt identifier that resumes it, the identifier of the approval request being resolved, optional display text of the control the user chose, and the action taken (APPROVED or REJECTED) — so the service can resume the paused execution. All members are optional on the wire; service-side validation is applied against the populated subset.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal ApprovalActionTypeaction()The action taken on the approval request — APPROVED or REJECTED.final StringThe action taken on the approval request — APPROVED or REJECTED.final StringIdentifier of the approval request being resolved.static ApprovalAction.Builderbuilder()final StringOptional display text of the UI control the user chose (for example, "Approve Exact", "Approve Broader", or "Reject"), provided as auxiliary decision context.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringAn opaque resume identifier issued by the service when an agent execution pauses for approval.static Class<? extends ApprovalAction.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringIdentifier of the specific paused tool invocation that requested approval.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
toolUseId
Identifier of the specific paused tool invocation that requested approval. Correlates the approval decision back to the paused invocation.
- Returns:
- Identifier of the specific paused tool invocation that requested approval. Correlates the approval decision back to the paused invocation.
-
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:
- 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.
-
approvalId
Identifier of the approval request being resolved.
- Returns:
- Identifier of the approval request being resolved.
-
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:
- Optional display text of the UI control the user chose (for example, "Approve Exact", "Approve Broader", or "Reject"), provided as auxiliary decision context.
-
action
The action taken on the approval request — APPROVED or REJECTED.
If the service returns an enum value that is not available in the current SDK version,
actionwill returnApprovalActionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromactionAsString().- Returns:
- The action taken on the approval request — APPROVED or REJECTED.
- See Also:
-
actionAsString
The action taken on the approval request — APPROVED or REJECTED.
If the service returns an enum value that is not available in the current SDK version,
actionwill returnApprovalActionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromactionAsString().- Returns:
- The action taken on the approval request — APPROVED or REJECTED.
- See Also:
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ApprovalAction.Builder,ApprovalAction> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-