AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockAgentRuntime {
21namespace Model {
22
36 public:
37 AWS_BEDROCKAGENTRUNTIME_API InvocationResultMember() = default;
40 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const ApiResult& GetApiResult() const { return m_apiResult; }
47 inline bool ApiResultHasBeenSet() const { return m_apiResultHasBeenSet; }
48 template <typename ApiResultT = ApiResult>
49 void SetApiResult(ApiResultT&& value) {
50 m_apiResultHasBeenSet = true;
51 m_apiResult = std::forward<ApiResultT>(value);
52 }
53 template <typename ApiResultT = ApiResult>
55 SetApiResult(std::forward<ApiResultT>(value));
56 return *this;
57 }
59
61
64 inline const FunctionResult& GetFunctionResult() const { return m_functionResult; }
65 inline bool FunctionResultHasBeenSet() const { return m_functionResultHasBeenSet; }
66 template <typename FunctionResultT = FunctionResult>
68 m_functionResultHasBeenSet = true;
69 m_functionResult = std::forward<FunctionResultT>(value);
70 }
71 template <typename FunctionResultT = FunctionResult>
73 SetFunctionResult(std::forward<FunctionResultT>(value));
74 return *this;
75 }
77 private:
78 ApiResult m_apiResult;
79
80 FunctionResult m_functionResult;
81 bool m_apiResultHasBeenSet = false;
82 bool m_functionResultHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace BedrockAgentRuntime
87} // 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)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue