Class CfnGCMChannelProps.Builder
java.lang.Object
software.amazon.awscdk.services.pinpoint.CfnGCMChannelProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGCMChannelProps>
- Enclosing interface:
CfnGCMChannelProps
@Stability(Stable)
public static final class CfnGCMChannelProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGCMChannelProps>
A builder for
CfnGCMChannelProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnGCMChannelProps.getApiKey()
applicationId
(String applicationId) Sets the value ofCfnGCMChannelProps.getApplicationId()
build()
Builds the configured instance.defaultAuthenticationMethod
(String defaultAuthenticationMethod) Sets the value ofCfnGCMChannelProps.getDefaultAuthenticationMethod()
Sets the value ofCfnGCMChannelProps.getEnabled()
enabled
(IResolvable enabled) Sets the value ofCfnGCMChannelProps.getEnabled()
serviceJson
(String serviceJson) Sets the value ofCfnGCMChannelProps.getServiceJson()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
applicationId
Sets the value ofCfnGCMChannelProps.getApplicationId()
- Parameters:
applicationId
- The unique identifier for the Amazon Pinpoint application that the GCM channel applies to. This parameter is required.- Returns:
this
-
apiKey
Sets the value ofCfnGCMChannelProps.getApiKey()
- Parameters:
apiKey
- The Web API key, also called the server key , that you received from Google to communicate with Google services.- Returns:
this
-
defaultAuthenticationMethod
@Stability(Stable) public CfnGCMChannelProps.Builder defaultAuthenticationMethod(String defaultAuthenticationMethod) Sets the value ofCfnGCMChannelProps.getDefaultAuthenticationMethod()
- Parameters:
defaultAuthenticationMethod
- The default authentication method used for GCM. Values are either "TOKEN" or "KEY". Defaults to "KEY".- Returns:
this
-
enabled
Sets the value ofCfnGCMChannelProps.getEnabled()
- Parameters:
enabled
- Specifies whether to enable the GCM channel for the Amazon Pinpoint application.- Returns:
this
-
enabled
Sets the value ofCfnGCMChannelProps.getEnabled()
- Parameters:
enabled
- Specifies whether to enable the GCM channel for the Amazon Pinpoint application.- Returns:
this
-
serviceJson
Sets the value ofCfnGCMChannelProps.getServiceJson()
- Parameters:
serviceJson
- The contents of the JSON file provided by Google during registration in order to generate an access token for authentication. For more information see Migrate from legacy FCM APIs to HTTP v1 .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGCMChannelProps>
- Returns:
- a new instance of
CfnGCMChannelProps
- Throws:
NullPointerException
- if any required attribute was not provided
-