AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
FunctionDefinition.h
1
6#pragma once
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>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockAgentRuntime {
23namespace Model {
24
33 public:
34 AWS_BEDROCKAGENTRUNTIME_API FunctionDefinition() = default;
37 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetDescription() const { return m_description; }
44 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
45 template <typename DescriptionT = Aws::String>
47 m_descriptionHasBeenSet = true;
48 m_description = std::forward<DescriptionT>(value);
49 }
50 template <typename DescriptionT = Aws::String>
52 SetDescription(std::forward<DescriptionT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::Map<Aws::String, ParameterDetail>& GetParameters() const { return m_parameters; }
81 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
82 template <typename ParametersT = Aws::Map<Aws::String, ParameterDetail>>
83 void SetParameters(ParametersT&& value) {
84 m_parametersHasBeenSet = true;
85 m_parameters = std::forward<ParametersT>(value);
86 }
87 template <typename ParametersT = Aws::Map<Aws::String, ParameterDetail>>
89 SetParameters(std::forward<ParametersT>(value));
90 return *this;
91 }
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));
96 return *this;
97 }
99
101
105 inline RequireConfirmation GetRequireConfirmation() const { return m_requireConfirmation; }
106 inline bool RequireConfirmationHasBeenSet() const { return m_requireConfirmationHasBeenSet; }
108 m_requireConfirmationHasBeenSet = true;
109 m_requireConfirmation = value;
110 }
113 return *this;
114 }
116 private:
117 Aws::String m_description;
118
119 Aws::String m_name;
120
122
124 bool m_descriptionHasBeenSet = false;
125 bool m_nameHasBeenSet = false;
126 bool m_parametersHasBeenSet = false;
127 bool m_requireConfirmationHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace BedrockAgentRuntime
132} // namespace Aws
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)
FunctionDefinition & WithDescription(DescriptionT &&value)
FunctionDefinition & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
const Aws::Map< Aws::String, ParameterDetail > & GetParameters() const
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
FunctionDefinition & WithRequireConfirmation(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