AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ApiInvocationInput.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/ActionInvocationType.h>
9#include <aws/bedrock-agent-runtime/model/ApiParameter.h>
10#include <aws/bedrock-agent-runtime/model/ApiRequestBody.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
36 public:
37 AWS_BEDROCKAGENTRUNTIME_API ApiInvocationInput() = default;
40 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetActionGroup() const { return m_actionGroup; }
47 inline bool ActionGroupHasBeenSet() const { return m_actionGroupHasBeenSet; }
48 template <typename ActionGroupT = Aws::String>
50 m_actionGroupHasBeenSet = true;
51 m_actionGroup = std::forward<ActionGroupT>(value);
52 }
53 template <typename ActionGroupT = Aws::String>
55 SetActionGroup(std::forward<ActionGroupT>(value));
56 return *this;
57 }
59
61
64 inline ActionInvocationType GetActionInvocationType() const { return m_actionInvocationType; }
65 inline bool ActionInvocationTypeHasBeenSet() const { return m_actionInvocationTypeHasBeenSet; }
67 m_actionInvocationTypeHasBeenSet = true;
68 m_actionInvocationType = value;
69 }
72 return *this;
73 }
75
77
80 inline const Aws::String& GetAgentId() const { return m_agentId; }
81 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
82 template <typename AgentIdT = Aws::String>
83 void SetAgentId(AgentIdT&& value) {
84 m_agentIdHasBeenSet = true;
85 m_agentId = std::forward<AgentIdT>(value);
86 }
87 template <typename AgentIdT = Aws::String>
89 SetAgentId(std::forward<AgentIdT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetApiPath() const { return m_apiPath; }
99 inline bool ApiPathHasBeenSet() const { return m_apiPathHasBeenSet; }
100 template <typename ApiPathT = Aws::String>
101 void SetApiPath(ApiPathT&& value) {
102 m_apiPathHasBeenSet = true;
103 m_apiPath = std::forward<ApiPathT>(value);
104 }
105 template <typename ApiPathT = Aws::String>
107 SetApiPath(std::forward<ApiPathT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetCollaboratorName() const { return m_collaboratorName; }
117 inline bool CollaboratorNameHasBeenSet() const { return m_collaboratorNameHasBeenSet; }
118 template <typename CollaboratorNameT = Aws::String>
120 m_collaboratorNameHasBeenSet = true;
121 m_collaboratorName = std::forward<CollaboratorNameT>(value);
122 }
123 template <typename CollaboratorNameT = Aws::String>
125 SetCollaboratorName(std::forward<CollaboratorNameT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::String& GetHttpMethod() const { return m_httpMethod; }
135 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
136 template <typename HttpMethodT = Aws::String>
138 m_httpMethodHasBeenSet = true;
139 m_httpMethod = std::forward<HttpMethodT>(value);
140 }
141 template <typename HttpMethodT = Aws::String>
143 SetHttpMethod(std::forward<HttpMethodT>(value));
144 return *this;
145 }
147
149
153 inline const Aws::Vector<ApiParameter>& GetParameters() const { return m_parameters; }
154 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
155 template <typename ParametersT = Aws::Vector<ApiParameter>>
157 m_parametersHasBeenSet = true;
158 m_parameters = std::forward<ParametersT>(value);
159 }
160 template <typename ParametersT = Aws::Vector<ApiParameter>>
162 SetParameters(std::forward<ParametersT>(value));
163 return *this;
164 }
165 template <typename ParametersT = ApiParameter>
167 m_parametersHasBeenSet = true;
168 m_parameters.emplace_back(std::forward<ParametersT>(value));
169 return *this;
170 }
172
174
178 inline const ApiRequestBody& GetRequestBody() const { return m_requestBody; }
179 inline bool RequestBodyHasBeenSet() const { return m_requestBodyHasBeenSet; }
180 template <typename RequestBodyT = ApiRequestBody>
182 m_requestBodyHasBeenSet = true;
183 m_requestBody = std::forward<RequestBodyT>(value);
184 }
185 template <typename RequestBodyT = ApiRequestBody>
187 SetRequestBody(std::forward<RequestBodyT>(value));
188 return *this;
189 }
191 private:
192 Aws::String m_actionGroup;
193
195
196 Aws::String m_agentId;
197
198 Aws::String m_apiPath;
199
200 Aws::String m_collaboratorName;
201
202 Aws::String m_httpMethod;
203
204 Aws::Vector<ApiParameter> m_parameters;
205
206 ApiRequestBody m_requestBody;
207 bool m_actionGroupHasBeenSet = false;
208 bool m_actionInvocationTypeHasBeenSet = false;
209 bool m_agentIdHasBeenSet = false;
210 bool m_apiPathHasBeenSet = false;
211 bool m_collaboratorNameHasBeenSet = false;
212 bool m_httpMethodHasBeenSet = false;
213 bool m_parametersHasBeenSet = false;
214 bool m_requestBodyHasBeenSet = false;
215};
216
217} // namespace Model
218} // namespace BedrockAgentRuntime
219} // namespace Aws
void SetActionInvocationType(ActionInvocationType value)
ApiInvocationInput & WithParameters(ParametersT &&value)
AWS_BEDROCKAGENTRUNTIME_API ApiInvocationInput()=default
AWS_BEDROCKAGENTRUNTIME_API ApiInvocationInput(Aws::Utils::Json::JsonView jsonValue)
ApiInvocationInput & WithApiPath(ApiPathT &&value)
ApiInvocationInput & WithHttpMethod(HttpMethodT &&value)
ApiInvocationInput & WithAgentId(AgentIdT &&value)
ApiInvocationInput & WithActionGroup(ActionGroupT &&value)
ApiInvocationInput & WithActionInvocationType(ActionInvocationType value)
ApiInvocationInput & AddParameters(ParametersT &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API ApiInvocationInput & operator=(Aws::Utils::Json::JsonView jsonValue)
ApiInvocationInput & WithCollaboratorName(CollaboratorNameT &&value)
const Aws::Vector< ApiParameter > & GetParameters() const
ApiInvocationInput & 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