Interface CreateOAuth2TokenRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateOAuth2TokenRequest.Builder,,CreateOAuth2TokenRequest> SdkBuilder<CreateOAuth2TokenRequest.Builder,,CreateOAuth2TokenRequest> SdkPojo,SdkRequest.Builder,SigninRequest.Builder
- Enclosing class:
CreateOAuth2TokenRequest
@Mutable
@NotThreadSafe
public static interface CreateOAuth2TokenRequest.Builder
extends SigninRequest.Builder, SdkPojo, CopyableBuilder<CreateOAuth2TokenRequest.Builder,CreateOAuth2TokenRequest>
-
Method Summary
Modifier and TypeMethodDescriptionoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default CreateOAuth2TokenRequest.BuildertokenInput(Consumer<CreateOAuth2TokenRequestBody.Builder> tokenInput) Flattened token operation inputs The specific operation is determined by grant_type in the request bodytokenInput(CreateOAuth2TokenRequestBody tokenInput) Flattened token operation inputs The specific operation is determined by grant_type in the request bodyMethods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.services.signin.model.SigninRequest.Builder
build
-
Method Details
-
tokenInput
Flattened token operation inputs The specific operation is determined by grant_type in the request body
- Parameters:
tokenInput- Flattened token operation inputs The specific operation is determined by grant_type in the request body- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tokenInput
default CreateOAuth2TokenRequest.Builder tokenInput(Consumer<CreateOAuth2TokenRequestBody.Builder> tokenInput) Flattened token operation inputs The specific operation is determined by grant_type in the request body
This is a convenience method that creates an instance of theCreateOAuth2TokenRequestBody.Builderavoiding the need to create one manually viaCreateOAuth2TokenRequestBody.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totokenInput(CreateOAuth2TokenRequestBody).- Parameters:
tokenInput- a consumer that will call methods onCreateOAuth2TokenRequestBody.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateOAuth2TokenRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateOAuth2TokenRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-