AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ActionGroupT = Aws::String>
56 void SetActionGroup(ActionGroupT&& value) { m_actionGroupHasBeenSet = true; m_actionGroup = std::forward<ActionGroupT>(value); }
57 template<typename ActionGroupT = Aws::String>
58 ApiResult& WithActionGroup(ActionGroupT&& value) { SetActionGroup(std::forward<ActionGroupT>(value)); return *this;}
60
62
65 inline const Aws::String& GetAgentId() const { return m_agentId; }
66 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
67 template<typename AgentIdT = Aws::String>
68 void SetAgentId(AgentIdT&& value) { m_agentIdHasBeenSet = true; m_agentId = std::forward<AgentIdT>(value); }
69 template<typename AgentIdT = Aws::String>
70 ApiResult& WithAgentId(AgentIdT&& value) { SetAgentId(std::forward<AgentIdT>(value)); return *this;}
72
74
77 inline const Aws::String& GetApiPath() const { return m_apiPath; }
78 inline bool ApiPathHasBeenSet() const { return m_apiPathHasBeenSet; }
79 template<typename ApiPathT = Aws::String>
80 void SetApiPath(ApiPathT&& value) { m_apiPathHasBeenSet = true; m_apiPath = std::forward<ApiPathT>(value); }
81 template<typename ApiPathT = Aws::String>
82 ApiResult& WithApiPath(ApiPathT&& value) { SetApiPath(std::forward<ApiPathT>(value)); return *this;}
84
86
90 inline ConfirmationState GetConfirmationState() const { return m_confirmationState; }
91 inline bool ConfirmationStateHasBeenSet() const { return m_confirmationStateHasBeenSet; }
92 inline void SetConfirmationState(ConfirmationState value) { m_confirmationStateHasBeenSet = true; m_confirmationState = value; }
95
97
100 inline const Aws::String& GetHttpMethod() const { return m_httpMethod; }
101 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
102 template<typename HttpMethodT = Aws::String>
103 void SetHttpMethod(HttpMethodT&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = std::forward<HttpMethodT>(value); }
104 template<typename HttpMethodT = Aws::String>
105 ApiResult& WithHttpMethod(HttpMethodT&& value) { SetHttpMethod(std::forward<HttpMethodT>(value)); return *this;}
107
109
113 inline int GetHttpStatusCode() const { return m_httpStatusCode; }
114 inline bool HttpStatusCodeHasBeenSet() const { return m_httpStatusCodeHasBeenSet; }
115 inline void SetHttpStatusCode(int value) { m_httpStatusCodeHasBeenSet = true; m_httpStatusCode = value; }
116 inline ApiResult& WithHttpStatusCode(int value) { SetHttpStatusCode(value); return *this;}
118
120
125 inline const Aws::Map<Aws::String, ContentBody>& GetResponseBody() const { return m_responseBody; }
126 inline bool ResponseBodyHasBeenSet() const { return m_responseBodyHasBeenSet; }
127 template<typename ResponseBodyT = Aws::Map<Aws::String, ContentBody>>
128 void SetResponseBody(ResponseBodyT&& value) { m_responseBodyHasBeenSet = true; m_responseBody = std::forward<ResponseBodyT>(value); }
129 template<typename ResponseBodyT = Aws::Map<Aws::String, ContentBody>>
130 ApiResult& WithResponseBody(ResponseBodyT&& value) { SetResponseBody(std::forward<ResponseBodyT>(value)); return *this;}
131 template<typename ResponseBodyKeyT = Aws::String, typename ResponseBodyValueT = ContentBody>
132 ApiResult& AddResponseBody(ResponseBodyKeyT&& key, ResponseBodyValueT&& value) {
133 m_responseBodyHasBeenSet = true; m_responseBody.emplace(std::forward<ResponseBodyKeyT>(key), std::forward<ResponseBodyValueT>(value)); return *this;
134 }
136
138
144 inline ResponseState GetResponseState() const { return m_responseState; }
145 inline bool ResponseStateHasBeenSet() const { return m_responseStateHasBeenSet; }
146 inline void SetResponseState(ResponseState value) { m_responseStateHasBeenSet = true; m_responseState = value; }
147 inline ApiResult& WithResponseState(ResponseState value) { SetResponseState(value); return *this;}
149 private:
150
151 Aws::String m_actionGroup;
152 bool m_actionGroupHasBeenSet = false;
153
154 Aws::String m_agentId;
155 bool m_agentIdHasBeenSet = false;
156
157 Aws::String m_apiPath;
158 bool m_apiPathHasBeenSet = false;
159
161 bool m_confirmationStateHasBeenSet = false;
162
163 Aws::String m_httpMethod;
164 bool m_httpMethodHasBeenSet = false;
165
166 int m_httpStatusCode{0};
167 bool m_httpStatusCodeHasBeenSet = false;
168
170 bool m_responseBodyHasBeenSet = false;
171
172 ResponseState m_responseState{ResponseState::NOT_SET};
173 bool m_responseStateHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace BedrockAgentRuntime
178} // namespace Aws
void SetHttpMethod(HttpMethodT &&value)
Definition ApiResult.h:103
AWS_BEDROCKAGENTRUNTIME_API ApiResult & operator=(Aws::Utils::Json::JsonView jsonValue)
ApiResult & WithActionGroup(ActionGroupT &&value)
Definition ApiResult.h:58
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAgentId() const
Definition ApiResult.h:65
ApiResult & WithHttpStatusCode(int value)
Definition ApiResult.h:116
const Aws::String & GetHttpMethod() const
Definition ApiResult.h:100
const Aws::String & GetApiPath() const
Definition ApiResult.h:77
ApiResult & WithHttpMethod(HttpMethodT &&value)
Definition ApiResult.h:105
ApiResult & WithResponseBody(ResponseBodyT &&value)
Definition ApiResult.h:130
ApiResult & WithResponseState(ResponseState value)
Definition ApiResult.h:147
ConfirmationState GetConfirmationState() const
Definition ApiResult.h:90
ApiResult & AddResponseBody(ResponseBodyKeyT &&key, ResponseBodyValueT &&value)
Definition ApiResult.h:132
ApiResult & WithAgentId(AgentIdT &&value)
Definition ApiResult.h:70
AWS_BEDROCKAGENTRUNTIME_API ApiResult(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetActionGroup() const
Definition ApiResult.h:53
void SetResponseBody(ResponseBodyT &&value)
Definition ApiResult.h:128
ApiResult & WithApiPath(ApiPathT &&value)
Definition ApiResult.h:82
AWS_BEDROCKAGENTRUNTIME_API ApiResult()=default
ApiResult & WithConfirmationState(ConfirmationState value)
Definition ApiResult.h:93
void SetActionGroup(ActionGroupT &&value)
Definition ApiResult.h:56
void SetConfirmationState(ConfirmationState value)
Definition ApiResult.h:92
const Aws::Map< Aws::String, ContentBody > & GetResponseBody() const
Definition ApiResult.h:125
void SetResponseState(ResponseState value)
Definition ApiResult.h:146
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