Package software.amazon.awscdk.alexa.ask
Class CfnSkillProps.Builder
java.lang.Object
software.amazon.awscdk.alexa.ask.CfnSkillProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSkillProps>
- Enclosing interface:
CfnSkillProps
@Stability(Stable)
public static final class CfnSkillProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSkillProps>
A builder for
CfnSkillProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthenticationConfiguration
(CfnSkill.AuthenticationConfigurationProperty authenticationConfiguration) Sets the value ofCfnSkillProps.getAuthenticationConfiguration()
authenticationConfiguration
(IResolvable authenticationConfiguration) Sets the value ofCfnSkillProps.getAuthenticationConfiguration()
build()
Builds the configured instance.skillPackage
(CfnSkill.SkillPackageProperty skillPackage) Sets the value ofCfnSkillProps.getSkillPackage()
skillPackage
(IResolvable skillPackage) Sets the value ofCfnSkillProps.getSkillPackage()
Sets the value ofCfnSkillProps.getVendorId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authenticationConfiguration
@Stability(Stable) public CfnSkillProps.Builder authenticationConfiguration(IResolvable authenticationConfiguration) Sets the value ofCfnSkillProps.getAuthenticationConfiguration()
- Parameters:
authenticationConfiguration
- Login with Amazon (LWA) configuration used to authenticate with the Alexa service. This parameter is required. Only Login with Amazon clients created through the are supported. The client ID, client secret, and refresh token are required.- Returns:
this
-
authenticationConfiguration
@Stability(Stable) public CfnSkillProps.Builder authenticationConfiguration(CfnSkill.AuthenticationConfigurationProperty authenticationConfiguration) Sets the value ofCfnSkillProps.getAuthenticationConfiguration()
- Parameters:
authenticationConfiguration
- Login with Amazon (LWA) configuration used to authenticate with the Alexa service. This parameter is required. Only Login with Amazon clients created through the are supported. The client ID, client secret, and refresh token are required.- Returns:
this
-
skillPackage
Sets the value ofCfnSkillProps.getSkillPackage()
- Parameters:
skillPackage
- Configuration for the skill package that contains the components of the Alexa skill. This parameter is required. Skill packages are retrieved from an Amazon S3 bucket and key and used to create and update the skill. For more information about the skill package format, see the .- Returns:
this
-
skillPackage
@Stability(Stable) public CfnSkillProps.Builder skillPackage(CfnSkill.SkillPackageProperty skillPackage) Sets the value ofCfnSkillProps.getSkillPackage()
- Parameters:
skillPackage
- Configuration for the skill package that contains the components of the Alexa skill. This parameter is required. Skill packages are retrieved from an Amazon S3 bucket and key and used to create and update the skill. For more information about the skill package format, see the .- Returns:
this
-
vendorId
Sets the value ofCfnSkillProps.getVendorId()
- Parameters:
vendorId
- The vendor ID associated with the Amazon developer account that will host the skill. This parameter is required. Details for retrieving the vendor ID are in . The provided LWA credentials must be linked to the developer account associated with this vendor ID.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSkillProps>
- Returns:
- a new instance of
CfnSkillProps
- Throws:
NullPointerException
- if any required attribute was not provided
-