7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/ConfirmationState.h>
9#include <aws/bedrock-agent-runtime/model/ContentBody.h>
10#include <aws/bedrock-agent-runtime/model/ResponseState.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
23namespace BedrockAgentRuntime {
49 template <
typename ActionGroupT = Aws::String>
51 m_actionGroupHasBeenSet =
true;
52 m_actionGroup = std::forward<ActionGroupT>(value);
54 template <
typename ActionGroupT = Aws::String>
67 template <
typename AgentIdT = Aws::String>
69 m_agentIdHasBeenSet =
true;
70 m_agentId = std::forward<AgentIdT>(value);
72 template <
typename AgentIdT = Aws::String>
85 template <
typename ApiPathT = Aws::String>
87 m_apiPathHasBeenSet =
true;
88 m_apiPath = std::forward<ApiPathT>(value);
90 template <
typename ApiPathT = Aws::String>
105 m_confirmationStateHasBeenSet =
true;
106 m_confirmationState = value;
120 template <
typename HttpMethodT = Aws::String>
122 m_httpMethodHasBeenSet =
true;
123 m_httpMethod = std::forward<HttpMethodT>(value);
125 template <
typename HttpMethodT = Aws::String>
140 m_httpStatusCodeHasBeenSet =
true;
141 m_httpStatusCode = value;
157 template <
typename ResponseBodyT = Aws::Map<Aws::String, ContentBody>>
159 m_responseBodyHasBeenSet =
true;
160 m_responseBody = std::forward<ResponseBodyT>(value);
162 template <
typename ResponseBodyT = Aws::Map<Aws::String, ContentBody>>
167 template <
typename ResponseBodyKeyT = Aws::String,
typename ResponseBodyValueT = ContentBody>
169 m_responseBodyHasBeenSet =
true;
170 m_responseBody.emplace(std::forward<ResponseBodyKeyT>(
key), std::forward<ResponseBodyValueT>(value));
185 m_responseStateHasBeenSet =
true;
186 m_responseState = value;
204 int m_httpStatusCode{0};
209 bool m_actionGroupHasBeenSet =
false;
210 bool m_agentIdHasBeenSet =
false;
211 bool m_apiPathHasBeenSet =
false;
212 bool m_confirmationStateHasBeenSet =
false;
213 bool m_httpMethodHasBeenSet =
false;
214 bool m_httpStatusCodeHasBeenSet =
false;
215 bool m_responseBodyHasBeenSet =
false;
216 bool m_responseStateHasBeenSet =
false;
void SetHttpMethod(HttpMethodT &&value)
void SetAgentId(AgentIdT &&value)
bool ResponseStateHasBeenSet() const
AWS_BEDROCKAGENTRUNTIME_API ApiResult & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ApiPathHasBeenSet() const
bool AgentIdHasBeenSet() const
int GetHttpStatusCode() const
ApiResult & WithActionGroup(ActionGroupT &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAgentId() const
ApiResult & WithHttpStatusCode(int value)
const Aws::String & GetHttpMethod() const
const Aws::String & GetApiPath() const
ApiResult & WithHttpMethod(HttpMethodT &&value)
ApiResult & WithResponseBody(ResponseBodyT &&value)
ApiResult & WithResponseState(ResponseState value)
ConfirmationState GetConfirmationState() const
ApiResult & AddResponseBody(ResponseBodyKeyT &&key, ResponseBodyValueT &&value)
ApiResult & WithAgentId(AgentIdT &&value)
AWS_BEDROCKAGENTRUNTIME_API ApiResult(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetActionGroup() const
void SetResponseBody(ResponseBodyT &&value)
bool ActionGroupHasBeenSet() const
ApiResult & WithApiPath(ApiPathT &&value)
AWS_BEDROCKAGENTRUNTIME_API ApiResult()=default
ApiResult & WithConfirmationState(ConfirmationState value)
void SetHttpStatusCode(int value)
bool HttpStatusCodeHasBeenSet() const
void SetActionGroup(ActionGroupT &&value)
bool ResponseBodyHasBeenSet() const
void SetConfirmationState(ConfirmationState value)
const Aws::Map< Aws::String, ContentBody > & GetResponseBody() const
ResponseState GetResponseState() const
void SetResponseState(ResponseState value)
bool HttpMethodHasBeenSet() const
void SetApiPath(ApiPathT &&value)
bool ConfirmationStateHasBeenSet() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
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