Class IdentityPoolTwitterLoginProvider.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.identitypool.alpha.IdentityPoolTwitterLoginProvider.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<IdentityPoolTwitterLoginProvider>
- Enclosing interface:
IdentityPoolTwitterLoginProvider
@Stability(Experimental)
public static final class IdentityPoolTwitterLoginProvider.Builder
extends Object
implements software.amazon.jsii.Builder<IdentityPoolTwitterLoginProvider>
A builder for
IdentityPoolTwitterLoginProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.consumerKey
(String consumerKey) Sets the value ofIdentityPoolTwitterLoginProvider.getConsumerKey()
consumerSecret
(String consumerSecret) Sets the value ofIdentityPoolTwitterLoginProvider.getConsumerSecret()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
consumerKey
@Stability(Experimental) public IdentityPoolTwitterLoginProvider.Builder consumerKey(String consumerKey) Sets the value ofIdentityPoolTwitterLoginProvider.getConsumerKey()
- Parameters:
consumerKey
- App Id for Twitter Identity Federation. This parameter is required.- Returns:
this
-
consumerSecret
@Stability(Experimental) public IdentityPoolTwitterLoginProvider.Builder consumerSecret(String consumerSecret) Sets the value ofIdentityPoolTwitterLoginProvider.getConsumerSecret()
- Parameters:
consumerSecret
- App Secret for Twitter Identity Federation. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<IdentityPoolTwitterLoginProvider>
- Returns:
- a new instance of
IdentityPoolTwitterLoginProvider
- Throws:
NullPointerException
- if any required attribute was not provided
-