Class CfnAgentProps.Builder
java.lang.Object
software.amazon.awscdk.services.quicksight.CfnAgentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAgentProps>
- Enclosing interface:
CfnAgentProps
@Stability(Stable)
public static final class CfnAgentProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAgentProps>
A builder for
CfnAgentProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactionConnectors(List<String> actionConnectors) Sets the value ofCfnAgentProps.getActionConnectors()Sets the value ofCfnAgentProps.getAgentId()agentLifecycle(String agentLifecycle) Sets the value ofCfnAgentProps.getAgentLifecycle()awsAccountId(String awsAccountId) Sets the value ofCfnAgentProps.getAwsAccountId()build()Builds the configured instance.customPromptInput(IResolvable customPromptInput) Sets the value ofCfnAgentProps.getCustomPromptInput()customPromptInput(CfnAgent.CustomPromptInputProperty customPromptInput) Sets the value ofCfnAgentProps.getCustomPromptInput()description(String description) Sets the value ofCfnAgentProps.getDescription()Sets the value ofCfnAgentProps.getIconId()Sets the value ofCfnAgentProps.getName()Sets the value ofCfnAgentProps.getSpaces()starterPrompts(List<String> starterPrompts) Sets the value ofCfnAgentProps.getStarterPrompts()tags(List<? extends CfnAgent.AgentTagProperty> tags) Sets the value ofCfnAgentProps.getTags()welcomeMessage(String welcomeMessage) Sets the value ofCfnAgentProps.getWelcomeMessage()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
agentId
Sets the value ofCfnAgentProps.getAgentId()- Parameters:
agentId- The unique identifier for the agent. This parameter is required.- Returns:
this
-
awsAccountId
Sets the value ofCfnAgentProps.getAwsAccountId()- Parameters:
awsAccountId- The ID of the Amazon Web Services account where the agent is being created. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnAgentProps.getName()- Parameters:
name- The display name of the agent. This parameter is required.- Returns:
this
-
actionConnectors
Sets the value ofCfnAgentProps.getActionConnectors()- Parameters:
actionConnectors- A list of ActionConnector ARNs (max 10) attached to the agent.- Returns:
this
-
agentLifecycle
Sets the value ofCfnAgentProps.getAgentLifecycle()- Parameters:
agentLifecycle- The lifecycle stage of the agent. PREVIEW or PUBLISHED.- Returns:
this
-
customPromptInput
Sets the value ofCfnAgentProps.getCustomPromptInput()- Parameters:
customPromptInput- Custom prompt configuration. Specify either ExistingPrompt or NewPrompt.- Returns:
this
-
customPromptInput
@Stability(Stable) public CfnAgentProps.Builder customPromptInput(CfnAgent.CustomPromptInputProperty customPromptInput) Sets the value ofCfnAgentProps.getCustomPromptInput()- Parameters:
customPromptInput- Custom prompt configuration. Specify either ExistingPrompt or NewPrompt.- Returns:
this
-
description
Sets the value ofCfnAgentProps.getDescription()- Parameters:
description- A description of the agent.- Returns:
this
-
iconId
Sets the value ofCfnAgentProps.getIconId()- Parameters:
iconId- The icon identifier for the agent.- Returns:
this
-
spaces
Sets the value ofCfnAgentProps.getSpaces()- Parameters:
spaces- A list of Space ARNs (max 10) attached to the agent.- Returns:
this
-
starterPrompts
Sets the value ofCfnAgentProps.getStarterPrompts()- Parameters:
starterPrompts- A list of up to 3 starter prompts displayed to users.- Returns:
this
-
tags
@Stability(Stable) public CfnAgentProps.Builder tags(List<? extends CfnAgent.AgentTagProperty> tags) Sets the value ofCfnAgentProps.getTags()- Parameters:
tags- A list of key-value pairs to associate with the agent resource.- Returns:
this
-
welcomeMessage
Sets the value ofCfnAgentProps.getWelcomeMessage()- Parameters:
welcomeMessage- The welcome message displayed when a user opens the agent.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAgentProps>- Returns:
- a new instance of
CfnAgentProps - Throws:
NullPointerException- if any required attribute was not provided
-