AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
InvocationResultMember.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/ApiResult.h>
9#include <aws/bedrock-agent-runtime/model/FunctionResult.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockAgentRuntime
23{
24namespace Model
25{
26
40 {
41 public:
42 AWS_BEDROCKAGENTRUNTIME_API InvocationResultMember() = default;
43 AWS_BEDROCKAGENTRUNTIME_API InvocationResultMember(Aws::Utils::Json::JsonView jsonValue);
44 AWS_BEDROCKAGENTRUNTIME_API InvocationResultMember& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const ApiResult& GetApiResult() const { return m_apiResult; }
53 inline bool ApiResultHasBeenSet() const { return m_apiResultHasBeenSet; }
54 template<typename ApiResultT = ApiResult>
55 void SetApiResult(ApiResultT&& value) { m_apiResultHasBeenSet = true; m_apiResult = std::forward<ApiResultT>(value); }
56 template<typename ApiResultT = ApiResult>
57 InvocationResultMember& WithApiResult(ApiResultT&& value) { SetApiResult(std::forward<ApiResultT>(value)); return *this;}
59
61
64 inline const FunctionResult& GetFunctionResult() const { return m_functionResult; }
65 inline bool FunctionResultHasBeenSet() const { return m_functionResultHasBeenSet; }
66 template<typename FunctionResultT = FunctionResult>
67 void SetFunctionResult(FunctionResultT&& value) { m_functionResultHasBeenSet = true; m_functionResult = std::forward<FunctionResultT>(value); }
68 template<typename FunctionResultT = FunctionResult>
69 InvocationResultMember& WithFunctionResult(FunctionResultT&& value) { SetFunctionResult(std::forward<FunctionResultT>(value)); return *this;}
71 private:
72
73 ApiResult m_apiResult;
74 bool m_apiResultHasBeenSet = false;
75
76 FunctionResult m_functionResult;
77 bool m_functionResultHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace BedrockAgentRuntime
82} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
InvocationResultMember & WithFunctionResult(FunctionResultT &&value)
InvocationResultMember & WithApiResult(ApiResultT &&value)
AWS_BEDROCKAGENTRUNTIME_API InvocationResultMember()=default
AWS_BEDROCKAGENTRUNTIME_API InvocationResultMember & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API InvocationResultMember(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue