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 Details

    • Builder

      public Builder()
  • Method Details

    • authorizationCodeGrant

      @Stability(Stable) public OAuthFlows.Builder authorizationCodeGrant(Boolean authorizationCodeGrant)
      Parameters:
      authorizationCodeGrant - Initiate an authorization code grant flow, which provides an authorization code as the response.
      Returns:
      this
    • clientCredentials

      @Stability(Stable) public OAuthFlows.Builder clientCredentials(Boolean clientCredentials)
      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

      @Stability(Stable) public OAuthFlows.Builder implicitCodeGrant(Boolean implicitCodeGrant)
      Parameters:
      implicitCodeGrant - The client should get the access token and ID token directly.
      Returns:
      this
    • build

      @Stability(Stable) public OAuthFlows build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<OAuthFlows>
      Returns:
      a new instance of OAuthFlows
      Throws:
      NullPointerException - if any required attribute was not provided