AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetActionGroup(const Aws::String& value) { m_actionGroupHasBeenSet = true; m_actionGroup = value; }
55 inline void SetActionGroup(Aws::String&& value) { m_actionGroupHasBeenSet = true; m_actionGroup = std::move(value); }
56 inline void SetActionGroup(const char* value) { m_actionGroupHasBeenSet = true; m_actionGroup.assign(value); }
57 inline ApiInvocationInput& WithActionGroup(const Aws::String& value) { SetActionGroup(value); return *this;}
58 inline ApiInvocationInput& WithActionGroup(Aws::String&& value) { SetActionGroup(std::move(value)); return *this;}
59 inline ApiInvocationInput& WithActionGroup(const char* value) { SetActionGroup(value); return *this;}
61
63
66 inline const ActionInvocationType& GetActionInvocationType() const{ return m_actionInvocationType; }
67 inline bool ActionInvocationTypeHasBeenSet() const { return m_actionInvocationTypeHasBeenSet; }
68 inline void SetActionInvocationType(const ActionInvocationType& value) { m_actionInvocationTypeHasBeenSet = true; m_actionInvocationType = value; }
69 inline void SetActionInvocationType(ActionInvocationType&& value) { m_actionInvocationTypeHasBeenSet = true; m_actionInvocationType = std::move(value); }
73
75
78 inline const Aws::String& GetApiPath() const{ return m_apiPath; }
79 inline bool ApiPathHasBeenSet() const { return m_apiPathHasBeenSet; }
80 inline void SetApiPath(const Aws::String& value) { m_apiPathHasBeenSet = true; m_apiPath = value; }
81 inline void SetApiPath(Aws::String&& value) { m_apiPathHasBeenSet = true; m_apiPath = std::move(value); }
82 inline void SetApiPath(const char* value) { m_apiPathHasBeenSet = true; m_apiPath.assign(value); }
83 inline ApiInvocationInput& WithApiPath(const Aws::String& value) { SetApiPath(value); return *this;}
84 inline ApiInvocationInput& WithApiPath(Aws::String&& value) { SetApiPath(std::move(value)); return *this;}
85 inline ApiInvocationInput& WithApiPath(const char* value) { SetApiPath(value); return *this;}
87
89
92 inline const Aws::String& GetHttpMethod() const{ return m_httpMethod; }
93 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
94 inline void SetHttpMethod(const Aws::String& value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; }
95 inline void SetHttpMethod(Aws::String&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = std::move(value); }
96 inline void SetHttpMethod(const char* value) { m_httpMethodHasBeenSet = true; m_httpMethod.assign(value); }
97 inline ApiInvocationInput& WithHttpMethod(const Aws::String& value) { SetHttpMethod(value); return *this;}
98 inline ApiInvocationInput& WithHttpMethod(Aws::String&& value) { SetHttpMethod(std::move(value)); return *this;}
99 inline ApiInvocationInput& WithHttpMethod(const char* value) { SetHttpMethod(value); return *this;}
101
103
107 inline const Aws::Vector<ApiParameter>& GetParameters() const{ return m_parameters; }
108 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
109 inline void SetParameters(const Aws::Vector<ApiParameter>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
110 inline void SetParameters(Aws::Vector<ApiParameter>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
111 inline ApiInvocationInput& WithParameters(const Aws::Vector<ApiParameter>& value) { SetParameters(value); return *this;}
112 inline ApiInvocationInput& WithParameters(Aws::Vector<ApiParameter>&& value) { SetParameters(std::move(value)); return *this;}
113 inline ApiInvocationInput& AddParameters(const ApiParameter& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
114 inline ApiInvocationInput& AddParameters(ApiParameter&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(std::move(value)); return *this; }
116
118
122 inline const ApiRequestBody& GetRequestBody() const{ return m_requestBody; }
123 inline bool RequestBodyHasBeenSet() const { return m_requestBodyHasBeenSet; }
124 inline void SetRequestBody(const ApiRequestBody& value) { m_requestBodyHasBeenSet = true; m_requestBody = value; }
125 inline void SetRequestBody(ApiRequestBody&& value) { m_requestBodyHasBeenSet = true; m_requestBody = std::move(value); }
126 inline ApiInvocationInput& WithRequestBody(const ApiRequestBody& value) { SetRequestBody(value); return *this;}
127 inline ApiInvocationInput& WithRequestBody(ApiRequestBody&& value) { SetRequestBody(std::move(value)); return *this;}
129 private:
130
131 Aws::String m_actionGroup;
132 bool m_actionGroupHasBeenSet = false;
133
134 ActionInvocationType m_actionInvocationType;
135 bool m_actionInvocationTypeHasBeenSet = false;
136
137 Aws::String m_apiPath;
138 bool m_apiPathHasBeenSet = false;
139
140 Aws::String m_httpMethod;
141 bool m_httpMethodHasBeenSet = false;
142
143 Aws::Vector<ApiParameter> m_parameters;
144 bool m_parametersHasBeenSet = false;
145
146 ApiRequestBody m_requestBody;
147 bool m_requestBodyHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace BedrockAgentRuntime
152} // namespace Aws
ApiInvocationInput & WithParameters(Aws::Vector< ApiParameter > &&value)
ApiInvocationInput & WithApiPath(Aws::String &&value)
AWS_BEDROCKAGENTRUNTIME_API ApiInvocationInput(Aws::Utils::Json::JsonView jsonValue)
ApiInvocationInput & WithApiPath(const char *value)
ApiInvocationInput & WithHttpMethod(const char *value)
ApiInvocationInput & WithParameters(const Aws::Vector< ApiParameter > &value)
AWS_BEDROCKAGENTRUNTIME_API ApiInvocationInput()
ApiInvocationInput & WithHttpMethod(Aws::String &&value)
void SetParameters(Aws::Vector< ApiParameter > &&value)
const ActionInvocationType & GetActionInvocationType() const
ApiInvocationInput & WithRequestBody(const ApiRequestBody &value)
ApiInvocationInput & WithActionInvocationType(ActionInvocationType &&value)
ApiInvocationInput & WithRequestBody(ApiRequestBody &&value)
ApiInvocationInput & AddParameters(const ApiParameter &value)
ApiInvocationInput & WithActionInvocationType(const ActionInvocationType &value)
void SetParameters(const Aws::Vector< ApiParameter > &value)
void SetActionInvocationType(const ActionInvocationType &value)
ApiInvocationInput & WithActionGroup(const char *value)
ApiInvocationInput & WithApiPath(const Aws::String &value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetActionInvocationType(ActionInvocationType &&value)
ApiInvocationInput & WithActionGroup(const Aws::String &value)
AWS_BEDROCKAGENTRUNTIME_API ApiInvocationInput & operator=(Aws::Utils::Json::JsonView jsonValue)
ApiInvocationInput & WithActionGroup(Aws::String &&value)
ApiInvocationInput & WithHttpMethod(const Aws::String &value)
const Aws::Vector< ApiParameter > & GetParameters() const
ApiInvocationInput & AddParameters(ApiParameter &&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