AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ActionGroupInvocationInput.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/ExecutionType.h>
9#include <aws/bedrock-agent-runtime/model/Parameter.h>
10#include <aws/bedrock-agent-runtime/model/RequestBody.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BedrockAgentRuntime {
24namespace Model {
25
37 public:
38 AWS_BEDROCKAGENTRUNTIME_API ActionGroupInvocationInput() = default;
41 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetActionGroupName() const { return m_actionGroupName; }
48 inline bool ActionGroupNameHasBeenSet() const { return m_actionGroupNameHasBeenSet; }
49 template <typename ActionGroupNameT = Aws::String>
51 m_actionGroupNameHasBeenSet = true;
52 m_actionGroupName = std::forward<ActionGroupNameT>(value);
53 }
54 template <typename ActionGroupNameT = Aws::String>
56 SetActionGroupName(std::forward<ActionGroupNameT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetApiPath() const { return m_apiPath; }
66 inline bool ApiPathHasBeenSet() const { return m_apiPathHasBeenSet; }
67 template <typename ApiPathT = Aws::String>
68 void SetApiPath(ApiPathT&& value) {
69 m_apiPathHasBeenSet = true;
70 m_apiPath = std::forward<ApiPathT>(value);
71 }
72 template <typename ApiPathT = Aws::String>
74 SetApiPath(std::forward<ApiPathT>(value));
75 return *this;
76 }
78
80
85 inline ExecutionType GetExecutionType() const { return m_executionType; }
86 inline bool ExecutionTypeHasBeenSet() const { return m_executionTypeHasBeenSet; }
87 inline void SetExecutionType(ExecutionType value) {
88 m_executionTypeHasBeenSet = true;
89 m_executionType = value;
90 }
92 SetExecutionType(value);
93 return *this;
94 }
96
98
101 inline const Aws::String& GetFunction() const { return m_function; }
102 inline bool FunctionHasBeenSet() const { return m_functionHasBeenSet; }
103 template <typename FunctionT = Aws::String>
104 void SetFunction(FunctionT&& value) {
105 m_functionHasBeenSet = true;
106 m_function = std::forward<FunctionT>(value);
107 }
108 template <typename FunctionT = Aws::String>
110 SetFunction(std::forward<FunctionT>(value));
111 return *this;
112 }
114
116
120 inline const Aws::String& GetInvocationId() const { return m_invocationId; }
121 inline bool InvocationIdHasBeenSet() const { return m_invocationIdHasBeenSet; }
122 template <typename InvocationIdT = Aws::String>
124 m_invocationIdHasBeenSet = true;
125 m_invocationId = std::forward<InvocationIdT>(value);
126 }
127 template <typename InvocationIdT = Aws::String>
129 SetInvocationId(std::forward<InvocationIdT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::Vector<Parameter>& GetParameters() const { return m_parameters; }
139 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
140 template <typename ParametersT = Aws::Vector<Parameter>>
142 m_parametersHasBeenSet = true;
143 m_parameters = std::forward<ParametersT>(value);
144 }
145 template <typename ParametersT = Aws::Vector<Parameter>>
147 SetParameters(std::forward<ParametersT>(value));
148 return *this;
149 }
150 template <typename ParametersT = Parameter>
152 m_parametersHasBeenSet = true;
153 m_parameters.emplace_back(std::forward<ParametersT>(value));
154 return *this;
155 }
157
159
162 inline const RequestBody& GetRequestBody() const { return m_requestBody; }
163 inline bool RequestBodyHasBeenSet() const { return m_requestBodyHasBeenSet; }
164 template <typename RequestBodyT = RequestBody>
166 m_requestBodyHasBeenSet = true;
167 m_requestBody = std::forward<RequestBodyT>(value);
168 }
169 template <typename RequestBodyT = RequestBody>
171 SetRequestBody(std::forward<RequestBodyT>(value));
172 return *this;
173 }
175
177
180 inline const Aws::String& GetVerb() const { return m_verb; }
181 inline bool VerbHasBeenSet() const { return m_verbHasBeenSet; }
182 template <typename VerbT = Aws::String>
183 void SetVerb(VerbT&& value) {
184 m_verbHasBeenSet = true;
185 m_verb = std::forward<VerbT>(value);
186 }
187 template <typename VerbT = Aws::String>
189 SetVerb(std::forward<VerbT>(value));
190 return *this;
191 }
193 private:
194 Aws::String m_actionGroupName;
195
196 Aws::String m_apiPath;
197
198 ExecutionType m_executionType{ExecutionType::NOT_SET};
199
200 Aws::String m_function;
201
202 Aws::String m_invocationId;
203
204 Aws::Vector<Parameter> m_parameters;
205
206 RequestBody m_requestBody;
207
208 Aws::String m_verb;
209 bool m_actionGroupNameHasBeenSet = false;
210 bool m_apiPathHasBeenSet = false;
211 bool m_executionTypeHasBeenSet = false;
212 bool m_functionHasBeenSet = false;
213 bool m_invocationIdHasBeenSet = false;
214 bool m_parametersHasBeenSet = false;
215 bool m_requestBodyHasBeenSet = false;
216 bool m_verbHasBeenSet = false;
217};
218
219} // namespace Model
220} // namespace BedrockAgentRuntime
221} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API ActionGroupInvocationInput(Aws::Utils::Json::JsonView jsonValue)
ActionGroupInvocationInput & WithFunction(FunctionT &&value)
AWS_BEDROCKAGENTRUNTIME_API ActionGroupInvocationInput()=default
ActionGroupInvocationInput & WithInvocationId(InvocationIdT &&value)
ActionGroupInvocationInput & AddParameters(ParametersT &&value)
ActionGroupInvocationInput & WithApiPath(ApiPathT &&value)
ActionGroupInvocationInput & WithParameters(ParametersT &&value)
ActionGroupInvocationInput & WithActionGroupName(ActionGroupNameT &&value)
ActionGroupInvocationInput & WithExecutionType(ExecutionType value)
AWS_BEDROCKAGENTRUNTIME_API ActionGroupInvocationInput & operator=(Aws::Utils::Json::JsonView jsonValue)
ActionGroupInvocationInput & WithRequestBody(RequestBodyT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue