Class CfnAgent.FunctionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnAgent.FunctionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAgent.FunctionProperty>
- Enclosing interface:
CfnAgent.FunctionProperty
@Stability(Stable)
public static final class CfnAgent.FunctionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAgent.FunctionProperty>
A builder for
CfnAgent.FunctionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofCfnAgent.FunctionProperty.getDescription()
Sets the value ofCfnAgent.FunctionProperty.getName()
parameters
(Map<String, ? extends Object> parameters) Sets the value ofCfnAgent.FunctionProperty.getParameters()
parameters
(IResolvable parameters) Sets the value ofCfnAgent.FunctionProperty.getParameters()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnAgent.FunctionProperty.getName()
- Parameters:
name
- A name for the function. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnAgent.FunctionProperty.getDescription()
- Parameters:
description
- A description of the function and its purpose.- Returns:
this
-
parameters
Sets the value ofCfnAgent.FunctionProperty.getParameters()
- Parameters:
parameters
- The parameters that the agent elicits from the user to fulfill the function.- Returns:
this
-
parameters
@Stability(Stable) public CfnAgent.FunctionProperty.Builder parameters(Map<String, ? extends Object> parameters) Sets the value ofCfnAgent.FunctionProperty.getParameters()
- Parameters:
parameters
- The parameters that the agent elicits from the user to fulfill the function.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAgent.FunctionProperty>
- Returns:
- a new instance of
CfnAgent.FunctionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-