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>
25namespace BedrockAgentRuntime
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>
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>
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>
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>
115 inline void SetHttpStatusCode(
int value) { m_httpStatusCodeHasBeenSet =
true; m_httpStatusCode = value; }
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>>
131 template<
typename ResponseBodyKeyT = Aws::String,
typename ResponseBodyValueT = ContentBody>
133 m_responseBodyHasBeenSet =
true; m_responseBody.emplace(std::forward<ResponseBodyKeyT>(key), std::forward<ResponseBodyValueT>(value));
return *
this;
152 bool m_actionGroupHasBeenSet =
false;
155 bool m_agentIdHasBeenSet =
false;
158 bool m_apiPathHasBeenSet =
false;
161 bool m_confirmationStateHasBeenSet =
false;
164 bool m_httpMethodHasBeenSet =
false;
166 int m_httpStatusCode{0};
167 bool m_httpStatusCodeHasBeenSet =
false;
170 bool m_responseBodyHasBeenSet =
false;
173 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::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