AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
FunctionResult.h
1
6#pragma once
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>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace BedrockAgentRuntime
26{
27namespace Model
28{
29
41 {
42 public:
43 AWS_BEDROCKAGENTRUNTIME_API FunctionResult() = default;
44 AWS_BEDROCKAGENTRUNTIME_API FunctionResult(Aws::Utils::Json::JsonView jsonValue);
45 AWS_BEDROCKAGENTRUNTIME_API FunctionResult& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetActionGroup() const { return m_actionGroup; }
54 inline bool ActionGroupHasBeenSet() const { return m_actionGroupHasBeenSet; }
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>
58 FunctionResult& WithActionGroup(ActionGroupT&& value) { SetActionGroup(std::forward<ActionGroupT>(value)); return *this;}
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) { m_agentIdHasBeenSet = true; m_agentId = std::forward<AgentIdT>(value); }
69 template<typename AgentIdT = Aws::String>
70 FunctionResult& WithAgentId(AgentIdT&& value) { SetAgentId(std::forward<AgentIdT>(value)); return *this;}
72
74
78 inline ConfirmationState GetConfirmationState() const { return m_confirmationState; }
79 inline bool ConfirmationStateHasBeenSet() const { return m_confirmationStateHasBeenSet; }
80 inline void SetConfirmationState(ConfirmationState value) { m_confirmationStateHasBeenSet = true; m_confirmationState = value; }
83
85
88 inline const Aws::String& GetFunction() const { return m_function; }
89 inline bool FunctionHasBeenSet() const { return m_functionHasBeenSet; }
90 template<typename FunctionT = Aws::String>
91 void SetFunction(FunctionT&& value) { m_functionHasBeenSet = true; m_function = std::forward<FunctionT>(value); }
92 template<typename FunctionT = Aws::String>
93 FunctionResult& WithFunction(FunctionT&& value) { SetFunction(std::forward<FunctionT>(value)); return *this;}
95
97
108 inline const Aws::Map<Aws::String, ContentBody>& GetResponseBody() const { return m_responseBody; }
109 inline bool ResponseBodyHasBeenSet() const { return m_responseBodyHasBeenSet; }
110 template<typename ResponseBodyT = Aws::Map<Aws::String, ContentBody>>
111 void SetResponseBody(ResponseBodyT&& value) { m_responseBodyHasBeenSet = true; m_responseBody = std::forward<ResponseBodyT>(value); }
112 template<typename ResponseBodyT = Aws::Map<Aws::String, ContentBody>>
113 FunctionResult& WithResponseBody(ResponseBodyT&& value) { SetResponseBody(std::forward<ResponseBodyT>(value)); return *this;}
114 template<typename ResponseBodyKeyT = Aws::String, typename ResponseBodyValueT = ContentBody>
115 FunctionResult& AddResponseBody(ResponseBodyKeyT&& key, ResponseBodyValueT&& value) {
116 m_responseBodyHasBeenSet = true; m_responseBody.emplace(std::forward<ResponseBodyKeyT>(key), std::forward<ResponseBodyValueT>(value)); return *this;
117 }
119
121
127 inline ResponseState GetResponseState() const { return m_responseState; }
128 inline bool ResponseStateHasBeenSet() const { return m_responseStateHasBeenSet; }
129 inline void SetResponseState(ResponseState value) { m_responseStateHasBeenSet = true; m_responseState = value; }
130 inline FunctionResult& WithResponseState(ResponseState value) { SetResponseState(value); return *this;}
132 private:
133
134 Aws::String m_actionGroup;
135 bool m_actionGroupHasBeenSet = false;
136
137 Aws::String m_agentId;
138 bool m_agentIdHasBeenSet = false;
139
141 bool m_confirmationStateHasBeenSet = false;
142
143 Aws::String m_function;
144 bool m_functionHasBeenSet = false;
145
147 bool m_responseBodyHasBeenSet = false;
148
149 ResponseState m_responseState{ResponseState::NOT_SET};
150 bool m_responseStateHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace BedrockAgentRuntime
155} // 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::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