Class IdentityPoolAuthenticationProviders.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.identitypool.IdentityPoolAuthenticationProviders.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<IdentityPoolAuthenticationProviders>
- Enclosing interface:
- IdentityPoolAuthenticationProviders
@Stability(Experimental)
public static final class IdentityPoolAuthenticationProviders.Builder
extends Object
implements software.amazon.jsii.Builder<IdentityPoolAuthenticationProviders>
A builder for
IdentityPoolAuthenticationProviders
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofIdentityPoolProviders.getAmazon()
Sets the value ofIdentityPoolProviders.getApple()
build()
Builds the configured instance.customProvider
(String customProvider) Sets the value ofIdentityPoolAuthenticationProviders.getCustomProvider()
Sets the value ofIdentityPoolProviders.getDigits()
facebook
(IdentityPoolFacebookLoginProvider facebook) Sets the value ofIdentityPoolProviders.getFacebook()
Sets the value ofIdentityPoolProviders.getGoogle()
openIdConnectProviders
(List<? extends IOpenIdConnectProvider> openIdConnectProviders) Sets the value ofIdentityPoolAuthenticationProviders.getOpenIdConnectProviders()
samlProviders
(List<? extends ISamlProvider> samlProviders) Sets the value ofIdentityPoolAuthenticationProviders.getSamlProviders()
twitter
(IdentityPoolTwitterLoginProvider twitter) Sets the value ofIdentityPoolProviders.getTwitter()
userPools
(List<? extends IUserPoolAuthenticationProvider> userPools) Sets the value ofIdentityPoolAuthenticationProviders.getUserPools()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
customProvider
@Stability(Experimental) public IdentityPoolAuthenticationProviders.Builder customProvider(String customProvider) Sets the value ofIdentityPoolAuthenticationProviders.getCustomProvider()
- Parameters:
customProvider
- The Developer Provider Name to associate with this Identity Pool.- Returns:
this
-
openIdConnectProviders
@Stability(Experimental) public IdentityPoolAuthenticationProviders.Builder openIdConnectProviders(List<? extends IOpenIdConnectProvider> openIdConnectProviders) Sets the value ofIdentityPoolAuthenticationProviders.getOpenIdConnectProviders()
- Parameters:
openIdConnectProviders
- The OpenIdConnect Provider associated with this Identity Pool.- Returns:
this
-
samlProviders
@Stability(Experimental) public IdentityPoolAuthenticationProviders.Builder samlProviders(List<? extends ISamlProvider> samlProviders) Sets the value ofIdentityPoolAuthenticationProviders.getSamlProviders()
- Parameters:
samlProviders
- The Security Assertion Markup Language Provider associated with this Identity Pool.- Returns:
this
-
userPools
@Stability(Experimental) public IdentityPoolAuthenticationProviders.Builder userPools(List<? extends IUserPoolAuthenticationProvider> userPools) Sets the value ofIdentityPoolAuthenticationProviders.getUserPools()
- Parameters:
userPools
- The User Pool Authentication Providers associated with this Identity Pool.- Returns:
this
-
amazon
@Stability(Experimental) public IdentityPoolAuthenticationProviders.Builder amazon(IdentityPoolAmazonLoginProvider amazon) Sets the value ofIdentityPoolProviders.getAmazon()
- Parameters:
amazon
- App Id for Amazon Identity Federation.- Returns:
this
-
apple
@Stability(Experimental) public IdentityPoolAuthenticationProviders.Builder apple(IdentityPoolAppleLoginProvider apple) Sets the value ofIdentityPoolProviders.getApple()
- Parameters:
apple
- Services Id for Apple Identity Federation.- Returns:
this
-
digits
@Stability(Experimental) public IdentityPoolAuthenticationProviders.Builder digits(IdentityPoolDigitsLoginProvider digits) Sets the value ofIdentityPoolProviders.getDigits()
- Parameters:
digits
- Consumer Key and Secret for Digits Identity Federation.- Returns:
this
-
facebook
@Stability(Experimental) public IdentityPoolAuthenticationProviders.Builder facebook(IdentityPoolFacebookLoginProvider facebook) Sets the value ofIdentityPoolProviders.getFacebook()
- Parameters:
facebook
- App Id for Facebook Identity Federation.- Returns:
this
-
google
@Stability(Experimental) public IdentityPoolAuthenticationProviders.Builder google(IdentityPoolGoogleLoginProvider google) Sets the value ofIdentityPoolProviders.getGoogle()
- Parameters:
google
- Client Id for Google Identity Federation.- Returns:
this
-
twitter
@Stability(Experimental) public IdentityPoolAuthenticationProviders.Builder twitter(IdentityPoolTwitterLoginProvider twitter) Sets the value ofIdentityPoolProviders.getTwitter()
- Parameters:
twitter
- Consumer Key and Secret for Twitter Identity Federation.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<IdentityPoolAuthenticationProviders>
- Returns:
- a new instance of
IdentityPoolAuthenticationProviders
- Throws:
NullPointerException
- if any required attribute was not provided
-