Interface OAuth2AuthorizationData.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<OAuth2AuthorizationData.Builder,,OAuth2AuthorizationData> SdkBuilder<OAuth2AuthorizationData.Builder,,OAuth2AuthorizationData> SdkPojo
- Enclosing class:
OAuth2AuthorizationData
@Mutable
@NotThreadSafe
public static interface OAuth2AuthorizationData.Builder
extends SdkPojo, CopyableBuilder<OAuth2AuthorizationData.Builder,OAuth2AuthorizationData>
-
Method Summary
Modifier and TypeMethodDescriptionauthorizationAttemptId(String authorizationAttemptId) The identifier of this authorization attempt.authorizationUrl(String authorizationUrl) The URL that the user opens to approve access.The timestamp when the authorization link expires, 10 minutes after the authorization started.The AgentCore Identity user ID that the authorization is for.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
-
authorizationUrl
The URL that the user opens to approve access. The link is valid for up to 10 minutes. Treat it as sensitive and give it only to the user who approves access.
- Parameters:
authorizationUrl- The URL that the user opens to approve access. The link is valid for up to 10 minutes. Treat it as sensitive and give it only to the user who approves access.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userId
The AgentCore Identity user ID that the authorization is for. Store it with your signed-in user and pass it as
userIdentifier.userIdwhen your application callsCompleteResourceTokenAuth.- Parameters:
userId- The AgentCore Identity user ID that the authorization is for. Store it with your signed-in user and pass it asuserIdentifier.userIdwhen your application callsCompleteResourceTokenAuth.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
authorizationAttemptId
The identifier of this authorization attempt.
- Parameters:
authorizationAttemptId- The identifier of this authorization attempt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expiresAt
The timestamp when the authorization link expires, 10 minutes after the authorization started. A request that joins an authorization in progress gets less time, and the link might stop working shortly before this time.
- Parameters:
expiresAt- The timestamp when the authorization link expires, 10 minutes after the authorization started. A request that joins an authorization in progress gets less time, and the link might stop working shortly before this time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-