AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/ActionGroupExecutor.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/bedrock-agent-runtime/model/APISchema.h>
11#include <aws/bedrock-agent-runtime/model/FunctionSchema.h>
12#include <aws/bedrock-agent-runtime/model/ActionGroupSignature.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace BedrockAgentRuntime
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_BEDROCKAGENTRUNTIME_API AgentActionGroup() = default;
41 AWS_BEDROCKAGENTRUNTIME_API AgentActionGroup(Aws::Utils::Json::JsonView jsonValue);
42 AWS_BEDROCKAGENTRUNTIME_API AgentActionGroup& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
52 inline const ActionGroupExecutor& GetActionGroupExecutor() const { return m_actionGroupExecutor; }
53 inline bool ActionGroupExecutorHasBeenSet() const { return m_actionGroupExecutorHasBeenSet; }
54 template<typename ActionGroupExecutorT = ActionGroupExecutor>
55 void SetActionGroupExecutor(ActionGroupExecutorT&& value) { m_actionGroupExecutorHasBeenSet = true; m_actionGroupExecutor = std::forward<ActionGroupExecutorT>(value); }
56 template<typename ActionGroupExecutorT = ActionGroupExecutor>
57 AgentActionGroup& WithActionGroupExecutor(ActionGroupExecutorT&& value) { SetActionGroupExecutor(std::forward<ActionGroupExecutorT>(value)); return *this;}
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>
67 void SetActionGroupName(ActionGroupNameT&& value) { m_actionGroupNameHasBeenSet = true; m_actionGroupName = std::forward<ActionGroupNameT>(value); }
68 template<typename ActionGroupNameT = Aws::String>
69 AgentActionGroup& WithActionGroupName(ActionGroupNameT&& value) { SetActionGroupName(std::forward<ActionGroupNameT>(value)); return *this;}
71
73
80 inline const APISchema& GetApiSchema() const { return m_apiSchema; }
81 inline bool ApiSchemaHasBeenSet() const { return m_apiSchemaHasBeenSet; }
82 template<typename ApiSchemaT = APISchema>
83 void SetApiSchema(ApiSchemaT&& value) { m_apiSchemaHasBeenSet = true; m_apiSchema = std::forward<ApiSchemaT>(value); }
84 template<typename ApiSchemaT = APISchema>
85 AgentActionGroup& WithApiSchema(ApiSchemaT&& value) { SetApiSchema(std::forward<ApiSchemaT>(value)); return *this;}
87
89
92 inline const Aws::String& GetDescription() const { return m_description; }
93 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
94 template<typename DescriptionT = Aws::String>
95 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
96 template<typename DescriptionT = Aws::String>
97 AgentActionGroup& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
99
101
105 inline const FunctionSchema& GetFunctionSchema() const { return m_functionSchema; }
106 inline bool FunctionSchemaHasBeenSet() const { return m_functionSchemaHasBeenSet; }
107 template<typename FunctionSchemaT = FunctionSchema>
108 void SetFunctionSchema(FunctionSchemaT&& value) { m_functionSchemaHasBeenSet = true; m_functionSchema = std::forward<FunctionSchemaT>(value); }
109 template<typename FunctionSchemaT = FunctionSchema>
110 AgentActionGroup& WithFunctionSchema(FunctionSchemaT&& value) { SetFunctionSchema(std::forward<FunctionSchemaT>(value)); return *this;}
112
114
139 inline ActionGroupSignature GetParentActionGroupSignature() const { return m_parentActionGroupSignature; }
140 inline bool ParentActionGroupSignatureHasBeenSet() const { return m_parentActionGroupSignatureHasBeenSet; }
141 inline void SetParentActionGroupSignature(ActionGroupSignature value) { m_parentActionGroupSignatureHasBeenSet = true; m_parentActionGroupSignature = value; }
144
146
155 inline const Aws::Map<Aws::String, Aws::String>& GetParentActionGroupSignatureParams() const { return m_parentActionGroupSignatureParams; }
156 inline bool ParentActionGroupSignatureParamsHasBeenSet() const { return m_parentActionGroupSignatureParamsHasBeenSet; }
157 template<typename ParentActionGroupSignatureParamsT = Aws::Map<Aws::String, Aws::String>>
158 void SetParentActionGroupSignatureParams(ParentActionGroupSignatureParamsT&& value) { m_parentActionGroupSignatureParamsHasBeenSet = true; m_parentActionGroupSignatureParams = std::forward<ParentActionGroupSignatureParamsT>(value); }
159 template<typename ParentActionGroupSignatureParamsT = Aws::Map<Aws::String, Aws::String>>
160 AgentActionGroup& WithParentActionGroupSignatureParams(ParentActionGroupSignatureParamsT&& value) { SetParentActionGroupSignatureParams(std::forward<ParentActionGroupSignatureParamsT>(value)); return *this;}
161 template<typename ParentActionGroupSignatureParamsKeyT = Aws::String, typename ParentActionGroupSignatureParamsValueT = Aws::String>
162 AgentActionGroup& AddParentActionGroupSignatureParams(ParentActionGroupSignatureParamsKeyT&& key, ParentActionGroupSignatureParamsValueT&& value) {
163 m_parentActionGroupSignatureParamsHasBeenSet = true; m_parentActionGroupSignatureParams.emplace(std::forward<ParentActionGroupSignatureParamsKeyT>(key), std::forward<ParentActionGroupSignatureParamsValueT>(value)); return *this;
164 }
166 private:
167
168 ActionGroupExecutor m_actionGroupExecutor;
169 bool m_actionGroupExecutorHasBeenSet = false;
170
171 Aws::String m_actionGroupName;
172 bool m_actionGroupNameHasBeenSet = false;
173
174 APISchema m_apiSchema;
175 bool m_apiSchemaHasBeenSet = false;
176
177 Aws::String m_description;
178 bool m_descriptionHasBeenSet = false;
179
180 FunctionSchema m_functionSchema;
181 bool m_functionSchemaHasBeenSet = false;
182
183 ActionGroupSignature m_parentActionGroupSignature{ActionGroupSignature::NOT_SET};
184 bool m_parentActionGroupSignatureHasBeenSet = false;
185
186 Aws::Map<Aws::String, Aws::String> m_parentActionGroupSignatureParams;
187 bool m_parentActionGroupSignatureParamsHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace BedrockAgentRuntime
192} // 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::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