Class CfnAgent.CustomPromptInputProperty.Builder
java.lang.Object
software.amazon.awscdk.services.quicksight.CfnAgent.CustomPromptInputProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAgent.CustomPromptInputProperty>
- Enclosing interface:
CfnAgent.CustomPromptInputProperty
@Stability(Stable)
public static final class CfnAgent.CustomPromptInputProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAgent.CustomPromptInputProperty>
A builder for
CfnAgent.CustomPromptInputProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.existingPrompt(IResolvable existingPrompt) Sets the value ofCfnAgent.CustomPromptInputProperty.getExistingPrompt()existingPrompt(CfnAgent.CustomPromptProfileProperty existingPrompt) Sets the value ofCfnAgent.CustomPromptInputProperty.getExistingPrompt()newPrompt(IResolvable newPrompt) Sets the value ofCfnAgent.CustomPromptInputProperty.getNewPrompt()Sets the value ofCfnAgent.CustomPromptInputProperty.getNewPrompt()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
existingPrompt
@Stability(Stable) public CfnAgent.CustomPromptInputProperty.Builder existingPrompt(IResolvable existingPrompt) Sets the value ofCfnAgent.CustomPromptInputProperty.getExistingPrompt()- Parameters:
existingPrompt- Reference to an existing custom prompt profile.- Returns:
this
-
existingPrompt
@Stability(Stable) public CfnAgent.CustomPromptInputProperty.Builder existingPrompt(CfnAgent.CustomPromptProfileProperty existingPrompt) Sets the value ofCfnAgent.CustomPromptInputProperty.getExistingPrompt()- Parameters:
existingPrompt- Reference to an existing custom prompt profile.- Returns:
this
-
newPrompt
@Stability(Stable) public CfnAgent.CustomPromptInputProperty.Builder newPrompt(IResolvable newPrompt) Sets the value ofCfnAgent.CustomPromptInputProperty.getNewPrompt()- Parameters:
newPrompt- Parameters for creating a new custom prompt configuration.- Returns:
this
-
newPrompt
@Stability(Stable) public CfnAgent.CustomPromptInputProperty.Builder newPrompt(CfnAgent.CustomPromptInputParametersProperty newPrompt) Sets the value ofCfnAgent.CustomPromptInputProperty.getNewPrompt()- Parameters:
newPrompt- Parameters for creating a new custom prompt configuration.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAgent.CustomPromptInputProperty>- Returns:
- a new instance of
CfnAgent.CustomPromptInputProperty - Throws:
NullPointerException- if any required attribute was not provided
-