AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SpanMessage.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/qconnect/QConnect_EXPORTS.h>
11#include <aws/qconnect/model/Participant.h>
12#include <aws/qconnect/model/SpanMessageValue.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QConnect {
24namespace Model {
25
33 public:
34 AWS_QCONNECT_API SpanMessage() = default;
37 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetMessageId() const { return m_messageId; }
44 inline bool MessageIdHasBeenSet() const { return m_messageIdHasBeenSet; }
45 template <typename MessageIdT = Aws::String>
46 void SetMessageId(MessageIdT&& value) {
47 m_messageIdHasBeenSet = true;
48 m_messageId = std::forward<MessageIdT>(value);
49 }
50 template <typename MessageIdT = Aws::String>
52 SetMessageId(std::forward<MessageIdT>(value));
53 return *this;
54 }
56
58
61 inline Participant GetParticipant() const { return m_participant; }
62 inline bool ParticipantHasBeenSet() const { return m_participantHasBeenSet; }
63 inline void SetParticipant(Participant value) {
64 m_participantHasBeenSet = true;
65 m_participant = value;
66 }
68 SetParticipant(value);
69 return *this;
70 }
72
74
77 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
78 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
79 template <typename TimestampT = Aws::Utils::DateTime>
80 void SetTimestamp(TimestampT&& value) {
81 m_timestampHasBeenSet = true;
82 m_timestamp = std::forward<TimestampT>(value);
83 }
84 template <typename TimestampT = Aws::Utils::DateTime>
86 SetTimestamp(std::forward<TimestampT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Vector<SpanMessageValue>& GetValues() const { return m_values; }
96 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
97 template <typename ValuesT = Aws::Vector<SpanMessageValue>>
98 void SetValues(ValuesT&& value) {
99 m_valuesHasBeenSet = true;
100 m_values = std::forward<ValuesT>(value);
101 }
102 template <typename ValuesT = Aws::Vector<SpanMessageValue>>
104 SetValues(std::forward<ValuesT>(value));
105 return *this;
106 }
107 template <typename ValuesT = SpanMessageValue>
109 m_valuesHasBeenSet = true;
110 m_values.emplace_back(std::forward<ValuesT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_messageId;
116
117 Participant m_participant{Participant::NOT_SET};
118
119 Aws::Utils::DateTime m_timestamp{};
120
122 bool m_messageIdHasBeenSet = false;
123 bool m_participantHasBeenSet = false;
124 bool m_timestampHasBeenSet = false;
125 bool m_valuesHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace QConnect
130} // namespace Aws
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetTimestamp() const
Definition SpanMessage.h:77
SpanMessage & WithTimestamp(TimestampT &&value)
Definition SpanMessage.h:85
SpanMessage & WithMessageId(MessageIdT &&value)
Definition SpanMessage.h:51
Participant GetParticipant() const
Definition SpanMessage.h:61
void SetTimestamp(TimestampT &&value)
Definition SpanMessage.h:80
SpanMessage & WithValues(ValuesT &&value)
SpanMessage & WithParticipant(Participant value)
Definition SpanMessage.h:67
AWS_QCONNECT_API SpanMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMessageId(MessageIdT &&value)
Definition SpanMessage.h:46
const Aws::Vector< SpanMessageValue > & GetValues() const
Definition SpanMessage.h:95
const Aws::String & GetMessageId() const
Definition SpanMessage.h:43
SpanMessage & AddValues(ValuesT &&value)
void SetValues(ValuesT &&value)
Definition SpanMessage.h:98
void SetParticipant(Participant value)
Definition SpanMessage.h:63
AWS_QCONNECT_API SpanMessage(Aws::Utils::Json::JsonView jsonValue)
AWS_QCONNECT_API SpanMessage()=default
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