AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ChannelMessageSummary.h
1
6#pragma once
7#include <aws/chime/Chime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/chime/model/ChannelMessageType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/chime/model/Identity.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 Chime
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_CHIME_API ChannelMessageSummary();
41 AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetMessageId() const{ return m_messageId; }
49 inline bool MessageIdHasBeenSet() const { return m_messageIdHasBeenSet; }
50 inline void SetMessageId(const Aws::String& value) { m_messageIdHasBeenSet = true; m_messageId = value; }
51 inline void SetMessageId(Aws::String&& value) { m_messageIdHasBeenSet = true; m_messageId = std::move(value); }
52 inline void SetMessageId(const char* value) { m_messageIdHasBeenSet = true; m_messageId.assign(value); }
53 inline ChannelMessageSummary& WithMessageId(const Aws::String& value) { SetMessageId(value); return *this;}
54 inline ChannelMessageSummary& WithMessageId(Aws::String&& value) { SetMessageId(std::move(value)); return *this;}
55 inline ChannelMessageSummary& WithMessageId(const char* value) { SetMessageId(value); return *this;}
57
59
62 inline const Aws::String& GetContent() const{ return m_content; }
63 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
64 inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
65 inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
66 inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
67 inline ChannelMessageSummary& WithContent(const Aws::String& value) { SetContent(value); return *this;}
68 inline ChannelMessageSummary& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
69 inline ChannelMessageSummary& WithContent(const char* value) { SetContent(value); return *this;}
71
73
76 inline const Aws::String& GetMetadata() const{ return m_metadata; }
77 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
78 inline void SetMetadata(const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata = value; }
79 inline void SetMetadata(Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
80 inline void SetMetadata(const char* value) { m_metadataHasBeenSet = true; m_metadata.assign(value); }
81 inline ChannelMessageSummary& WithMetadata(const Aws::String& value) { SetMetadata(value); return *this;}
82 inline ChannelMessageSummary& WithMetadata(Aws::String&& value) { SetMetadata(std::move(value)); return *this;}
83 inline ChannelMessageSummary& WithMetadata(const char* value) { SetMetadata(value); return *this;}
85
87
90 inline const ChannelMessageType& GetType() const{ return m_type; }
91 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
92 inline void SetType(const ChannelMessageType& value) { m_typeHasBeenSet = true; m_type = value; }
93 inline void SetType(ChannelMessageType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
94 inline ChannelMessageSummary& WithType(const ChannelMessageType& value) { SetType(value); return *this;}
95 inline ChannelMessageSummary& WithType(ChannelMessageType&& value) { SetType(std::move(value)); return *this;}
97
99
102 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
103 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
104 inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; }
105 inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); }
107 inline ChannelMessageSummary& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;}
109
111
114 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; }
115 inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; }
116 inline void SetLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = value; }
117 inline void SetLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = std::move(value); }
121
123
126 inline const Aws::Utils::DateTime& GetLastEditedTimestamp() const{ return m_lastEditedTimestamp; }
127 inline bool LastEditedTimestampHasBeenSet() const { return m_lastEditedTimestampHasBeenSet; }
128 inline void SetLastEditedTimestamp(const Aws::Utils::DateTime& value) { m_lastEditedTimestampHasBeenSet = true; m_lastEditedTimestamp = value; }
129 inline void SetLastEditedTimestamp(Aws::Utils::DateTime&& value) { m_lastEditedTimestampHasBeenSet = true; m_lastEditedTimestamp = std::move(value); }
133
135
138 inline const Identity& GetSender() const{ return m_sender; }
139 inline bool SenderHasBeenSet() const { return m_senderHasBeenSet; }
140 inline void SetSender(const Identity& value) { m_senderHasBeenSet = true; m_sender = value; }
141 inline void SetSender(Identity&& value) { m_senderHasBeenSet = true; m_sender = std::move(value); }
142 inline ChannelMessageSummary& WithSender(const Identity& value) { SetSender(value); return *this;}
143 inline ChannelMessageSummary& WithSender(Identity&& value) { SetSender(std::move(value)); return *this;}
145
147
150 inline bool GetRedacted() const{ return m_redacted; }
151 inline bool RedactedHasBeenSet() const { return m_redactedHasBeenSet; }
152 inline void SetRedacted(bool value) { m_redactedHasBeenSet = true; m_redacted = value; }
153 inline ChannelMessageSummary& WithRedacted(bool value) { SetRedacted(value); return *this;}
155 private:
156
157 Aws::String m_messageId;
158 bool m_messageIdHasBeenSet = false;
159
160 Aws::String m_content;
161 bool m_contentHasBeenSet = false;
162
163 Aws::String m_metadata;
164 bool m_metadataHasBeenSet = false;
165
166 ChannelMessageType m_type;
167 bool m_typeHasBeenSet = false;
168
169 Aws::Utils::DateTime m_createdTimestamp;
170 bool m_createdTimestampHasBeenSet = false;
171
172 Aws::Utils::DateTime m_lastUpdatedTimestamp;
173 bool m_lastUpdatedTimestampHasBeenSet = false;
174
175 Aws::Utils::DateTime m_lastEditedTimestamp;
176 bool m_lastEditedTimestampHasBeenSet = false;
177
178 Identity m_sender;
179 bool m_senderHasBeenSet = false;
180
181 bool m_redacted;
182 bool m_redactedHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace Chime
187} // namespace Aws
ChannelMessageSummary & WithLastEditedTimestamp(const Aws::Utils::DateTime &value)
void SetCreatedTimestamp(Aws::Utils::DateTime &&value)
void SetType(ChannelMessageType &&value)
ChannelMessageSummary & WithMessageId(Aws::String &&value)
void SetLastEditedTimestamp(const Aws::Utils::DateTime &value)
AWS_CHIME_API ChannelMessageSummary(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedTimestamp(const Aws::Utils::DateTime &value)
void SetLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
ChannelMessageSummary & WithContent(const char *value)
void SetType(const ChannelMessageType &value)
ChannelMessageSummary & WithSender(Identity &&value)
ChannelMessageSummary & WithSender(const Identity &value)
const ChannelMessageType & GetType() const
ChannelMessageSummary & WithLastEditedTimestamp(Aws::Utils::DateTime &&value)
ChannelMessageSummary & WithContent(const Aws::String &value)
const Aws::Utils::DateTime & GetLastEditedTimestamp() const
void SetMetadata(const Aws::String &value)
ChannelMessageSummary & WithType(const ChannelMessageType &value)
AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMessageId(const Aws::String &value)
ChannelMessageSummary & WithType(ChannelMessageType &&value)
ChannelMessageSummary & WithRedacted(bool value)
AWS_CHIME_API ChannelMessageSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLastUpdatedTimestamp(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetLastUpdatedTimestamp() const
ChannelMessageSummary & WithMetadata(Aws::String &&value)
ChannelMessageSummary & WithContent(Aws::String &&value)
ChannelMessageSummary & WithMessageId(const char *value)
ChannelMessageSummary & WithCreatedTimestamp(const Aws::Utils::DateTime &value)
ChannelMessageSummary & WithLastUpdatedTimestamp(Aws::Utils::DateTime &&value)
ChannelMessageSummary & WithMessageId(const Aws::String &value)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
ChannelMessageSummary & WithLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
void SetLastEditedTimestamp(Aws::Utils::DateTime &&value)
ChannelMessageSummary & WithMetadata(const Aws::String &value)
void SetContent(const Aws::String &value)
ChannelMessageSummary & WithMetadata(const char *value)
ChannelMessageSummary & WithCreatedTimestamp(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue