AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
AgenticRetrieveTraceEventAttributes.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/context/model/AgenticRetrieveAction.h>
9#include <aws/context/model/AgenticRetrieveFailure.h>
10#include <aws/context/model/AgenticRetrieveStep.h>
11#include <aws/context/model/AgenticRetrieveStepStatus.h>
12#include <aws/context/model/AgenticRetrieveWarning.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/crt/cbor/Cbor.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Cbor {
22class CborValue;
23} // namespace Cbor
24} // namespace Utils
25namespace Context {
26namespace Model {
27
36 public:
37 AWS_CONTEXT_API AgenticRetrieveTraceEventAttributes() = default;
38 AWS_CONTEXT_API AgenticRetrieveTraceEventAttributes(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_CONTEXT_API AgenticRetrieveTraceEventAttributes& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
40 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
41
43
49 inline AgenticRetrieveStep GetStep() const { return m_step; }
50 inline bool StepHasBeenSet() const { return m_stepHasBeenSet; }
51 inline void SetStep(AgenticRetrieveStep value) {
52 m_stepHasBeenSet = true;
53 m_step = value;
54 }
56 SetStep(value);
57 return *this;
58 }
60
62
69 inline AgenticRetrieveStepStatus GetStatus() const { return m_status; }
70 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
72 m_statusHasBeenSet = true;
73 m_status = value;
74 }
76 SetStatus(value);
77 return *this;
78 }
80
82
85 inline const Aws::String& GetMessage() const { return m_message; }
86 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
87 template <typename MessageT = Aws::String>
88 void SetMessage(MessageT&& value) {
89 m_messageHasBeenSet = true;
90 m_message = std::forward<MessageT>(value);
91 }
92 template <typename MessageT = Aws::String>
94 SetMessage(std::forward<MessageT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::Vector<AgenticRetrieveAction>& GetActions() const { return m_actions; }
104 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
105 template <typename ActionsT = Aws::Vector<AgenticRetrieveAction>>
106 void SetActions(ActionsT&& value) {
107 m_actionsHasBeenSet = true;
108 m_actions = std::forward<ActionsT>(value);
109 }
110 template <typename ActionsT = Aws::Vector<AgenticRetrieveAction>>
112 SetActions(std::forward<ActionsT>(value));
113 return *this;
114 }
115 template <typename ActionsT = AgenticRetrieveAction>
117 m_actionsHasBeenSet = true;
118 m_actions.emplace_back(std::forward<ActionsT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::Vector<AgenticRetrieveWarning>& GetWarnings() const { return m_warnings; }
128 inline bool WarningsHasBeenSet() const { return m_warningsHasBeenSet; }
129 template <typename WarningsT = Aws::Vector<AgenticRetrieveWarning>>
130 void SetWarnings(WarningsT&& value) {
131 m_warningsHasBeenSet = true;
132 m_warnings = std::forward<WarningsT>(value);
133 }
134 template <typename WarningsT = Aws::Vector<AgenticRetrieveWarning>>
136 SetWarnings(std::forward<WarningsT>(value));
137 return *this;
138 }
139 template <typename WarningsT = AgenticRetrieveWarning>
141 m_warningsHasBeenSet = true;
142 m_warnings.emplace_back(std::forward<WarningsT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::Vector<AgenticRetrieveFailure>& GetFailures() const { return m_failures; }
152 inline bool FailuresHasBeenSet() const { return m_failuresHasBeenSet; }
153 template <typename FailuresT = Aws::Vector<AgenticRetrieveFailure>>
154 void SetFailures(FailuresT&& value) {
155 m_failuresHasBeenSet = true;
156 m_failures = std::forward<FailuresT>(value);
157 }
158 template <typename FailuresT = Aws::Vector<AgenticRetrieveFailure>>
160 SetFailures(std::forward<FailuresT>(value));
161 return *this;
162 }
163 template <typename FailuresT = AgenticRetrieveFailure>
165 m_failuresHasBeenSet = true;
166 m_failures.emplace_back(std::forward<FailuresT>(value));
167 return *this;
168 }
170 private:
172
174
175 Aws::String m_message;
176
178
180
182 bool m_stepHasBeenSet = false;
183 bool m_statusHasBeenSet = false;
184 bool m_messageHasBeenSet = false;
185 bool m_actionsHasBeenSet = false;
186 bool m_warningsHasBeenSet = false;
187 bool m_failuresHasBeenSet = false;
188};
189
190} // namespace Model
191} // namespace Context
192} // namespace Aws
AgenticRetrieveTraceEventAttributes & WithStatus(AgenticRetrieveStepStatus value)
AgenticRetrieveTraceEventAttributes & WithStep(AgenticRetrieveStep value)
AWS_CONTEXT_API AgenticRetrieveTraceEventAttributes & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AgenticRetrieveTraceEventAttributes & AddActions(ActionsT &&value)
AgenticRetrieveTraceEventAttributes & AddWarnings(WarningsT &&value)
AgenticRetrieveTraceEventAttributes & AddFailures(FailuresT &&value)
AWS_CONTEXT_API AgenticRetrieveTraceEventAttributes(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AgenticRetrieveTraceEventAttributes & WithActions(ActionsT &&value)
const Aws::Vector< AgenticRetrieveWarning > & GetWarnings() const
AgenticRetrieveTraceEventAttributes & WithFailures(FailuresT &&value)
const Aws::Vector< AgenticRetrieveAction > & GetActions() const
AgenticRetrieveTraceEventAttributes & WithWarnings(WarningsT &&value)
AgenticRetrieveTraceEventAttributes & WithMessage(MessageT &&value)
const Aws::Vector< AgenticRetrieveFailure > & GetFailures() const
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector