Class CreateOAuth2TokenRequestBody
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CreateOAuth2TokenRequestBody.Builder,CreateOAuth2TokenRequestBody>
Request body payload for CreateOAuth2Token operation
The operation type is determined by the grant_type parameter:
- grant_type=authorization_code: Requires code, redirect_uri, code_verifier
- grant_type=refresh_token: Requires refresh_token
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final StringclientId()The client identifier (ARN) used during Sign-In onboarding Required for both authorization code and refresh token flowsfinal Stringcode()The authorization code received from /v1/authorize Required only when grant_type=authorization_codefinal StringPKCE code verifier to prove possession of the original code challenge Required only when grant_type=authorization_codefinal 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 StringOAuth 2.0 grant type - determines which flow is used Must be "authorization_code" or "refresh_token"final inthashCode()final StringThe redirect URI that must match the original authorization request Required only when grant_type=authorization_codefinal StringThe refresh token returned from auth_code redemption Required only when grant_type=refresh_tokenstatic Class<? extends CreateOAuth2TokenRequestBody.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
clientId
The client identifier (ARN) used during Sign-In onboarding Required for both authorization code and refresh token flows
- Returns:
- The client identifier (ARN) used during Sign-In onboarding Required for both authorization code and refresh token flows
-
grantType
OAuth 2.0 grant type - determines which flow is used Must be "authorization_code" or "refresh_token"
- Returns:
- OAuth 2.0 grant type - determines which flow is used Must be "authorization_code" or "refresh_token"
-
code
The authorization code received from /v1/authorize Required only when grant_type=authorization_code
- Returns:
- The authorization code received from /v1/authorize Required only when grant_type=authorization_code
-
redirectUri
The redirect URI that must match the original authorization request Required only when grant_type=authorization_code
- Returns:
- The redirect URI that must match the original authorization request Required only when grant_type=authorization_code
-
codeVerifier
PKCE code verifier to prove possession of the original code challenge Required only when grant_type=authorization_code
- Returns:
- PKCE code verifier to prove possession of the original code challenge Required only when grant_type=authorization_code
-
refreshToken
The refresh token returned from auth_code redemption Required only when grant_type=refresh_token
- Returns:
- The refresh token returned from auth_code redemption Required only when grant_type=refresh_token
-
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<CreateOAuth2TokenRequestBody.Builder,CreateOAuth2TokenRequestBody> - 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.
-