AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ChannelMessage.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 <aws/chime/model/ChannelMessagePersistenceType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Chime
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_CHIME_API ChannelMessage();
41 AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetChannelArn() const{ return m_channelArn; }
49 inline bool ChannelArnHasBeenSet() const { return m_channelArnHasBeenSet; }
50 inline void SetChannelArn(const Aws::String& value) { m_channelArnHasBeenSet = true; m_channelArn = value; }
51 inline void SetChannelArn(Aws::String&& value) { m_channelArnHasBeenSet = true; m_channelArn = std::move(value); }
52 inline void SetChannelArn(const char* value) { m_channelArnHasBeenSet = true; m_channelArn.assign(value); }
53 inline ChannelMessage& WithChannelArn(const Aws::String& value) { SetChannelArn(value); return *this;}
54 inline ChannelMessage& WithChannelArn(Aws::String&& value) { SetChannelArn(std::move(value)); return *this;}
55 inline ChannelMessage& WithChannelArn(const char* value) { SetChannelArn(value); return *this;}
57
59
62 inline const Aws::String& GetMessageId() const{ return m_messageId; }
63 inline bool MessageIdHasBeenSet() const { return m_messageIdHasBeenSet; }
64 inline void SetMessageId(const Aws::String& value) { m_messageIdHasBeenSet = true; m_messageId = value; }
65 inline void SetMessageId(Aws::String&& value) { m_messageIdHasBeenSet = true; m_messageId = std::move(value); }
66 inline void SetMessageId(const char* value) { m_messageIdHasBeenSet = true; m_messageId.assign(value); }
67 inline ChannelMessage& WithMessageId(const Aws::String& value) { SetMessageId(value); return *this;}
68 inline ChannelMessage& WithMessageId(Aws::String&& value) { SetMessageId(std::move(value)); return *this;}
69 inline ChannelMessage& WithMessageId(const char* value) { SetMessageId(value); return *this;}
71
73
76 inline const Aws::String& GetContent() const{ return m_content; }
77 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
78 inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
79 inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
80 inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
81 inline ChannelMessage& WithContent(const Aws::String& value) { SetContent(value); return *this;}
82 inline ChannelMessage& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
83 inline ChannelMessage& WithContent(const char* value) { SetContent(value); return *this;}
85
87
90 inline const Aws::String& GetMetadata() const{ return m_metadata; }
91 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
92 inline void SetMetadata(const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata = value; }
93 inline void SetMetadata(Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
94 inline void SetMetadata(const char* value) { m_metadataHasBeenSet = true; m_metadata.assign(value); }
95 inline ChannelMessage& WithMetadata(const Aws::String& value) { SetMetadata(value); return *this;}
96 inline ChannelMessage& WithMetadata(Aws::String&& value) { SetMetadata(std::move(value)); return *this;}
97 inline ChannelMessage& WithMetadata(const char* value) { SetMetadata(value); return *this;}
99
101
104 inline const ChannelMessageType& GetType() const{ return m_type; }
105 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
106 inline void SetType(const ChannelMessageType& value) { m_typeHasBeenSet = true; m_type = value; }
107 inline void SetType(ChannelMessageType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
108 inline ChannelMessage& WithType(const ChannelMessageType& value) { SetType(value); return *this;}
109 inline ChannelMessage& WithType(ChannelMessageType&& value) { SetType(std::move(value)); return *this;}
111
113
116 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
117 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
118 inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; }
119 inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); }
121 inline ChannelMessage& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;}
123
125
128 inline const Aws::Utils::DateTime& GetLastEditedTimestamp() const{ return m_lastEditedTimestamp; }
129 inline bool LastEditedTimestampHasBeenSet() const { return m_lastEditedTimestampHasBeenSet; }
130 inline void SetLastEditedTimestamp(const Aws::Utils::DateTime& value) { m_lastEditedTimestampHasBeenSet = true; m_lastEditedTimestamp = value; }
131 inline void SetLastEditedTimestamp(Aws::Utils::DateTime&& value) { m_lastEditedTimestampHasBeenSet = true; m_lastEditedTimestamp = std::move(value); }
133 inline ChannelMessage& WithLastEditedTimestamp(Aws::Utils::DateTime&& value) { SetLastEditedTimestamp(std::move(value)); return *this;}
135
137
140 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; }
141 inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; }
142 inline void SetLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = value; }
143 inline void SetLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = std::move(value); }
145 inline ChannelMessage& WithLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { SetLastUpdatedTimestamp(std::move(value)); return *this;}
147
149
152 inline const Identity& GetSender() const{ return m_sender; }
153 inline bool SenderHasBeenSet() const { return m_senderHasBeenSet; }
154 inline void SetSender(const Identity& value) { m_senderHasBeenSet = true; m_sender = value; }
155 inline void SetSender(Identity&& value) { m_senderHasBeenSet = true; m_sender = std::move(value); }
156 inline ChannelMessage& WithSender(const Identity& value) { SetSender(value); return *this;}
157 inline ChannelMessage& WithSender(Identity&& value) { SetSender(std::move(value)); return *this;}
159
161
164 inline bool GetRedacted() const{ return m_redacted; }
165 inline bool RedactedHasBeenSet() const { return m_redactedHasBeenSet; }
166 inline void SetRedacted(bool value) { m_redactedHasBeenSet = true; m_redacted = value; }
167 inline ChannelMessage& WithRedacted(bool value) { SetRedacted(value); return *this;}
169
171
174 inline const ChannelMessagePersistenceType& GetPersistence() const{ return m_persistence; }
175 inline bool PersistenceHasBeenSet() const { return m_persistenceHasBeenSet; }
176 inline void SetPersistence(const ChannelMessagePersistenceType& value) { m_persistenceHasBeenSet = true; m_persistence = value; }
177 inline void SetPersistence(ChannelMessagePersistenceType&& value) { m_persistenceHasBeenSet = true; m_persistence = std::move(value); }
178 inline ChannelMessage& WithPersistence(const ChannelMessagePersistenceType& value) { SetPersistence(value); return *this;}
179 inline ChannelMessage& WithPersistence(ChannelMessagePersistenceType&& value) { SetPersistence(std::move(value)); return *this;}
181 private:
182
183 Aws::String m_channelArn;
184 bool m_channelArnHasBeenSet = false;
185
186 Aws::String m_messageId;
187 bool m_messageIdHasBeenSet = false;
188
189 Aws::String m_content;
190 bool m_contentHasBeenSet = false;
191
192 Aws::String m_metadata;
193 bool m_metadataHasBeenSet = false;
194
195 ChannelMessageType m_type;
196 bool m_typeHasBeenSet = false;
197
198 Aws::Utils::DateTime m_createdTimestamp;
199 bool m_createdTimestampHasBeenSet = false;
200
201 Aws::Utils::DateTime m_lastEditedTimestamp;
202 bool m_lastEditedTimestampHasBeenSet = false;
203
204 Aws::Utils::DateTime m_lastUpdatedTimestamp;
205 bool m_lastUpdatedTimestampHasBeenSet = false;
206
207 Identity m_sender;
208 bool m_senderHasBeenSet = false;
209
210 bool m_redacted;
211 bool m_redactedHasBeenSet = false;
212
213 ChannelMessagePersistenceType m_persistence;
214 bool m_persistenceHasBeenSet = false;
215 };
216
217} // namespace Model
218} // namespace Chime
219} // namespace Aws
ChannelMessage & WithMessageId(Aws::String &&value)
void SetSender(const Identity &value)
ChannelMessage & WithType(const ChannelMessageType &value)
ChannelMessage & WithMetadata(const char *value)
void SetMetadata(const Aws::String &value)
void SetPersistence(const ChannelMessagePersistenceType &value)
void SetSender(Identity &&value)
void SetChannelArn(Aws::String &&value)
AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetContent(const Aws::String &value)
const ChannelMessagePersistenceType & GetPersistence() const
void SetMessageId(Aws::String &&value)
ChannelMessage & WithRedacted(bool value)
ChannelMessage & WithSender(Identity &&value)
ChannelMessage & WithCreatedTimestamp(const Aws::Utils::DateTime &value)
void SetCreatedTimestamp(const Aws::Utils::DateTime &value)
ChannelMessage & WithType(ChannelMessageType &&value)
const Aws::String & GetChannelArn() const
void SetLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
const ChannelMessageType & GetType() const
void SetChannelArn(const char *value)
const Aws::String & GetMetadata() const
const Aws::Utils::DateTime & GetCreatedTimestamp() const
void SetType(ChannelMessageType &&value)
void SetChannelArn(const Aws::String &value)
ChannelMessage & WithChannelArn(Aws::String &&value)
ChannelMessage & WithMessageId(const Aws::String &value)
void SetType(const ChannelMessageType &value)
ChannelMessage & WithLastUpdatedTimestamp(Aws::Utils::DateTime &&value)
ChannelMessage & WithSender(const Identity &value)
const Aws::String & GetContent() const
void SetContent(Aws::String &&value)
ChannelMessage & WithPersistence(const ChannelMessagePersistenceType &value)
ChannelMessage & WithLastEditedTimestamp(Aws::Utils::DateTime &&value)
ChannelMessage & WithContent(const char *value)
const Aws::String & GetMessageId() const
void SetMetadata(Aws::String &&value)
void SetLastEditedTimestamp(const Aws::Utils::DateTime &value)
AWS_CHIME_API ChannelMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
ChannelMessage & WithMetadata(Aws::String &&value)
const Identity & GetSender() const
void SetPersistence(ChannelMessagePersistenceType &&value)
ChannelMessage & WithChannelArn(const Aws::String &value)
AWS_CHIME_API ChannelMessage(Aws::Utils::Json::JsonView jsonValue)
ChannelMessage & WithLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
void SetLastUpdatedTimestamp(Aws::Utils::DateTime &&value)
ChannelMessage & WithContent(const Aws::String &value)
ChannelMessage & WithChannelArn(const char *value)
ChannelMessage & WithContent(Aws::String &&value)
void SetMessageId(const char *value)
const Aws::Utils::DateTime & GetLastUpdatedTimestamp() const
void SetCreatedTimestamp(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetLastEditedTimestamp() const
ChannelMessage & WithMetadata(const Aws::String &value)
ChannelMessage & WithPersistence(ChannelMessagePersistenceType &&value)
void SetMessageId(const Aws::String &value)
void SetLastEditedTimestamp(Aws::Utils::DateTime &&value)
ChannelMessage & WithLastEditedTimestamp(const Aws::Utils::DateTime &value)
ChannelMessage & WithMessageId(const char *value)
ChannelMessage & WithCreatedTimestamp(Aws::Utils::DateTime &&value)
void SetContent(const char *value)
void SetMetadata(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue