AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
FunctionResult.h
1
6#pragma once
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>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BedrockAgentRuntime {
24namespace Model {
25
37 public:
38 AWS_BEDROCKAGENTRUNTIME_API FunctionResult() = default;
41 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetActionGroup() const { return m_actionGroup; }
48 inline bool ActionGroupHasBeenSet() const { return m_actionGroupHasBeenSet; }
49 template <typename ActionGroupT = Aws::String>
51 m_actionGroupHasBeenSet = true;
52 m_actionGroup = std::forward<ActionGroupT>(value);
53 }
54 template <typename ActionGroupT = Aws::String>
56 SetActionGroup(std::forward<ActionGroupT>(value));
57 return *this;
58 }
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) {
69 m_agentIdHasBeenSet = true;
70 m_agentId = std::forward<AgentIdT>(value);
71 }
72 template <typename AgentIdT = Aws::String>
74 SetAgentId(std::forward<AgentIdT>(value));
75 return *this;
76 }
78
80
84 inline ConfirmationState GetConfirmationState() const { return m_confirmationState; }
85 inline bool ConfirmationStateHasBeenSet() const { return m_confirmationStateHasBeenSet; }
87 m_confirmationStateHasBeenSet = true;
88 m_confirmationState = value;
89 }
92 return *this;
93 }
95
97
100 inline const Aws::String& GetFunction() const { return m_function; }
101 inline bool FunctionHasBeenSet() const { return m_functionHasBeenSet; }
102 template <typename FunctionT = Aws::String>
103 void SetFunction(FunctionT&& value) {
104 m_functionHasBeenSet = true;
105 m_function = std::forward<FunctionT>(value);
106 }
107 template <typename FunctionT = Aws::String>
109 SetFunction(std::forward<FunctionT>(value));
110 return *this;
111 }
113
115
126 inline const Aws::Map<Aws::String, ContentBody>& GetResponseBody() const { return m_responseBody; }
127 inline bool ResponseBodyHasBeenSet() const { return m_responseBodyHasBeenSet; }
128 template <typename ResponseBodyT = Aws::Map<Aws::String, ContentBody>>
130 m_responseBodyHasBeenSet = true;
131 m_responseBody = std::forward<ResponseBodyT>(value);
132 }
133 template <typename ResponseBodyT = Aws::Map<Aws::String, ContentBody>>
135 SetResponseBody(std::forward<ResponseBodyT>(value));
136 return *this;
137 }
138 template <typename ResponseBodyKeyT = Aws::String, typename ResponseBodyValueT = ContentBody>
140 m_responseBodyHasBeenSet = true;
141 m_responseBody.emplace(std::forward<ResponseBodyKeyT>(key), std::forward<ResponseBodyValueT>(value));
142 return *this;
143 }
145
147
153 inline ResponseState GetResponseState() const { return m_responseState; }
154 inline bool ResponseStateHasBeenSet() const { return m_responseStateHasBeenSet; }
155 inline void SetResponseState(ResponseState value) {
156 m_responseStateHasBeenSet = true;
157 m_responseState = value;
158 }
160 SetResponseState(value);
161 return *this;
162 }
164 private:
165 Aws::String m_actionGroup;
166
167 Aws::String m_agentId;
168
170
171 Aws::String m_function;
172
174
175 ResponseState m_responseState{ResponseState::NOT_SET};
176 bool m_actionGroupHasBeenSet = false;
177 bool m_agentIdHasBeenSet = false;
178 bool m_confirmationStateHasBeenSet = false;
179 bool m_functionHasBeenSet = false;
180 bool m_responseBodyHasBeenSet = false;
181 bool m_responseStateHasBeenSet = false;
182};
183
184} // namespace Model
185} // namespace BedrockAgentRuntime
186} // namespace Aws
FunctionResult & WithFunction(FunctionT &&value)
FunctionResult & WithResponseBody(ResponseBodyT &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API FunctionResult & operator=(Aws::Utils::Json::JsonView jsonValue)
FunctionResult & WithResponseState(ResponseState value)
FunctionResult & WithAgentId(AgentIdT &&value)
FunctionResult & WithActionGroup(ActionGroupT &&value)
const Aws::Map< Aws::String, ContentBody > & GetResponseBody() const
AWS_BEDROCKAGENTRUNTIME_API FunctionResult()=default
FunctionResult & AddResponseBody(ResponseBodyKeyT &&key, ResponseBodyValueT &&value)
FunctionResult & WithConfirmationState(ConfirmationState value)
AWS_BEDROCKAGENTRUNTIME_API FunctionResult(Aws::Utils::Json::JsonView jsonValue)
void SetConfirmationState(ConfirmationState value)
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