Class OAuthFlows.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.OAuthFlows.Builder
- All Implemented Interfaces:
- software.amazon.jsii.Builder<OAuthFlows>
- Enclosing interface:
- OAuthFlows
@Stability(Stable)
public static final class OAuthFlows.Builder
extends Object
implements software.amazon.jsii.Builder<OAuthFlows>
A builder for 
OAuthFlows- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionauthorizationCodeGrant(Boolean authorizationCodeGrant) Sets the value ofOAuthFlows.getAuthorizationCodeGrant()build()Builds the configured instance.clientCredentials(Boolean clientCredentials) Sets the value ofOAuthFlows.getClientCredentials()implicitCodeGrant(Boolean implicitCodeGrant) Sets the value ofOAuthFlows.getImplicitCodeGrant()
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
authorizationCodeGrantSets the value ofOAuthFlows.getAuthorizationCodeGrant()- Parameters:
- authorizationCodeGrant- Initiate an authorization code grant flow, which provides an authorization code as the response.
- Returns:
- this
 
- 
clientCredentialsSets the value ofOAuthFlows.getClientCredentials()- Parameters:
- clientCredentials- Client should get the access token and ID token from the token endpoint using a combination of client and client_secret.
- Returns:
- this
 
- 
implicitCodeGrantSets the value ofOAuthFlows.getImplicitCodeGrant()- Parameters:
- implicitCodeGrant- The client should get the access token and ID token directly.
- Returns:
- this
 
- 
buildBuilds the configured instance.- Specified by:
- buildin interface- software.amazon.jsii.Builder<OAuthFlows>
- Returns:
- a new instance of OAuthFlows
- Throws:
- NullPointerException- if any required attribute was not provided
 
 
-