AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ApiInvocationInput.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock-agent-runtime/model/ActionInvocationType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/bedrock-agent-runtime/model/ApiRequestBody.h>
12#include <aws/bedrock-agent-runtime/model/ApiParameter.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace BedrockAgentRuntime
26{
27namespace Model
28{
29
40 {
41 public:
42 AWS_BEDROCKAGENTRUNTIME_API ApiInvocationInput() = default;
43 AWS_BEDROCKAGENTRUNTIME_API ApiInvocationInput(Aws::Utils::Json::JsonView jsonValue);
44 AWS_BEDROCKAGENTRUNTIME_API ApiInvocationInput& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetActionGroup() const { return m_actionGroup; }
53 inline bool ActionGroupHasBeenSet() const { return m_actionGroupHasBeenSet; }
54 template<typename ActionGroupT = Aws::String>
55 void SetActionGroup(ActionGroupT&& value) { m_actionGroupHasBeenSet = true; m_actionGroup = std::forward<ActionGroupT>(value); }
56 template<typename ActionGroupT = Aws::String>
57 ApiInvocationInput& WithActionGroup(ActionGroupT&& value) { SetActionGroup(std::forward<ActionGroupT>(value)); return *this;}
59
61
64 inline ActionInvocationType GetActionInvocationType() const { return m_actionInvocationType; }
65 inline bool ActionInvocationTypeHasBeenSet() const { return m_actionInvocationTypeHasBeenSet; }
66 inline void SetActionInvocationType(ActionInvocationType value) { m_actionInvocationTypeHasBeenSet = true; m_actionInvocationType = value; }
69
71
74 inline const Aws::String& GetAgentId() const { return m_agentId; }
75 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
76 template<typename AgentIdT = Aws::String>
77 void SetAgentId(AgentIdT&& value) { m_agentIdHasBeenSet = true; m_agentId = std::forward<AgentIdT>(value); }
78 template<typename AgentIdT = Aws::String>
79 ApiInvocationInput& WithAgentId(AgentIdT&& value) { SetAgentId(std::forward<AgentIdT>(value)); return *this;}
81
83
86 inline const Aws::String& GetApiPath() const { return m_apiPath; }
87 inline bool ApiPathHasBeenSet() const { return m_apiPathHasBeenSet; }
88 template<typename ApiPathT = Aws::String>
89 void SetApiPath(ApiPathT&& value) { m_apiPathHasBeenSet = true; m_apiPath = std::forward<ApiPathT>(value); }
90 template<typename ApiPathT = Aws::String>
91 ApiInvocationInput& WithApiPath(ApiPathT&& value) { SetApiPath(std::forward<ApiPathT>(value)); return *this;}
93
95
98 inline const Aws::String& GetCollaboratorName() const { return m_collaboratorName; }
99 inline bool CollaboratorNameHasBeenSet() const { return m_collaboratorNameHasBeenSet; }
100 template<typename CollaboratorNameT = Aws::String>
101 void SetCollaboratorName(CollaboratorNameT&& value) { m_collaboratorNameHasBeenSet = true; m_collaboratorName = std::forward<CollaboratorNameT>(value); }
102 template<typename CollaboratorNameT = Aws::String>
103 ApiInvocationInput& WithCollaboratorName(CollaboratorNameT&& value) { SetCollaboratorName(std::forward<CollaboratorNameT>(value)); return *this;}
105
107
110 inline const Aws::String& GetHttpMethod() const { return m_httpMethod; }
111 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
112 template<typename HttpMethodT = Aws::String>
113 void SetHttpMethod(HttpMethodT&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = std::forward<HttpMethodT>(value); }
114 template<typename HttpMethodT = Aws::String>
115 ApiInvocationInput& WithHttpMethod(HttpMethodT&& value) { SetHttpMethod(std::forward<HttpMethodT>(value)); return *this;}
117
119
123 inline const Aws::Vector<ApiParameter>& GetParameters() const { return m_parameters; }
124 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
125 template<typename ParametersT = Aws::Vector<ApiParameter>>
126 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
127 template<typename ParametersT = Aws::Vector<ApiParameter>>
128 ApiInvocationInput& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
129 template<typename ParametersT = ApiParameter>
130 ApiInvocationInput& AddParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters.emplace_back(std::forward<ParametersT>(value)); return *this; }
132
134
138 inline const ApiRequestBody& GetRequestBody() const { return m_requestBody; }
139 inline bool RequestBodyHasBeenSet() const { return m_requestBodyHasBeenSet; }
140 template<typename RequestBodyT = ApiRequestBody>
141 void SetRequestBody(RequestBodyT&& value) { m_requestBodyHasBeenSet = true; m_requestBody = std::forward<RequestBodyT>(value); }
142 template<typename RequestBodyT = ApiRequestBody>
143 ApiInvocationInput& WithRequestBody(RequestBodyT&& value) { SetRequestBody(std::forward<RequestBodyT>(value)); return *this;}
145 private:
146
147 Aws::String m_actionGroup;
148 bool m_actionGroupHasBeenSet = false;
149
151 bool m_actionInvocationTypeHasBeenSet = false;
152
153 Aws::String m_agentId;
154 bool m_agentIdHasBeenSet = false;
155
156 Aws::String m_apiPath;
157 bool m_apiPathHasBeenSet = false;
158
159 Aws::String m_collaboratorName;
160 bool m_collaboratorNameHasBeenSet = false;
161
162 Aws::String m_httpMethod;
163 bool m_httpMethodHasBeenSet = false;
164
165 Aws::Vector<ApiParameter> m_parameters;
166 bool m_parametersHasBeenSet = false;
167
168 ApiRequestBody m_requestBody;
169 bool m_requestBodyHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace BedrockAgentRuntime
174} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue