AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
AgenticRetrieveTraceEvent.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/context/model/AgenticRetrieveTraceEventAttributes.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/crt/cbor/Cbor.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace Context {
22namespace Model {
23
32 public:
33 AWS_CONTEXT_API AgenticRetrieveTraceEvent() = default;
34 AWS_CONTEXT_API AgenticRetrieveTraceEvent(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CONTEXT_API AgenticRetrieveTraceEvent& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
42 inline const Aws::String& GetId() const { return m_id; }
43 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
44 template <typename IdT = Aws::String>
45 void SetId(IdT&& value) {
46 m_idHasBeenSet = true;
47 m_id = std::forward<IdT>(value);
48 }
49 template <typename IdT = Aws::String>
51 SetId(std::forward<IdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Utils::DateTime& GetOccurredAt() const { return m_occurredAt; }
61 inline bool OccurredAtHasBeenSet() const { return m_occurredAtHasBeenSet; }
62 template <typename OccurredAtT = Aws::Utils::DateTime>
63 void SetOccurredAt(OccurredAtT&& value) {
64 m_occurredAtHasBeenSet = true;
65 m_occurredAt = std::forward<OccurredAtT>(value);
66 }
67 template <typename OccurredAtT = Aws::Utils::DateTime>
69 SetOccurredAt(std::forward<OccurredAtT>(value));
70 return *this;
71 }
73
75
79 inline const AgenticRetrieveTraceEventAttributes& GetAttributes() const { return m_attributes; }
80 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
81 template <typename AttributesT = AgenticRetrieveTraceEventAttributes>
82 void SetAttributes(AttributesT&& value) {
83 m_attributesHasBeenSet = true;
84 m_attributes = std::forward<AttributesT>(value);
85 }
86 template <typename AttributesT = AgenticRetrieveTraceEventAttributes>
88 SetAttributes(std::forward<AttributesT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_id;
94
95 Aws::Utils::DateTime m_occurredAt{};
96
97 AgenticRetrieveTraceEventAttributes m_attributes;
98 bool m_idHasBeenSet = false;
99 bool m_occurredAtHasBeenSet = false;
100 bool m_attributesHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace Context
105} // namespace Aws
AWS_CONTEXT_API AgenticRetrieveTraceEvent & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AgenticRetrieveTraceEvent & WithAttributes(AttributesT &&value)
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::Utils::DateTime & GetOccurredAt() const
const AgenticRetrieveTraceEventAttributes & GetAttributes() const
AWS_CONTEXT_API AgenticRetrieveTraceEvent(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CONTEXT_API AgenticRetrieveTraceEvent()=default
AgenticRetrieveTraceEvent & WithOccurredAt(OccurredAtT &&value)
AgenticRetrieveTraceEvent & WithId(IdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String