AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
AgentActionGroup.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/APISchema.h>
9#include <aws/bedrock-agent-runtime/model/ActionGroupExecutor.h>
10#include <aws/bedrock-agent-runtime/model/ActionGroupSignature.h>
11#include <aws/bedrock-agent-runtime/model/FunctionSchema.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace BedrockAgentRuntime {
25namespace Model {
26
34 public:
35 AWS_BEDROCKAGENTRUNTIME_API AgentActionGroup() = default;
38 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
46 inline const ActionGroupExecutor& GetActionGroupExecutor() const { return m_actionGroupExecutor; }
47 inline bool ActionGroupExecutorHasBeenSet() const { return m_actionGroupExecutorHasBeenSet; }
48 template <typename ActionGroupExecutorT = ActionGroupExecutor>
50 m_actionGroupExecutorHasBeenSet = true;
51 m_actionGroupExecutor = std::forward<ActionGroupExecutorT>(value);
52 }
53 template <typename ActionGroupExecutorT = ActionGroupExecutor>
55 SetActionGroupExecutor(std::forward<ActionGroupExecutorT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetActionGroupName() const { return m_actionGroupName; }
65 inline bool ActionGroupNameHasBeenSet() const { return m_actionGroupNameHasBeenSet; }
66 template <typename ActionGroupNameT = Aws::String>
68 m_actionGroupNameHasBeenSet = true;
69 m_actionGroupName = std::forward<ActionGroupNameT>(value);
70 }
71 template <typename ActionGroupNameT = Aws::String>
73 SetActionGroupName(std::forward<ActionGroupNameT>(value));
74 return *this;
75 }
77
79
86 inline const APISchema& GetApiSchema() const { return m_apiSchema; }
87 inline bool ApiSchemaHasBeenSet() const { return m_apiSchemaHasBeenSet; }
88 template <typename ApiSchemaT = APISchema>
89 void SetApiSchema(ApiSchemaT&& value) {
90 m_apiSchemaHasBeenSet = true;
91 m_apiSchema = std::forward<ApiSchemaT>(value);
92 }
93 template <typename ApiSchemaT = APISchema>
95 SetApiSchema(std::forward<ApiSchemaT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetDescription() const { return m_description; }
105 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
106 template <typename DescriptionT = Aws::String>
108 m_descriptionHasBeenSet = true;
109 m_description = std::forward<DescriptionT>(value);
110 }
111 template <typename DescriptionT = Aws::String>
113 SetDescription(std::forward<DescriptionT>(value));
114 return *this;
115 }
117
119
123 inline const FunctionSchema& GetFunctionSchema() const { return m_functionSchema; }
124 inline bool FunctionSchemaHasBeenSet() const { return m_functionSchemaHasBeenSet; }
125 template <typename FunctionSchemaT = FunctionSchema>
127 m_functionSchemaHasBeenSet = true;
128 m_functionSchema = std::forward<FunctionSchemaT>(value);
129 }
130 template <typename FunctionSchemaT = FunctionSchema>
132 SetFunctionSchema(std::forward<FunctionSchemaT>(value));
133 return *this;
134 }
136
138
163 inline ActionGroupSignature GetParentActionGroupSignature() const { return m_parentActionGroupSignature; }
164 inline bool ParentActionGroupSignatureHasBeenSet() const { return m_parentActionGroupSignatureHasBeenSet; }
166 m_parentActionGroupSignatureHasBeenSet = true;
167 m_parentActionGroupSignature = value;
168 }
171 return *this;
172 }
174
176
186 return m_parentActionGroupSignatureParams;
187 }
188 inline bool ParentActionGroupSignatureParamsHasBeenSet() const { return m_parentActionGroupSignatureParamsHasBeenSet; }
189 template <typename ParentActionGroupSignatureParamsT = Aws::Map<Aws::String, Aws::String>>
191 m_parentActionGroupSignatureParamsHasBeenSet = true;
192 m_parentActionGroupSignatureParams = std::forward<ParentActionGroupSignatureParamsT>(value);
193 }
194 template <typename ParentActionGroupSignatureParamsT = Aws::Map<Aws::String, Aws::String>>
196 SetParentActionGroupSignatureParams(std::forward<ParentActionGroupSignatureParamsT>(value));
197 return *this;
198 }
199 template <typename ParentActionGroupSignatureParamsKeyT = Aws::String, typename ParentActionGroupSignatureParamsValueT = Aws::String>
202 m_parentActionGroupSignatureParamsHasBeenSet = true;
203 m_parentActionGroupSignatureParams.emplace(std::forward<ParentActionGroupSignatureParamsKeyT>(key),
204 std::forward<ParentActionGroupSignatureParamsValueT>(value));
205 return *this;
206 }
208 private:
209 ActionGroupExecutor m_actionGroupExecutor;
210
211 Aws::String m_actionGroupName;
212
213 APISchema m_apiSchema;
214
215 Aws::String m_description;
216
217 FunctionSchema m_functionSchema;
218
219 ActionGroupSignature m_parentActionGroupSignature{ActionGroupSignature::NOT_SET};
220
221 Aws::Map<Aws::String, Aws::String> m_parentActionGroupSignatureParams;
222 bool m_actionGroupExecutorHasBeenSet = false;
223 bool m_actionGroupNameHasBeenSet = false;
224 bool m_apiSchemaHasBeenSet = false;
225 bool m_descriptionHasBeenSet = false;
226 bool m_functionSchemaHasBeenSet = false;
227 bool m_parentActionGroupSignatureHasBeenSet = false;
228 bool m_parentActionGroupSignatureParamsHasBeenSet = false;
229};
230
231} // namespace Model
232} // namespace BedrockAgentRuntime
233} // namespace Aws
void SetActionGroupName(ActionGroupNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetParentActionGroupSignatureParams() const
void SetActionGroupExecutor(ActionGroupExecutorT &&value)
AgentActionGroup & WithActionGroupName(ActionGroupNameT &&value)
const ActionGroupExecutor & GetActionGroupExecutor() const
AgentActionGroup & WithParentActionGroupSignatureParams(ParentActionGroupSignatureParamsT &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AgentActionGroup & WithActionGroupExecutor(ActionGroupExecutorT &&value)
AWS_BEDROCKAGENTRUNTIME_API AgentActionGroup()=default
AgentActionGroup & WithDescription(DescriptionT &&value)
void SetParentActionGroupSignature(ActionGroupSignature value)
AgentActionGroup & WithFunctionSchema(FunctionSchemaT &&value)
AgentActionGroup & WithApiSchema(ApiSchemaT &&value)
ActionGroupSignature GetParentActionGroupSignature() const
AgentActionGroup & AddParentActionGroupSignatureParams(ParentActionGroupSignatureParamsKeyT &&key, ParentActionGroupSignatureParamsValueT &&value)
void SetParentActionGroupSignatureParams(ParentActionGroupSignatureParamsT &&value)
AWS_BEDROCKAGENTRUNTIME_API AgentActionGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API AgentActionGroup(Aws::Utils::Json::JsonView jsonValue)
AgentActionGroup & WithParentActionGroupSignature(ActionGroupSignature 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