AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetActionGroup(const Aws::String& value) { m_actionGroupHasBeenSet = true; m_actionGroup = value; }
56 inline void SetActionGroup(Aws::String&& value) { m_actionGroupHasBeenSet = true; m_actionGroup = std::move(value); }
57 inline void SetActionGroup(const char* value) { m_actionGroupHasBeenSet = true; m_actionGroup.assign(value); }
58 inline FunctionResult& WithActionGroup(const Aws::String& value) { SetActionGroup(value); return *this;}
59 inline FunctionResult& WithActionGroup(Aws::String&& value) { SetActionGroup(std::move(value)); return *this;}
60 inline FunctionResult& WithActionGroup(const char* value) { SetActionGroup(value); return *this;}
62
64
68 inline const ConfirmationState& GetConfirmationState() const{ return m_confirmationState; }
69 inline bool ConfirmationStateHasBeenSet() const { return m_confirmationStateHasBeenSet; }
70 inline void SetConfirmationState(const ConfirmationState& value) { m_confirmationStateHasBeenSet = true; m_confirmationState = value; }
71 inline void SetConfirmationState(ConfirmationState&& value) { m_confirmationStateHasBeenSet = true; m_confirmationState = std::move(value); }
72 inline FunctionResult& WithConfirmationState(const ConfirmationState& value) { SetConfirmationState(value); return *this;}
73 inline FunctionResult& WithConfirmationState(ConfirmationState&& value) { SetConfirmationState(std::move(value)); return *this;}
75
77
80 inline const Aws::String& GetFunction() const{ return m_function; }
81 inline bool FunctionHasBeenSet() const { return m_functionHasBeenSet; }
82 inline void SetFunction(const Aws::String& value) { m_functionHasBeenSet = true; m_function = value; }
83 inline void SetFunction(Aws::String&& value) { m_functionHasBeenSet = true; m_function = std::move(value); }
84 inline void SetFunction(const char* value) { m_functionHasBeenSet = true; m_function.assign(value); }
85 inline FunctionResult& WithFunction(const Aws::String& value) { SetFunction(value); return *this;}
86 inline FunctionResult& WithFunction(Aws::String&& value) { SetFunction(std::move(value)); return *this;}
87 inline FunctionResult& WithFunction(const char* value) { SetFunction(value); return *this;}
89
91
96 inline const Aws::Map<Aws::String, ContentBody>& GetResponseBody() const{ return m_responseBody; }
97 inline bool ResponseBodyHasBeenSet() const { return m_responseBodyHasBeenSet; }
98 inline void SetResponseBody(const Aws::Map<Aws::String, ContentBody>& value) { m_responseBodyHasBeenSet = true; m_responseBody = value; }
99 inline void SetResponseBody(Aws::Map<Aws::String, ContentBody>&& value) { m_responseBodyHasBeenSet = true; m_responseBody = std::move(value); }
101 inline FunctionResult& WithResponseBody(Aws::Map<Aws::String, ContentBody>&& value) { SetResponseBody(std::move(value)); return *this;}
102 inline FunctionResult& AddResponseBody(const Aws::String& key, const ContentBody& value) { m_responseBodyHasBeenSet = true; m_responseBody.emplace(key, value); return *this; }
103 inline FunctionResult& AddResponseBody(Aws::String&& key, const ContentBody& value) { m_responseBodyHasBeenSet = true; m_responseBody.emplace(std::move(key), value); return *this; }
104 inline FunctionResult& AddResponseBody(const Aws::String& key, ContentBody&& value) { m_responseBodyHasBeenSet = true; m_responseBody.emplace(key, std::move(value)); return *this; }
105 inline FunctionResult& AddResponseBody(Aws::String&& key, ContentBody&& value) { m_responseBodyHasBeenSet = true; m_responseBody.emplace(std::move(key), std::move(value)); return *this; }
106 inline FunctionResult& AddResponseBody(const char* key, ContentBody&& value) { m_responseBodyHasBeenSet = true; m_responseBody.emplace(key, std::move(value)); return *this; }
107 inline FunctionResult& AddResponseBody(const char* key, const ContentBody& value) { m_responseBodyHasBeenSet = true; m_responseBody.emplace(key, value); return *this; }
109
111
117 inline const ResponseState& GetResponseState() const{ return m_responseState; }
118 inline bool ResponseStateHasBeenSet() const { return m_responseStateHasBeenSet; }
119 inline void SetResponseState(const ResponseState& value) { m_responseStateHasBeenSet = true; m_responseState = value; }
120 inline void SetResponseState(ResponseState&& value) { m_responseStateHasBeenSet = true; m_responseState = std::move(value); }
121 inline FunctionResult& WithResponseState(const ResponseState& value) { SetResponseState(value); return *this;}
122 inline FunctionResult& WithResponseState(ResponseState&& value) { SetResponseState(std::move(value)); return *this;}
124 private:
125
126 Aws::String m_actionGroup;
127 bool m_actionGroupHasBeenSet = false;
128
129 ConfirmationState m_confirmationState;
130 bool m_confirmationStateHasBeenSet = false;
131
132 Aws::String m_function;
133 bool m_functionHasBeenSet = false;
134
136 bool m_responseBodyHasBeenSet = false;
137
138 ResponseState m_responseState;
139 bool m_responseStateHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace BedrockAgentRuntime
144} // namespace Aws
FunctionResult & WithConfirmationState(ConfirmationState &&value)
void SetConfirmationState(const ConfirmationState &value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
FunctionResult & AddResponseBody(const char *key, const ContentBody &value)
void SetConfirmationState(ConfirmationState &&value)
FunctionResult & AddResponseBody(const Aws::String &key, ContentBody &&value)
const ConfirmationState & GetConfirmationState() const
void SetResponseBody(const Aws::Map< Aws::String, ContentBody > &value)
AWS_BEDROCKAGENTRUNTIME_API FunctionResult & operator=(Aws::Utils::Json::JsonView jsonValue)
FunctionResult & AddResponseBody(Aws::String &&key, const ContentBody &value)
AWS_BEDROCKAGENTRUNTIME_API FunctionResult()
FunctionResult & WithResponseState(ResponseState &&value)
FunctionResult & WithConfirmationState(const ConfirmationState &value)
FunctionResult & WithResponseBody(const Aws::Map< Aws::String, ContentBody > &value)
FunctionResult & WithFunction(const char *value)
FunctionResult & AddResponseBody(const char *key, ContentBody &&value)
void SetResponseState(const ResponseState &value)
FunctionResult & WithActionGroup(const Aws::String &value)
FunctionResult & AddResponseBody(Aws::String &&key, ContentBody &&value)
FunctionResult & AddResponseBody(const Aws::String &key, const ContentBody &value)
const ResponseState & GetResponseState() const
FunctionResult & WithResponseState(const ResponseState &value)
void SetActionGroup(const Aws::String &value)
const Aws::Map< Aws::String, ContentBody > & GetResponseBody() const
FunctionResult & WithActionGroup(const char *value)
void SetResponseBody(Aws::Map< Aws::String, ContentBody > &&value)
void SetFunction(const Aws::String &value)
FunctionResult & WithActionGroup(Aws::String &&value)
FunctionResult & WithResponseBody(Aws::Map< Aws::String, ContentBody > &&value)
FunctionResult & WithFunction(Aws::String &&value)
AWS_BEDROCKAGENTRUNTIME_API FunctionResult(Aws::Utils::Json::JsonView jsonValue)
FunctionResult & WithFunction(const Aws::String &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