AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
MessageOutput.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qconnect/QConnect_EXPORTS.h>
10#include <aws/qconnect/model/MessageData.h>
11#include <aws/qconnect/model/Participant.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QConnect {
23namespace Model {
24
31 public:
32 AWS_QCONNECT_API MessageOutput() = default;
35 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const MessageData& GetValue() const { return m_value; }
42 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
43 template <typename ValueT = MessageData>
44 void SetValue(ValueT&& value) {
45 m_valueHasBeenSet = true;
46 m_value = std::forward<ValueT>(value);
47 }
48 template <typename ValueT = MessageData>
50 SetValue(std::forward<ValueT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetMessageId() const { return m_messageId; }
60 inline bool MessageIdHasBeenSet() const { return m_messageIdHasBeenSet; }
61 template <typename MessageIdT = Aws::String>
62 void SetMessageId(MessageIdT&& value) {
63 m_messageIdHasBeenSet = true;
64 m_messageId = std::forward<MessageIdT>(value);
65 }
66 template <typename MessageIdT = Aws::String>
68 SetMessageId(std::forward<MessageIdT>(value));
69 return *this;
70 }
72
74
77 inline Participant GetParticipant() const { return m_participant; }
78 inline bool ParticipantHasBeenSet() const { return m_participantHasBeenSet; }
79 inline void SetParticipant(Participant value) {
80 m_participantHasBeenSet = true;
81 m_participant = value;
82 }
84 SetParticipant(value);
85 return *this;
86 }
88
90
93 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
94 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
95 template <typename TimestampT = Aws::Utils::DateTime>
96 void SetTimestamp(TimestampT&& value) {
97 m_timestampHasBeenSet = true;
98 m_timestamp = std::forward<TimestampT>(value);
99 }
100 template <typename TimestampT = Aws::Utils::DateTime>
102 SetTimestamp(std::forward<TimestampT>(value));
103 return *this;
104 }
106 private:
107 MessageData m_value;
108
109 Aws::String m_messageId;
110
111 Participant m_participant{Participant::NOT_SET};
112
113 Aws::Utils::DateTime m_timestamp{};
114 bool m_valueHasBeenSet = false;
115 bool m_messageIdHasBeenSet = false;
116 bool m_participantHasBeenSet = false;
117 bool m_timestampHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace QConnect
122} // namespace Aws
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const MessageData & GetValue() const
MessageOutput & WithParticipant(Participant value)
AWS_QCONNECT_API MessageOutput()=default
void SetMessageId(MessageIdT &&value)
AWS_QCONNECT_API MessageOutput(Aws::Utils::Json::JsonView jsonValue)
void SetTimestamp(TimestampT &&value)
MessageOutput & WithTimestamp(TimestampT &&value)
MessageOutput & WithMessageId(MessageIdT &&value)
void SetParticipant(Participant value)
MessageOutput & WithValue(ValueT &&value)
const Aws::Utils::DateTime & GetTimestamp() const
const Aws::String & GetMessageId() const
AWS_QCONNECT_API MessageOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue