Interface CreateOAuth2TokenRequestBody.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CreateOAuth2TokenRequestBody.Builder,,CreateOAuth2TokenRequestBody> SdkBuilder<CreateOAuth2TokenRequestBody.Builder,,CreateOAuth2TokenRequestBody> SdkPojo
- Enclosing class:
CreateOAuth2TokenRequestBody
@Mutable
@NotThreadSafe
public static interface CreateOAuth2TokenRequestBody.Builder
extends SdkPojo, CopyableBuilder<CreateOAuth2TokenRequestBody.Builder,CreateOAuth2TokenRequestBody>
-
Method Summary
Modifier and TypeMethodDescriptionThe client identifier (ARN) used during Sign-In onboarding Required for both authorization code and refresh token flowsThe authorization code received from /v1/authorize Required only when grant_type=authorization_codecodeVerifier(String codeVerifier) PKCE code verifier to prove possession of the original code challenge Required only when grant_type=authorization_codeOAuth 2.0 grant type - determines which flow is used Must be "authorization_code" or "refresh_token"redirectUri(String redirectUri) The redirect URI that must match the original authorization request Required only when grant_type=authorization_coderefreshToken(String refreshToken) The refresh token returned from auth_code redemption Required only when grant_type=refresh_tokenMethods 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
-
clientId
The client identifier (ARN) used during Sign-In onboarding Required for both authorization code and refresh token flows
- Parameters:
clientId- The client identifier (ARN) used during Sign-In onboarding Required for both authorization code and refresh token flows- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grantType
OAuth 2.0 grant type - determines which flow is used Must be "authorization_code" or "refresh_token"
- Parameters:
grantType- OAuth 2.0 grant type - determines which flow is used Must be "authorization_code" or "refresh_token"- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
code
The authorization code received from /v1/authorize Required only when grant_type=authorization_code
- Parameters:
code- The authorization code received from /v1/authorize Required only when grant_type=authorization_code- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
redirectUri
The redirect URI that must match the original authorization request Required only when grant_type=authorization_code
- Parameters:
redirectUri- The redirect URI that must match the original authorization request Required only when grant_type=authorization_code- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
codeVerifier
PKCE code verifier to prove possession of the original code challenge Required only when grant_type=authorization_code
- Parameters:
codeVerifier- PKCE code verifier to prove possession of the original code challenge Required only when grant_type=authorization_code- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
refreshToken
The refresh token returned from auth_code redemption Required only when grant_type=refresh_token
- Parameters:
refreshToken- The refresh token returned from auth_code redemption Required only when grant_type=refresh_token- Returns:
- Returns a reference to this object so that method calls can be chained together.
-