Class CfnAPNSChannelProps.Builder
java.lang.Object
software.amazon.awscdk.services.pinpoint.CfnAPNSChannelProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAPNSChannelProps>
- Enclosing interface:
CfnAPNSChannelProps
@Stability(Stable)
public static final class CfnAPNSChannelProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAPNSChannelProps>
A builder for
CfnAPNSChannelProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapplicationId
(String applicationId) Sets the value ofCfnAPNSChannelProps.getApplicationId()
build()
Builds the configured instance.Sets the value ofCfnAPNSChannelProps.getBundleId()
certificate
(String certificate) Sets the value ofCfnAPNSChannelProps.getCertificate()
defaultAuthenticationMethod
(String defaultAuthenticationMethod) Sets the value ofCfnAPNSChannelProps.getDefaultAuthenticationMethod()
Sets the value ofCfnAPNSChannelProps.getEnabled()
enabled
(IResolvable enabled) Sets the value ofCfnAPNSChannelProps.getEnabled()
privateKey
(String privateKey) Sets the value ofCfnAPNSChannelProps.getPrivateKey()
Sets the value ofCfnAPNSChannelProps.getTeamId()
Sets the value ofCfnAPNSChannelProps.getTokenKey()
tokenKeyId
(String tokenKeyId) Sets the value ofCfnAPNSChannelProps.getTokenKeyId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
applicationId
Sets the value ofCfnAPNSChannelProps.getApplicationId()
- Parameters:
applicationId
- The unique identifier for the Amazon Pinpoint application that the APNs channel applies to. This parameter is required.- Returns:
this
-
bundleId
Sets the value ofCfnAPNSChannelProps.getBundleId()
- Parameters:
bundleId
- The bundle identifier that's assigned to your iOS app. This identifier is used for APNs tokens.- Returns:
this
-
certificate
Sets the value ofCfnAPNSChannelProps.getCertificate()
- Parameters:
certificate
- The APNs client certificate that you received from Apple. Specify this value if you want Amazon Pinpoint to communicate with APNs by using an APNs certificate.- Returns:
this
-
defaultAuthenticationMethod
@Stability(Stable) public CfnAPNSChannelProps.Builder defaultAuthenticationMethod(String defaultAuthenticationMethod) Sets the value ofCfnAPNSChannelProps.getDefaultAuthenticationMethod()
- Parameters:
defaultAuthenticationMethod
- The default authentication method that you want Amazon Pinpoint to use when authenticating with APNs. Valid options arekey
orcertificate
.- Returns:
this
-
enabled
Sets the value ofCfnAPNSChannelProps.getEnabled()
- Parameters:
enabled
- Specifies whether to enable the APNs channel for the application.- Returns:
this
-
enabled
Sets the value ofCfnAPNSChannelProps.getEnabled()
- Parameters:
enabled
- Specifies whether to enable the APNs channel for the application.- Returns:
this
-
privateKey
Sets the value ofCfnAPNSChannelProps.getPrivateKey()
- Parameters:
privateKey
- The private key for the APNs client certificate that you want Amazon Pinpoint to use to communicate with APNs.- Returns:
this
-
teamId
Sets the value ofCfnAPNSChannelProps.getTeamId()
- Parameters:
teamId
- The identifier that's assigned to your Apple Developer Account team. This identifier is used for APNs tokens.- Returns:
this
-
tokenKey
Sets the value ofCfnAPNSChannelProps.getTokenKey()
- Parameters:
tokenKey
- The authentication key to use for APNs tokens.- Returns:
this
-
tokenKeyId
Sets the value ofCfnAPNSChannelProps.getTokenKeyId()
- Parameters:
tokenKeyId
- The key identifier that's assigned to your APNs signing key. Specify this value if you want Amazon Pinpoint to communicate with APNs by using APNs tokens.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAPNSChannelProps>
- Returns:
- a new instance of
CfnAPNSChannelProps
- Throws:
NullPointerException
- if any required attribute was not provided
-