Class CfnGCMChannelMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.pinpoint.CfnGCMChannelMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGCMChannelMixinProps>
- Enclosing interface:
CfnGCMChannelMixinProps
@Stability(Stable)
public static final class CfnGCMChannelMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGCMChannelMixinProps>
A builder for
CfnGCMChannelMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnGCMChannelMixinProps.getApiKey()applicationId(String applicationId) Sets the value ofCfnGCMChannelMixinProps.getApplicationId()build()Builds the configured instance.defaultAuthenticationMethod(String defaultAuthenticationMethod) Sets the value ofCfnGCMChannelMixinProps.getDefaultAuthenticationMethod()Sets the value ofCfnGCMChannelMixinProps.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnGCMChannelMixinProps.getEnabled()serviceJson(String serviceJson) Sets the value ofCfnGCMChannelMixinProps.getServiceJson()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiKey
Sets the value ofCfnGCMChannelMixinProps.getApiKey()- Parameters:
apiKey- The Web API key, also called the server key , that you received from Google to communicate with Google services.- Returns:
this
-
applicationId
Sets the value ofCfnGCMChannelMixinProps.getApplicationId()- Parameters:
applicationId- The unique identifier for the Amazon Pinpoint application that the GCM channel applies to.- Returns:
this
-
defaultAuthenticationMethod
@Stability(Stable) public CfnGCMChannelMixinProps.Builder defaultAuthenticationMethod(String defaultAuthenticationMethod) Sets the value ofCfnGCMChannelMixinProps.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 ofCfnGCMChannelMixinProps.getEnabled()- Parameters:
enabled- Specifies whether to enable the GCM channel for the Amazon Pinpoint application.- Returns:
this
-
enabled
Sets the value ofCfnGCMChannelMixinProps.getEnabled()- Parameters:
enabled- Specifies whether to enable the GCM channel for the Amazon Pinpoint application.- Returns:
this
-
serviceJson
Sets the value ofCfnGCMChannelMixinProps.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnGCMChannelMixinProps>- Returns:
- a new instance of
CfnGCMChannelMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-