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(Stable)
public static final class IdentityPoolAuthenticationProviders.Builder
extends Object
implements software.amazon.jsii.Builder<IdentityPoolAuthenticationProviders>
A builder for
IdentityPoolAuthenticationProviders-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofIdentityPoolAuthenticationProviders.getAmazon()Sets the value ofIdentityPoolAuthenticationProviders.getApple()build()Builds the configured instance.customProvider(String customProvider) Sets the value ofIdentityPoolAuthenticationProviders.getCustomProvider()facebook(IdentityPoolFacebookLoginProvider facebook) Sets the value ofIdentityPoolAuthenticationProviders.getFacebook()Sets the value ofIdentityPoolAuthenticationProviders.getGoogle()openIdConnectProviders(List<? extends IOIDCProviderRef> openIdConnectProviders) Sets the value ofIdentityPoolAuthenticationProviders.getOpenIdConnectProviders()samlProviders(List<? extends ISAMLProviderRef> samlProviders) Sets the value ofIdentityPoolAuthenticationProviders.getSamlProviders()twitter(IdentityPoolTwitterLoginProvider twitter) Sets the value ofIdentityPoolAuthenticationProviders.getTwitter()userPools(List<? extends IUserPoolAuthenticationProvider> userPools) Sets the value ofIdentityPoolAuthenticationProviders.getUserPools()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
amazon
@Stability(Stable) public IdentityPoolAuthenticationProviders.Builder amazon(IdentityPoolAmazonLoginProvider amazon) Sets the value ofIdentityPoolAuthenticationProviders.getAmazon()- Parameters:
amazon- The Amazon Authentication Provider associated with this Identity Pool.- Returns:
this
-
apple
@Stability(Stable) public IdentityPoolAuthenticationProviders.Builder apple(IdentityPoolAppleLoginProvider apple) Sets the value ofIdentityPoolAuthenticationProviders.getApple()- Parameters:
apple- The Apple Authentication Provider associated with this Identity Pool.- Returns:
this
-
customProvider
@Stability(Stable) 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
-
facebook
@Stability(Stable) public IdentityPoolAuthenticationProviders.Builder facebook(IdentityPoolFacebookLoginProvider facebook) Sets the value ofIdentityPoolAuthenticationProviders.getFacebook()- Parameters:
facebook- The Facebook Authentication Provider associated with this Identity Pool.- Returns:
this
-
google
@Stability(Stable) public IdentityPoolAuthenticationProviders.Builder google(IdentityPoolGoogleLoginProvider google) Sets the value ofIdentityPoolAuthenticationProviders.getGoogle()- Parameters:
google- The Google Authentication Provider associated with this Identity Pool.- Returns:
this
-
openIdConnectProviders
@Stability(Stable) public IdentityPoolAuthenticationProviders.Builder openIdConnectProviders(List<? extends IOIDCProviderRef> openIdConnectProviders) Sets the value ofIdentityPoolAuthenticationProviders.getOpenIdConnectProviders()- Parameters:
openIdConnectProviders- The OpenIdConnect Provider associated with this Identity Pool.- Returns:
this
-
samlProviders
@Stability(Stable) public IdentityPoolAuthenticationProviders.Builder samlProviders(List<? extends ISAMLProviderRef> samlProviders) Sets the value ofIdentityPoolAuthenticationProviders.getSamlProviders()- Parameters:
samlProviders- The Security Assertion Markup Language provider associated with this Identity Pool.- Returns:
this
-
twitter
@Stability(Stable) public IdentityPoolAuthenticationProviders.Builder twitter(IdentityPoolTwitterLoginProvider twitter) Sets the value ofIdentityPoolAuthenticationProviders.getTwitter()- Parameters:
twitter- The Twitter Authentication Provider associated with this Identity Pool.- Returns:
this
-
userPools
@Stability(Stable) 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
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<IdentityPoolAuthenticationProviders>- Returns:
- a new instance of
IdentityPoolAuthenticationProviders - Throws:
NullPointerException- if any required attribute was not provided
-