7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/ParameterDetail.h>
9#include <aws/bedrock-agent-runtime/model/RequireConfirmation.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
22namespace BedrockAgentRuntime {
45 template <
typename DescriptionT = Aws::String>
47 m_descriptionHasBeenSet =
true;
48 m_description = std::forward<DescriptionT>(value);
50 template <
typename DescriptionT = Aws::String>
63 template <
typename NameT = Aws::String>
65 m_nameHasBeenSet =
true;
66 m_name = std::forward<NameT>(value);
68 template <
typename NameT = Aws::String>
70 SetName(std::forward<NameT>(value));
82 template <
typename ParametersT = Aws::Map<Aws::String, ParameterDetail>>
84 m_parametersHasBeenSet =
true;
85 m_parameters = std::forward<ParametersT>(value);
87 template <
typename ParametersT = Aws::Map<Aws::String, ParameterDetail>>
92 template <
typename ParametersKeyT = Aws::String,
typename ParametersValueT = ParameterDetail>
94 m_parametersHasBeenSet =
true;
95 m_parameters.emplace(std::forward<ParametersKeyT>(
key), std::forward<ParametersValueT>(value));
108 m_requireConfirmationHasBeenSet =
true;
109 m_requireConfirmation = value;
124 bool m_descriptionHasBeenSet =
false;
125 bool m_nameHasBeenSet =
false;
126 bool m_parametersHasBeenSet =
false;
127 bool m_requireConfirmationHasBeenSet =
false;
AWS_BEDROCKAGENTRUNTIME_API FunctionDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API FunctionDefinition()=default
AWS_BEDROCKAGENTRUNTIME_API FunctionDefinition(Aws::Utils::Json::JsonView jsonValue)
FunctionDefinition & WithParameters(ParametersT &&value)
bool DescriptionHasBeenSet() const
RequireConfirmation GetRequireConfirmation() const
bool RequireConfirmationHasBeenSet() const
FunctionDefinition & WithDescription(DescriptionT &&value)
bool ParametersHasBeenSet() const
void SetParameters(ParametersT &&value)
FunctionDefinition & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
const Aws::String & GetDescription() const
FunctionDefinition & WithName(NameT &&value)
const Aws::String & GetName() const
const Aws::Map< Aws::String, ParameterDetail > & GetParameters() const
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
FunctionDefinition & WithRequireConfirmation(RequireConfirmation value)
void SetName(NameT &&value)
bool NameHasBeenSet() const
void SetDescription(DescriptionT &&value)
void SetRequireConfirmation(RequireConfirmation value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue