AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MessageOutput.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/qconnect/model/MessageData.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/qconnect/model/Participant.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace QConnect
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_QCONNECT_API MessageOutput() = default;
40 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const MessageData& GetValue() const { return m_value; }
48 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
49 template<typename ValueT = MessageData>
50 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
51 template<typename ValueT = MessageData>
52 MessageOutput& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
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) { m_messageIdHasBeenSet = true; m_messageId = std::forward<MessageIdT>(value); }
63 template<typename MessageIdT = Aws::String>
64 MessageOutput& WithMessageId(MessageIdT&& value) { SetMessageId(std::forward<MessageIdT>(value)); return *this;}
66
68
71 inline Participant GetParticipant() const { return m_participant; }
72 inline bool ParticipantHasBeenSet() const { return m_participantHasBeenSet; }
73 inline void SetParticipant(Participant value) { m_participantHasBeenSet = true; m_participant = value; }
74 inline MessageOutput& WithParticipant(Participant value) { SetParticipant(value); return *this;}
76
78
81 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
82 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
83 template<typename TimestampT = Aws::Utils::DateTime>
84 void SetTimestamp(TimestampT&& value) { m_timestampHasBeenSet = true; m_timestamp = std::forward<TimestampT>(value); }
85 template<typename TimestampT = Aws::Utils::DateTime>
86 MessageOutput& WithTimestamp(TimestampT&& value) { SetTimestamp(std::forward<TimestampT>(value)); return *this;}
88 private:
89
90 MessageData m_value;
91 bool m_valueHasBeenSet = false;
92
93 Aws::String m_messageId;
94 bool m_messageIdHasBeenSet = false;
95
96 Participant m_participant{Participant::NOT_SET};
97 bool m_participantHasBeenSet = false;
98
99 Aws::Utils::DateTime m_timestamp{};
100 bool m_timestampHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace QConnect
105} // 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