Class CfnPromptProps.Builder
java.lang.Object
software.amazon.awscdk.services.connect.CfnPromptProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPromptProps>
- Enclosing interface:
CfnPromptProps
@Stability(Stable)
public static final class CfnPromptProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPromptProps>
A builder for
CfnPromptProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofCfnPromptProps.getDescription()
instanceArn
(String instanceArn) Sets the value ofCfnPromptProps.getInstanceArn()
Sets the value ofCfnPromptProps.getName()
Sets the value ofCfnPromptProps.getS3Uri()
Sets the value ofCfnPromptProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceArn
Sets the value ofCfnPromptProps.getInstanceArn()
- Parameters:
instanceArn
- The identifier of the Amazon Connect instance. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnPromptProps.getName()
- Parameters:
name
- The name of the prompt. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnPromptProps.getDescription()
- Parameters:
description
- The description of the prompt.- Returns:
this
-
s3Uri
Sets the value ofCfnPromptProps.getS3Uri()
- Parameters:
s3Uri
- The URI for the S3 bucket where the prompt is stored. This property is required when you create a prompt.- Returns:
this
-
tags
Sets the value ofCfnPromptProps.getTags()
- Parameters:
tags
- The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPromptProps>
- Returns:
- a new instance of
CfnPromptProps
- Throws:
NullPointerException
- if any required attribute was not provided
-