AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ApiResult.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/ConfirmationState.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/bedrock-agent-runtime/model/ResponseState.h>
12#include <aws/bedrock-agent-runtime/model/ContentBody.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
41 {
42 public:
43 AWS_BEDROCKAGENTRUNTIME_API ApiResult();
44 AWS_BEDROCKAGENTRUNTIME_API ApiResult(Aws::Utils::Json::JsonView jsonValue);
45 AWS_BEDROCKAGENTRUNTIME_API ApiResult& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetActionGroup() const{ return m_actionGroup; }
54 inline bool ActionGroupHasBeenSet() const { return m_actionGroupHasBeenSet; }
55 inline void SetActionGroup(const Aws::String& value) { m_actionGroupHasBeenSet = true; m_actionGroup = value; }
56 inline void SetActionGroup(Aws::String&& value) { m_actionGroupHasBeenSet = true; m_actionGroup = std::move(value); }
57 inline void SetActionGroup(const char* value) { m_actionGroupHasBeenSet = true; m_actionGroup.assign(value); }
58 inline ApiResult& WithActionGroup(const Aws::String& value) { SetActionGroup(value); return *this;}
59 inline ApiResult& WithActionGroup(Aws::String&& value) { SetActionGroup(std::move(value)); return *this;}
60 inline ApiResult& WithActionGroup(const char* value) { SetActionGroup(value); return *this;}
62
64
67 inline const Aws::String& GetApiPath() const{ return m_apiPath; }
68 inline bool ApiPathHasBeenSet() const { return m_apiPathHasBeenSet; }
69 inline void SetApiPath(const Aws::String& value) { m_apiPathHasBeenSet = true; m_apiPath = value; }
70 inline void SetApiPath(Aws::String&& value) { m_apiPathHasBeenSet = true; m_apiPath = std::move(value); }
71 inline void SetApiPath(const char* value) { m_apiPathHasBeenSet = true; m_apiPath.assign(value); }
72 inline ApiResult& WithApiPath(const Aws::String& value) { SetApiPath(value); return *this;}
73 inline ApiResult& WithApiPath(Aws::String&& value) { SetApiPath(std::move(value)); return *this;}
74 inline ApiResult& WithApiPath(const char* value) { SetApiPath(value); return *this;}
76
78
82 inline const ConfirmationState& GetConfirmationState() const{ return m_confirmationState; }
83 inline bool ConfirmationStateHasBeenSet() const { return m_confirmationStateHasBeenSet; }
84 inline void SetConfirmationState(const ConfirmationState& value) { m_confirmationStateHasBeenSet = true; m_confirmationState = value; }
85 inline void SetConfirmationState(ConfirmationState&& value) { m_confirmationStateHasBeenSet = true; m_confirmationState = std::move(value); }
86 inline ApiResult& WithConfirmationState(const ConfirmationState& value) { SetConfirmationState(value); return *this;}
87 inline ApiResult& WithConfirmationState(ConfirmationState&& value) { SetConfirmationState(std::move(value)); return *this;}
89
91
94 inline const Aws::String& GetHttpMethod() const{ return m_httpMethod; }
95 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
96 inline void SetHttpMethod(const Aws::String& value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; }
97 inline void SetHttpMethod(Aws::String&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = std::move(value); }
98 inline void SetHttpMethod(const char* value) { m_httpMethodHasBeenSet = true; m_httpMethod.assign(value); }
99 inline ApiResult& WithHttpMethod(const Aws::String& value) { SetHttpMethod(value); return *this;}
100 inline ApiResult& WithHttpMethod(Aws::String&& value) { SetHttpMethod(std::move(value)); return *this;}
101 inline ApiResult& WithHttpMethod(const char* value) { SetHttpMethod(value); return *this;}
103
105
109 inline int GetHttpStatusCode() const{ return m_httpStatusCode; }
110 inline bool HttpStatusCodeHasBeenSet() const { return m_httpStatusCodeHasBeenSet; }
111 inline void SetHttpStatusCode(int value) { m_httpStatusCodeHasBeenSet = true; m_httpStatusCode = value; }
112 inline ApiResult& WithHttpStatusCode(int value) { SetHttpStatusCode(value); return *this;}
114
116
121 inline const Aws::Map<Aws::String, ContentBody>& GetResponseBody() const{ return m_responseBody; }
122 inline bool ResponseBodyHasBeenSet() const { return m_responseBodyHasBeenSet; }
123 inline void SetResponseBody(const Aws::Map<Aws::String, ContentBody>& value) { m_responseBodyHasBeenSet = true; m_responseBody = value; }
124 inline void SetResponseBody(Aws::Map<Aws::String, ContentBody>&& value) { m_responseBodyHasBeenSet = true; m_responseBody = std::move(value); }
126 inline ApiResult& WithResponseBody(Aws::Map<Aws::String, ContentBody>&& value) { SetResponseBody(std::move(value)); return *this;}
127 inline ApiResult& AddResponseBody(const Aws::String& key, const ContentBody& value) { m_responseBodyHasBeenSet = true; m_responseBody.emplace(key, value); return *this; }
128 inline ApiResult& AddResponseBody(Aws::String&& key, const ContentBody& value) { m_responseBodyHasBeenSet = true; m_responseBody.emplace(std::move(key), value); return *this; }
129 inline ApiResult& AddResponseBody(const Aws::String& key, ContentBody&& value) { m_responseBodyHasBeenSet = true; m_responseBody.emplace(key, std::move(value)); return *this; }
130 inline ApiResult& AddResponseBody(Aws::String&& key, ContentBody&& value) { m_responseBodyHasBeenSet = true; m_responseBody.emplace(std::move(key), std::move(value)); return *this; }
131 inline ApiResult& AddResponseBody(const char* key, ContentBody&& value) { m_responseBodyHasBeenSet = true; m_responseBody.emplace(key, std::move(value)); return *this; }
132 inline ApiResult& AddResponseBody(const char* key, const ContentBody& value) { m_responseBodyHasBeenSet = true; m_responseBody.emplace(key, value); return *this; }
134
136
142 inline const ResponseState& GetResponseState() const{ return m_responseState; }
143 inline bool ResponseStateHasBeenSet() const { return m_responseStateHasBeenSet; }
144 inline void SetResponseState(const ResponseState& value) { m_responseStateHasBeenSet = true; m_responseState = value; }
145 inline void SetResponseState(ResponseState&& value) { m_responseStateHasBeenSet = true; m_responseState = std::move(value); }
146 inline ApiResult& WithResponseState(const ResponseState& value) { SetResponseState(value); return *this;}
147 inline ApiResult& WithResponseState(ResponseState&& value) { SetResponseState(std::move(value)); return *this;}
149 private:
150
151 Aws::String m_actionGroup;
152 bool m_actionGroupHasBeenSet = false;
153
154 Aws::String m_apiPath;
155 bool m_apiPathHasBeenSet = false;
156
157 ConfirmationState m_confirmationState;
158 bool m_confirmationStateHasBeenSet = false;
159
160 Aws::String m_httpMethod;
161 bool m_httpMethodHasBeenSet = false;
162
163 int m_httpStatusCode;
164 bool m_httpStatusCodeHasBeenSet = false;
165
167 bool m_responseBodyHasBeenSet = false;
168
169 ResponseState m_responseState;
170 bool m_responseStateHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace BedrockAgentRuntime
175} // namespace Aws
void SetConfirmationState(const ConfirmationState &value)
Definition ApiResult.h:84
ApiResult & AddResponseBody(const Aws::String &key, const ContentBody &value)
Definition ApiResult.h:127
ApiResult & AddResponseBody(const char *key, const ContentBody &value)
Definition ApiResult.h:132
void SetResponseBody(Aws::Map< Aws::String, ContentBody > &&value)
Definition ApiResult.h:124
AWS_BEDROCKAGENTRUNTIME_API ApiResult & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetResponseState(ResponseState &&value)
Definition ApiResult.h:145
ApiResult & WithHttpMethod(const Aws::String &value)
Definition ApiResult.h:99
ApiResult & WithConfirmationState(ConfirmationState &&value)
Definition ApiResult.h:87
AWS_BEDROCKAGENTRUNTIME_API ApiResult()
ApiResult & WithActionGroup(const char *value)
Definition ApiResult.h:60
ApiResult & WithResponseState(const ResponseState &value)
Definition ApiResult.h:146
void SetApiPath(Aws::String &&value)
Definition ApiResult.h:70
ApiResult & WithResponseBody(const Aws::Map< Aws::String, ContentBody > &value)
Definition ApiResult.h:125
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
ApiResult & WithHttpStatusCode(int value)
Definition ApiResult.h:112
void SetResponseState(const ResponseState &value)
Definition ApiResult.h:144
const Aws::String & GetHttpMethod() const
Definition ApiResult.h:94
void SetActionGroup(const char *value)
Definition ApiResult.h:57
ApiResult & WithResponseState(ResponseState &&value)
Definition ApiResult.h:147
const Aws::String & GetApiPath() const
Definition ApiResult.h:67
ApiResult & AddResponseBody(const Aws::String &key, ContentBody &&value)
Definition ApiResult.h:129
void SetApiPath(const Aws::String &value)
Definition ApiResult.h:69
ApiResult & AddResponseBody(const char *key, ContentBody &&value)
Definition ApiResult.h:131
ApiResult & WithConfirmationState(const ConfirmationState &value)
Definition ApiResult.h:86
AWS_BEDROCKAGENTRUNTIME_API ApiResult(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetActionGroup() const
Definition ApiResult.h:53
ApiResult & AddResponseBody(Aws::String &&key, const ContentBody &value)
Definition ApiResult.h:128
const ResponseState & GetResponseState() const
Definition ApiResult.h:142
ApiResult & WithApiPath(Aws::String &&value)
Definition ApiResult.h:73
void SetHttpMethod(const Aws::String &value)
Definition ApiResult.h:96
const ConfirmationState & GetConfirmationState() const
Definition ApiResult.h:82
void SetActionGroup(const Aws::String &value)
Definition ApiResult.h:55
void SetResponseBody(const Aws::Map< Aws::String, ContentBody > &value)
Definition ApiResult.h:123
ApiResult & WithHttpMethod(Aws::String &&value)
Definition ApiResult.h:100
ApiResult & WithActionGroup(const Aws::String &value)
Definition ApiResult.h:58
const Aws::Map< Aws::String, ContentBody > & GetResponseBody() const
Definition ApiResult.h:121
ApiResult & WithApiPath(const char *value)
Definition ApiResult.h:74
ApiResult & WithActionGroup(Aws::String &&value)
Definition ApiResult.h:59
void SetConfirmationState(ConfirmationState &&value)
Definition ApiResult.h:85
void SetHttpMethod(Aws::String &&value)
Definition ApiResult.h:97
ApiResult & WithHttpMethod(const char *value)
Definition ApiResult.h:101
ApiResult & AddResponseBody(Aws::String &&key, ContentBody &&value)
Definition ApiResult.h:130
void SetHttpMethod(const char *value)
Definition ApiResult.h:98
ApiResult & WithApiPath(const Aws::String &value)
Definition ApiResult.h:72
void SetActionGroup(Aws::String &&value)
Definition ApiResult.h:56
ApiResult & WithResponseBody(Aws::Map< Aws::String, ContentBody > &&value)
Definition ApiResult.h:126
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