Class UserPoolIdentityProviderAppleProps.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.UserPoolIdentityProviderAppleProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<UserPoolIdentityProviderAppleProps>
- Enclosing interface:
UserPoolIdentityProviderAppleProps
@Stability(Stable)
public static final class UserPoolIdentityProviderAppleProps.Builder
extends Object
implements software.amazon.jsii.Builder<UserPoolIdentityProviderAppleProps>
A builder for
UserPoolIdentityProviderAppleProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionattributeMapping
(AttributeMapping attributeMapping) Sets the value ofUserPoolIdentityProviderProps.getAttributeMapping()
build()
Builds the configured instance.Sets the value ofUserPoolIdentityProviderAppleProps.getClientId()
Sets the value ofUserPoolIdentityProviderAppleProps.getKeyId()
privateKey
(String privateKey) Deprecated.use privateKeyValueprivateKeyValue
(SecretValue privateKeyValue) Sets the value ofUserPoolIdentityProviderAppleProps.getPrivateKeyValue()
Sets the value ofUserPoolIdentityProviderAppleProps.getScopes()
Sets the value ofUserPoolIdentityProviderAppleProps.getTeamId()
Sets the value ofUserPoolIdentityProviderProps.getUserPool()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clientId
Sets the value ofUserPoolIdentityProviderAppleProps.getClientId()
- Parameters:
clientId
- The client id recognized by Apple APIs. This parameter is required.- Returns:
this
-
keyId
Sets the value ofUserPoolIdentityProviderAppleProps.getKeyId()
- Parameters:
keyId
- The keyId (of the same key, which content has to be later supplied asprivateKey
) for Apple APIs to authenticate the client. This parameter is required.- Returns:
this
-
teamId
Sets the value ofUserPoolIdentityProviderAppleProps.getTeamId()
- Parameters:
teamId
- The teamId for Apple APIs to authenticate the client. This parameter is required.- Returns:
this
-
privateKey
@Stability(Deprecated) @Deprecated public UserPoolIdentityProviderAppleProps.Builder privateKey(String privateKey) Deprecated.use privateKeyValueSets the value ofUserPoolIdentityProviderAppleProps.getPrivateKey()
- Parameters:
privateKey
- The privateKey content for Apple APIs to authenticate the client.- Returns:
this
-
privateKeyValue
@Stability(Stable) public UserPoolIdentityProviderAppleProps.Builder privateKeyValue(SecretValue privateKeyValue) Sets the value ofUserPoolIdentityProviderAppleProps.getPrivateKeyValue()
- Parameters:
privateKeyValue
- The privateKey content for Apple APIs to authenticate the client.- Returns:
this
-
scopes
Sets the value ofUserPoolIdentityProviderAppleProps.getScopes()
- Parameters:
scopes
- The list of apple permissions to obtain for getting access to the apple 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 UserPoolIdentityProviderAppleProps.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<UserPoolIdentityProviderAppleProps>
- Returns:
- a new instance of
UserPoolIdentityProviderAppleProps
- Throws:
NullPointerException
- if any required attribute was not provided
-