Class UserPoolIdentityProviderFacebookProps.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.UserPoolIdentityProviderFacebookProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<UserPoolIdentityProviderFacebookProps>
- Enclosing interface:
UserPoolIdentityProviderFacebookProps
@Stability(Stable)
public static final class UserPoolIdentityProviderFacebookProps.Builder
extends Object
implements software.amazon.jsii.Builder<UserPoolIdentityProviderFacebookProps>
A builder for
UserPoolIdentityProviderFacebookProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapiVersion
(String apiVersion) Sets the value ofUserPoolIdentityProviderFacebookProps.getApiVersion()
attributeMapping
(AttributeMapping attributeMapping) Sets the value ofUserPoolIdentityProviderProps.getAttributeMapping()
build()
Builds the configured instance.Sets the value ofUserPoolIdentityProviderFacebookProps.getClientId()
clientSecret
(String clientSecret) Sets the value ofUserPoolIdentityProviderFacebookProps.getClientSecret()
Sets the value ofUserPoolIdentityProviderFacebookProps.getScopes()
Sets the value ofUserPoolIdentityProviderProps.getUserPool()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clientId
Sets the value ofUserPoolIdentityProviderFacebookProps.getClientId()
- Parameters:
clientId
- The client id recognized by Facebook APIs. This parameter is required.- Returns:
this
-
clientSecret
@Stability(Stable) public UserPoolIdentityProviderFacebookProps.Builder clientSecret(String clientSecret) Sets the value ofUserPoolIdentityProviderFacebookProps.getClientSecret()
- Parameters:
clientSecret
- The client secret to be accompanied with clientId for Facebook to authenticate the client. This parameter is required.- Returns:
this
-
apiVersion
@Stability(Stable) public UserPoolIdentityProviderFacebookProps.Builder apiVersion(String apiVersion) Sets the value ofUserPoolIdentityProviderFacebookProps.getApiVersion()
- Parameters:
apiVersion
- The Facebook API version to use.- Returns:
this
-
scopes
Sets the value ofUserPoolIdentityProviderFacebookProps.getScopes()
- Parameters:
scopes
- The list of Facebook permissions to obtain for getting access to the Facebook profile.- Returns:
this
-
userPool
@Stability(Stable) public UserPoolIdentityProviderFacebookProps.Builder userPool(IUserPool 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 UserPoolIdentityProviderFacebookProps.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:
build
in interfacesoftware.amazon.jsii.Builder<UserPoolIdentityProviderFacebookProps>
- Returns:
- a new instance of
UserPoolIdentityProviderFacebookProps
- Throws:
NullPointerException
- if any required attribute was not provided
-