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 Summary
Constructors -
Method Summary
Modifier 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
-
Builder
public Builder()
-
-
Method Details
-
authorizationCodeGrant
Sets the value ofOAuthFlows.getAuthorizationCodeGrant()- Parameters:
authorizationCodeGrant- Initiate an authorization code grant flow, which provides an authorization code as the response.- Returns:
this
-
clientCredentials
Sets 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
-
implicitCodeGrant
Sets the value ofOAuthFlows.getImplicitCodeGrant()- Parameters:
implicitCodeGrant- The client should get the access token and ID token directly.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<OAuthFlows>- Returns:
- a new instance of
OAuthFlows - Throws:
NullPointerException- if any required attribute was not provided
-