AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
AgenticRetrieveTraceEventAttributes.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/AgenticRetrieveAction.h>
9#include <aws/bedrock-agent-runtime/model/AgenticRetrieveFailure.h>
10#include <aws/bedrock-agent-runtime/model/AgenticRetrieveSourceMetadata.h>
11#include <aws/bedrock-agent-runtime/model/AgenticRetrieveStatus.h>
12#include <aws/bedrock-agent-runtime/model/AgenticRetrieveStep.h>
13#include <aws/bedrock-agent-runtime/model/AgenticRetrieveTraceResultItem.h>
14#include <aws/bedrock-agent-runtime/model/AgenticRetrieveWarning.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace BedrockAgentRuntime {
28namespace Model {
29
37 public:
38 AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveTraceEventAttributes() = default;
41 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::Vector<AgenticRetrieveAction>& GetActions() const { return m_actions; }
48 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
49 template <typename ActionsT = Aws::Vector<AgenticRetrieveAction>>
50 void SetActions(ActionsT&& value) {
51 m_actionsHasBeenSet = true;
52 m_actions = std::forward<ActionsT>(value);
53 }
54 template <typename ActionsT = Aws::Vector<AgenticRetrieveAction>>
56 SetActions(std::forward<ActionsT>(value));
57 return *this;
58 }
59 template <typename ActionsT = AgenticRetrieveAction>
61 m_actionsHasBeenSet = true;
62 m_actions.emplace_back(std::forward<ActionsT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::Vector<AgenticRetrieveFailure>& GetFailures() const { return m_failures; }
72 inline bool FailuresHasBeenSet() const { return m_failuresHasBeenSet; }
73 template <typename FailuresT = Aws::Vector<AgenticRetrieveFailure>>
74 void SetFailures(FailuresT&& value) {
75 m_failuresHasBeenSet = true;
76 m_failures = std::forward<FailuresT>(value);
77 }
78 template <typename FailuresT = Aws::Vector<AgenticRetrieveFailure>>
80 SetFailures(std::forward<FailuresT>(value));
81 return *this;
82 }
83 template <typename FailuresT = AgenticRetrieveFailure>
85 m_failuresHasBeenSet = true;
86 m_failures.emplace_back(std::forward<FailuresT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetMessage() const { return m_message; }
96 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
97 template <typename MessageT = Aws::String>
98 void SetMessage(MessageT&& value) {
99 m_messageHasBeenSet = true;
100 m_message = std::forward<MessageT>(value);
101 }
102 template <typename MessageT = Aws::String>
104 SetMessage(std::forward<MessageT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Vector<AgenticRetrieveSourceMetadata>& GetRetrievalMetadata() const { return m_retrievalMetadata; }
114 inline bool RetrievalMetadataHasBeenSet() const { return m_retrievalMetadataHasBeenSet; }
115 template <typename RetrievalMetadataT = Aws::Vector<AgenticRetrieveSourceMetadata>>
117 m_retrievalMetadataHasBeenSet = true;
118 m_retrievalMetadata = std::forward<RetrievalMetadataT>(value);
119 }
120 template <typename RetrievalMetadataT = Aws::Vector<AgenticRetrieveSourceMetadata>>
122 SetRetrievalMetadata(std::forward<RetrievalMetadataT>(value));
123 return *this;
124 }
125 template <typename RetrievalMetadataT = AgenticRetrieveSourceMetadata>
127 m_retrievalMetadataHasBeenSet = true;
128 m_retrievalMetadata.emplace_back(std::forward<RetrievalMetadataT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::Vector<AgenticRetrieveTraceResultItem>& GetRetrievalResponse() const { return m_retrievalResponse; }
138 inline bool RetrievalResponseHasBeenSet() const { return m_retrievalResponseHasBeenSet; }
139 template <typename RetrievalResponseT = Aws::Vector<AgenticRetrieveTraceResultItem>>
141 m_retrievalResponseHasBeenSet = true;
142 m_retrievalResponse = std::forward<RetrievalResponseT>(value);
143 }
144 template <typename RetrievalResponseT = Aws::Vector<AgenticRetrieveTraceResultItem>>
146 SetRetrievalResponse(std::forward<RetrievalResponseT>(value));
147 return *this;
148 }
149 template <typename RetrievalResponseT = AgenticRetrieveTraceResultItem>
151 m_retrievalResponseHasBeenSet = true;
152 m_retrievalResponse.emplace_back(std::forward<RetrievalResponseT>(value));
153 return *this;
154 }
156
158
161 inline AgenticRetrieveStatus GetStatus() const { return m_status; }
162 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
163 inline void SetStatus(AgenticRetrieveStatus value) {
164 m_statusHasBeenSet = true;
165 m_status = value;
166 }
168 SetStatus(value);
169 return *this;
170 }
172
174
177 inline AgenticRetrieveStep GetStep() const { return m_step; }
178 inline bool StepHasBeenSet() const { return m_stepHasBeenSet; }
179 inline void SetStep(AgenticRetrieveStep value) {
180 m_stepHasBeenSet = true;
181 m_step = value;
182 }
184 SetStep(value);
185 return *this;
186 }
188
190
193 inline const Aws::Vector<AgenticRetrieveWarning>& GetWarnings() const { return m_warnings; }
194 inline bool WarningsHasBeenSet() const { return m_warningsHasBeenSet; }
195 template <typename WarningsT = Aws::Vector<AgenticRetrieveWarning>>
196 void SetWarnings(WarningsT&& value) {
197 m_warningsHasBeenSet = true;
198 m_warnings = std::forward<WarningsT>(value);
199 }
200 template <typename WarningsT = Aws::Vector<AgenticRetrieveWarning>>
202 SetWarnings(std::forward<WarningsT>(value));
203 return *this;
204 }
205 template <typename WarningsT = AgenticRetrieveWarning>
207 m_warningsHasBeenSet = true;
208 m_warnings.emplace_back(std::forward<WarningsT>(value));
209 return *this;
210 }
212 private:
214
216
217 Aws::String m_message;
218
220
222
224
226
228 bool m_actionsHasBeenSet = false;
229 bool m_failuresHasBeenSet = false;
230 bool m_messageHasBeenSet = false;
231 bool m_retrievalMetadataHasBeenSet = false;
232 bool m_retrievalResponseHasBeenSet = false;
233 bool m_statusHasBeenSet = false;
234 bool m_stepHasBeenSet = false;
235 bool m_warningsHasBeenSet = false;
236};
237
238} // namespace Model
239} // namespace BedrockAgentRuntime
240} // namespace Aws
AgenticRetrieveTraceEventAttributes & WithStep(AgenticRetrieveStep value)
const Aws::Vector< AgenticRetrieveTraceResultItem > & GetRetrievalResponse() const
AgenticRetrieveTraceEventAttributes & WithRetrievalResponse(RetrievalResponseT &&value)
AgenticRetrieveTraceEventAttributes & AddRetrievalResponse(RetrievalResponseT &&value)
AgenticRetrieveTraceEventAttributes & WithRetrievalMetadata(RetrievalMetadataT &&value)
AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveTraceEventAttributes(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AgenticRetrieveSourceMetadata > & GetRetrievalMetadata() const
AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveTraceEventAttributes()=default
AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveTraceEventAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
AgenticRetrieveTraceEventAttributes & WithStatus(AgenticRetrieveStatus value)
AgenticRetrieveTraceEventAttributes & AddRetrievalMetadata(RetrievalMetadataT &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue