Class UserPoolIdentityProviderGoogleProps.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.UserPoolIdentityProviderGoogleProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<UserPoolIdentityProviderGoogleProps>
- Enclosing interface:
UserPoolIdentityProviderGoogleProps
@Stability(Stable)
public static final class UserPoolIdentityProviderGoogleProps.Builder
extends Object
implements software.amazon.jsii.Builder<UserPoolIdentityProviderGoogleProps>
A builder for
UserPoolIdentityProviderGoogleProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributeMapping(AttributeMapping attributeMapping) Sets the value ofUserPoolIdentityProviderProps.getAttributeMapping()build()Builds the configured instance.Sets the value ofUserPoolIdentityProviderGoogleProps.getClientId()clientSecret(String clientSecret) Deprecated.use clientSecretValue insteadclientSecretValue(SecretValue clientSecretValue) Sets the value ofUserPoolIdentityProviderGoogleProps.getClientSecretValue()Sets the value ofUserPoolIdentityProviderGoogleProps.getScopes()Sets the value ofUserPoolIdentityProviderProps.getUserPool()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clientId
Sets the value ofUserPoolIdentityProviderGoogleProps.getClientId()- Parameters:
clientId- The client id recognized by Google APIs. This parameter is required.- Returns:
this
-
clientSecret
@Stability(Deprecated) @Deprecated public UserPoolIdentityProviderGoogleProps.Builder clientSecret(String clientSecret) Deprecated.use clientSecretValue insteadSets the value ofUserPoolIdentityProviderGoogleProps.getClientSecret()- Parameters:
clientSecret- The client secret to be accompanied with clientId for Google APIs to authenticate the client.- Returns:
this
-
clientSecretValue
@Stability(Stable) public UserPoolIdentityProviderGoogleProps.Builder clientSecretValue(SecretValue clientSecretValue) Sets the value ofUserPoolIdentityProviderGoogleProps.getClientSecretValue()- Parameters:
clientSecretValue- The client secret to be accompanied with clientId for Google APIs to authenticate the client as SecretValue.- Returns:
this
-
scopes
Sets the value ofUserPoolIdentityProviderGoogleProps.getScopes()- Parameters:
scopes- The list of Google permissions to obtain for getting access to the Google profile.- Returns:
this
-
userPool
Sets the value ofUserPoolIdentityProviderProps.getUserPool()- Parameters:
userPool- The user pool to which this construct provides identities. This parameter is required.- Returns:
this
-
attributeMapping
@Stability(Stable) public UserPoolIdentityProviderGoogleProps.Builder attributeMapping(AttributeMapping attributeMapping) Sets the value ofUserPoolIdentityProviderProps.getAttributeMapping()- Parameters:
attributeMapping- Mapping attributes from the identity provider to standard and custom attributes of the user pool.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<UserPoolIdentityProviderGoogleProps>- Returns:
- a new instance of
UserPoolIdentityProviderGoogleProps - Throws:
NullPointerException- if any required attribute was not provided
-