AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Channel.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/ChannelMode.h>
10#include <aws/chime/model/ChannelPrivacy.h>
11#include <aws/chime/model/Identity.h>
12#include <aws/core/utils/DateTime.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
35 class Channel
36 {
37 public:
38 AWS_CHIME_API Channel();
39 AWS_CHIME_API Channel(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CHIME_API Channel& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetName() const{ return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline Channel& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline Channel& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline Channel& WithName(const char* value) { SetName(value); return *this;}
57
59
62 inline const Aws::String& GetChannelArn() const{ return m_channelArn; }
63 inline bool ChannelArnHasBeenSet() const { return m_channelArnHasBeenSet; }
64 inline void SetChannelArn(const Aws::String& value) { m_channelArnHasBeenSet = true; m_channelArn = value; }
65 inline void SetChannelArn(Aws::String&& value) { m_channelArnHasBeenSet = true; m_channelArn = std::move(value); }
66 inline void SetChannelArn(const char* value) { m_channelArnHasBeenSet = true; m_channelArn.assign(value); }
67 inline Channel& WithChannelArn(const Aws::String& value) { SetChannelArn(value); return *this;}
68 inline Channel& WithChannelArn(Aws::String&& value) { SetChannelArn(std::move(value)); return *this;}
69 inline Channel& WithChannelArn(const char* value) { SetChannelArn(value); return *this;}
71
73
76 inline const ChannelMode& GetMode() const{ return m_mode; }
77 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
78 inline void SetMode(const ChannelMode& value) { m_modeHasBeenSet = true; m_mode = value; }
79 inline void SetMode(ChannelMode&& value) { m_modeHasBeenSet = true; m_mode = std::move(value); }
80 inline Channel& WithMode(const ChannelMode& value) { SetMode(value); return *this;}
81 inline Channel& WithMode(ChannelMode&& value) { SetMode(std::move(value)); return *this;}
83
85
88 inline const ChannelPrivacy& GetPrivacy() const{ return m_privacy; }
89 inline bool PrivacyHasBeenSet() const { return m_privacyHasBeenSet; }
90 inline void SetPrivacy(const ChannelPrivacy& value) { m_privacyHasBeenSet = true; m_privacy = value; }
91 inline void SetPrivacy(ChannelPrivacy&& value) { m_privacyHasBeenSet = true; m_privacy = std::move(value); }
92 inline Channel& WithPrivacy(const ChannelPrivacy& value) { SetPrivacy(value); return *this;}
93 inline Channel& WithPrivacy(ChannelPrivacy&& value) { SetPrivacy(std::move(value)); return *this;}
95
97
100 inline const Aws::String& GetMetadata() const{ return m_metadata; }
101 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
102 inline void SetMetadata(const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata = value; }
103 inline void SetMetadata(Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
104 inline void SetMetadata(const char* value) { m_metadataHasBeenSet = true; m_metadata.assign(value); }
105 inline Channel& WithMetadata(const Aws::String& value) { SetMetadata(value); return *this;}
106 inline Channel& WithMetadata(Aws::String&& value) { SetMetadata(std::move(value)); return *this;}
107 inline Channel& WithMetadata(const char* value) { SetMetadata(value); return *this;}
109
111
114 inline const Identity& GetCreatedBy() const{ return m_createdBy; }
115 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
116 inline void SetCreatedBy(const Identity& value) { m_createdByHasBeenSet = true; m_createdBy = value; }
117 inline void SetCreatedBy(Identity&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); }
118 inline Channel& WithCreatedBy(const Identity& value) { SetCreatedBy(value); return *this;}
119 inline Channel& WithCreatedBy(Identity&& value) { SetCreatedBy(std::move(value)); return *this;}
121
123
126 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
127 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
128 inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; }
129 inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); }
130 inline Channel& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;}
131 inline Channel& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;}
133
135
138 inline const Aws::Utils::DateTime& GetLastMessageTimestamp() const{ return m_lastMessageTimestamp; }
139 inline bool LastMessageTimestampHasBeenSet() const { return m_lastMessageTimestampHasBeenSet; }
140 inline void SetLastMessageTimestamp(const Aws::Utils::DateTime& value) { m_lastMessageTimestampHasBeenSet = true; m_lastMessageTimestamp = value; }
141 inline void SetLastMessageTimestamp(Aws::Utils::DateTime&& value) { m_lastMessageTimestampHasBeenSet = true; m_lastMessageTimestamp = std::move(value); }
143 inline Channel& WithLastMessageTimestamp(Aws::Utils::DateTime&& value) { SetLastMessageTimestamp(std::move(value)); return *this;}
145
147
150 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; }
151 inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; }
152 inline void SetLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = value; }
153 inline void SetLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = std::move(value); }
155 inline Channel& WithLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { SetLastUpdatedTimestamp(std::move(value)); return *this;}
157 private:
158
159 Aws::String m_name;
160 bool m_nameHasBeenSet = false;
161
162 Aws::String m_channelArn;
163 bool m_channelArnHasBeenSet = false;
164
165 ChannelMode m_mode;
166 bool m_modeHasBeenSet = false;
167
168 ChannelPrivacy m_privacy;
169 bool m_privacyHasBeenSet = false;
170
171 Aws::String m_metadata;
172 bool m_metadataHasBeenSet = false;
173
174 Identity m_createdBy;
175 bool m_createdByHasBeenSet = false;
176
177 Aws::Utils::DateTime m_createdTimestamp;
178 bool m_createdTimestampHasBeenSet = false;
179
180 Aws::Utils::DateTime m_lastMessageTimestamp;
181 bool m_lastMessageTimestampHasBeenSet = false;
182
183 Aws::Utils::DateTime m_lastUpdatedTimestamp;
184 bool m_lastUpdatedTimestampHasBeenSet = false;
185 };
186
187} // namespace Model
188} // namespace Chime
189} // namespace Aws
const Aws::Utils::DateTime & GetLastUpdatedTimestamp() const
Definition Channel.h:150
bool ModeHasBeenSet() const
Definition Channel.h:77
bool CreatedByHasBeenSet() const
Definition Channel.h:115
void SetPrivacy(ChannelPrivacy &&value)
Definition Channel.h:91
Channel & WithChannelArn(const char *value)
Definition Channel.h:69
void SetMetadata(Aws::String &&value)
Definition Channel.h:103
void SetPrivacy(const ChannelPrivacy &value)
Definition Channel.h:90
Channel & WithLastUpdatedTimestamp(Aws::Utils::DateTime &&value)
Definition Channel.h:155
Channel & WithCreatedTimestamp(const Aws::Utils::DateTime &value)
Definition Channel.h:130
Channel & WithCreatedTimestamp(Aws::Utils::DateTime &&value)
Definition Channel.h:131
const ChannelPrivacy & GetPrivacy() const
Definition Channel.h:88
void SetName(const Aws::String &value)
Definition Channel.h:50
void SetCreatedBy(const Identity &value)
Definition Channel.h:116
void SetName(const char *value)
Definition Channel.h:52
bool LastUpdatedTimestampHasBeenSet() const
Definition Channel.h:151
const Aws::Utils::DateTime & GetLastMessageTimestamp() const
Definition Channel.h:138
void SetCreatedTimestamp(Aws::Utils::DateTime &&value)
Definition Channel.h:129
Channel & WithMetadata(Aws::String &&value)
Definition Channel.h:106
void SetMode(ChannelMode &&value)
Definition Channel.h:79
Channel & WithMode(ChannelMode &&value)
Definition Channel.h:81
void SetChannelArn(Aws::String &&value)
Definition Channel.h:65
Channel & WithLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
Definition Channel.h:154
Channel & WithPrivacy(ChannelPrivacy &&value)
Definition Channel.h:93
bool CreatedTimestampHasBeenSet() const
Definition Channel.h:127
AWS_CHIME_API Channel & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedTimestamp(const Aws::Utils::DateTime &value)
Definition Channel.h:128
Channel & WithMetadata(const char *value)
Definition Channel.h:107
Channel & WithMetadata(const Aws::String &value)
Definition Channel.h:105
const Aws::String & GetName() const
Definition Channel.h:48
void SetCreatedBy(Identity &&value)
Definition Channel.h:117
AWS_CHIME_API Channel(Aws::Utils::Json::JsonView jsonValue)
Channel & WithName(const Aws::String &value)
Definition Channel.h:53
Channel & WithMode(const ChannelMode &value)
Definition Channel.h:80
const Aws::Utils::DateTime & GetCreatedTimestamp() const
Definition Channel.h:126
bool NameHasBeenSet() const
Definition Channel.h:49
const Aws::String & GetChannelArn() const
Definition Channel.h:62
Channel & WithName(Aws::String &&value)
Definition Channel.h:54
void SetLastMessageTimestamp(Aws::Utils::DateTime &&value)
Definition Channel.h:141
Channel & WithPrivacy(const ChannelPrivacy &value)
Definition Channel.h:92
void SetChannelArn(const Aws::String &value)
Definition Channel.h:64
void SetLastUpdatedTimestamp(Aws::Utils::DateTime &&value)
Definition Channel.h:153
void SetMode(const ChannelMode &value)
Definition Channel.h:78
Channel & WithCreatedBy(Identity &&value)
Definition Channel.h:119
bool MetadataHasBeenSet() const
Definition Channel.h:101
Channel & WithLastMessageTimestamp(Aws::Utils::DateTime &&value)
Definition Channel.h:143
bool ChannelArnHasBeenSet() const
Definition Channel.h:63
void SetName(Aws::String &&value)
Definition Channel.h:51
Channel & WithChannelArn(Aws::String &&value)
Definition Channel.h:68
void SetMetadata(const Aws::String &value)
Definition Channel.h:102
void SetChannelArn(const char *value)
Definition Channel.h:66
bool PrivacyHasBeenSet() const
Definition Channel.h:89
Channel & WithName(const char *value)
Definition Channel.h:55
const Aws::String & GetMetadata() const
Definition Channel.h:100
void SetLastMessageTimestamp(const Aws::Utils::DateTime &value)
Definition Channel.h:140
void SetLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
Definition Channel.h:152
Channel & WithCreatedBy(const Identity &value)
Definition Channel.h:118
Channel & WithChannelArn(const Aws::String &value)
Definition Channel.h:67
bool LastMessageTimestampHasBeenSet() const
Definition Channel.h:139
void SetMetadata(const char *value)
Definition Channel.h:104
const Identity & GetCreatedBy() const
Definition Channel.h:114
const ChannelMode & GetMode() const
Definition Channel.h:76
Channel & WithLastMessageTimestamp(const Aws::Utils::DateTime &value)
Definition Channel.h:142
AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue