AWS SDK for C++  1.8.152
AWS SDK for C++
EventTopic.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace DirectoryService
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
47  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
48 
53  inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
54 
59  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
60 
65  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
66 
71  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
72 
77  inline EventTopic& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
78 
83  inline EventTopic& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
84 
89  inline EventTopic& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
90 
91 
96  inline const Aws::String& GetTopicName() const{ return m_topicName; }
97 
102  inline bool TopicNameHasBeenSet() const { return m_topicNameHasBeenSet; }
103 
108  inline void SetTopicName(const Aws::String& value) { m_topicNameHasBeenSet = true; m_topicName = value; }
109 
114  inline void SetTopicName(Aws::String&& value) { m_topicNameHasBeenSet = true; m_topicName = std::move(value); }
115 
120  inline void SetTopicName(const char* value) { m_topicNameHasBeenSet = true; m_topicName.assign(value); }
121 
126  inline EventTopic& WithTopicName(const Aws::String& value) { SetTopicName(value); return *this;}
127 
132  inline EventTopic& WithTopicName(Aws::String&& value) { SetTopicName(std::move(value)); return *this;}
133 
138  inline EventTopic& WithTopicName(const char* value) { SetTopicName(value); return *this;}
139 
140 
144  inline const Aws::String& GetTopicArn() const{ return m_topicArn; }
145 
149  inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
150 
154  inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
155 
159  inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = std::move(value); }
160 
164  inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); }
165 
169  inline EventTopic& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;}
170 
174  inline EventTopic& WithTopicArn(Aws::String&& value) { SetTopicArn(std::move(value)); return *this;}
175 
179  inline EventTopic& WithTopicArn(const char* value) { SetTopicArn(value); return *this;}
180 
181 
186  inline const Aws::Utils::DateTime& GetCreatedDateTime() const{ return m_createdDateTime; }
187 
192  inline bool CreatedDateTimeHasBeenSet() const { return m_createdDateTimeHasBeenSet; }
193 
198  inline void SetCreatedDateTime(const Aws::Utils::DateTime& value) { m_createdDateTimeHasBeenSet = true; m_createdDateTime = value; }
199 
204  inline void SetCreatedDateTime(Aws::Utils::DateTime&& value) { m_createdDateTimeHasBeenSet = true; m_createdDateTime = std::move(value); }
205 
210  inline EventTopic& WithCreatedDateTime(const Aws::Utils::DateTime& value) { SetCreatedDateTime(value); return *this;}
211 
216  inline EventTopic& WithCreatedDateTime(Aws::Utils::DateTime&& value) { SetCreatedDateTime(std::move(value)); return *this;}
217 
218 
222  inline const TopicStatus& GetStatus() const{ return m_status; }
223 
227  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
228 
232  inline void SetStatus(const TopicStatus& value) { m_statusHasBeenSet = true; m_status = value; }
233 
237  inline void SetStatus(TopicStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
238 
242  inline EventTopic& WithStatus(const TopicStatus& value) { SetStatus(value); return *this;}
243 
247  inline EventTopic& WithStatus(TopicStatus&& value) { SetStatus(std::move(value)); return *this;}
248 
249  private:
250 
251  Aws::String m_directoryId;
252  bool m_directoryIdHasBeenSet;
253 
254  Aws::String m_topicName;
255  bool m_topicNameHasBeenSet;
256 
257  Aws::String m_topicArn;
258  bool m_topicArnHasBeenSet;
259 
260  Aws::Utils::DateTime m_createdDateTime;
261  bool m_createdDateTimeHasBeenSet;
262 
263  TopicStatus m_status;
264  bool m_statusHasBeenSet;
265  };
266 
267 } // namespace Model
268 } // namespace DirectoryService
269 } // namespace Aws
Aws::DirectoryService::Model::EventTopic::SetTopicArn
void SetTopicArn(const char *value)
Definition: EventTopic.h:164
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::DirectoryService::Model::EventTopic::SetStatus
void SetStatus(TopicStatus &&value)
Definition: EventTopic.h:237
Aws::DirectoryService::Model::EventTopic::EventTopic
EventTopic()
Aws::DirectoryService::Model::EventTopic::TopicArnHasBeenSet
bool TopicArnHasBeenSet() const
Definition: EventTopic.h:149
Aws::DirectoryService::Model::EventTopic::WithDirectoryId
EventTopic & WithDirectoryId(const char *value)
Definition: EventTopic.h:89
Aws::DirectoryService::Model::TopicStatus
TopicStatus
Definition: TopicStatus.h:17
Aws::DirectoryService::Model::EventTopic::TopicNameHasBeenSet
bool TopicNameHasBeenSet() const
Definition: EventTopic.h:102
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::DirectoryService::Model::EventTopic::SetTopicArn
void SetTopicArn(Aws::String &&value)
Definition: EventTopic.h:159
Aws::DirectoryService::Model::EventTopic::SetTopicName
void SetTopicName(const Aws::String &value)
Definition: EventTopic.h:108
DateTime.h
Aws::DirectoryService::Model::EventTopic::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DirectoryService::Model::EventTopic::WithTopicArn
EventTopic & WithTopicArn(Aws::String &&value)
Definition: EventTopic.h:174
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::EventTopic::GetTopicArn
const Aws::String & GetTopicArn() const
Definition: EventTopic.h:144
Aws::DirectoryService::Model::EventTopic::WithStatus
EventTopic & WithStatus(TopicStatus &&value)
Definition: EventTopic.h:247
Aws::DirectoryService::Model::EventTopic::WithTopicArn
EventTopic & WithTopicArn(const Aws::String &value)
Definition: EventTopic.h:169
Aws::DirectoryService::Model::EventTopic::EventTopic
EventTopic(Aws::Utils::Json::JsonView jsonValue)
Aws::DirectoryService::Model::EventTopic::WithDirectoryId
EventTopic & WithDirectoryId(const Aws::String &value)
Definition: EventTopic.h:77
Aws::DirectoryService::Model::EventTopic::WithStatus
EventTopic & WithStatus(const TopicStatus &value)
Definition: EventTopic.h:242
Aws::DirectoryService::Model::EventTopic::WithTopicName
EventTopic & WithTopicName(const Aws::String &value)
Definition: EventTopic.h:126
Aws::DirectoryService::Model::EventTopic
Definition: EventTopic.h:35
Aws::DirectoryService::Model::EventTopic::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: EventTopic.h:227
Aws::DirectoryService::Model::EventTopic::SetDirectoryId
void SetDirectoryId(const char *value)
Definition: EventTopic.h:71
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::DirectoryService::Model::EventTopic::DirectoryIdHasBeenSet
bool DirectoryIdHasBeenSet() const
Definition: EventTopic.h:53
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::DirectoryService::Model::EventTopic::GetCreatedDateTime
const Aws::Utils::DateTime & GetCreatedDateTime() const
Definition: EventTopic.h:186
Aws::DirectoryService::Model::EventTopic::SetDirectoryId
void SetDirectoryId(const Aws::String &value)
Definition: EventTopic.h:59
Aws::DirectoryService::Model::EventTopic::GetTopicName
const Aws::String & GetTopicName() const
Definition: EventTopic.h:96
TopicStatus.h
Aws::DirectoryService::Model::EventTopic::GetStatus
const TopicStatus & GetStatus() const
Definition: EventTopic.h:222
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::EventTopic::SetCreatedDateTime
void SetCreatedDateTime(Aws::Utils::DateTime &&value)
Definition: EventTopic.h:204
Aws::DirectoryService::Model::EventTopic::SetTopicName
void SetTopicName(const char *value)
Definition: EventTopic.h:120
Aws::DirectoryService::Model::EventTopic::SetStatus
void SetStatus(const TopicStatus &value)
Definition: EventTopic.h:232
Aws::DirectoryService::Model::EventTopic::SetTopicArn
void SetTopicArn(const Aws::String &value)
Definition: EventTopic.h:154
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::EventTopic::operator=
EventTopic & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DirectoryService::Model::EventTopic::SetTopicName
void SetTopicName(Aws::String &&value)
Definition: EventTopic.h:114
Aws::DirectoryService::Model::EventTopic::SetDirectoryId
void SetDirectoryId(Aws::String &&value)
Definition: EventTopic.h:65
Aws::DirectoryService::Model::EventTopic::WithTopicName
EventTopic & WithTopicName(Aws::String &&value)
Definition: EventTopic.h:132
Aws::DirectoryService::Model::EventTopic::GetDirectoryId
const Aws::String & GetDirectoryId() const
Definition: EventTopic.h:47
Aws::DirectoryService::Model::EventTopic::WithCreatedDateTime
EventTopic & WithCreatedDateTime(const Aws::Utils::DateTime &value)
Definition: EventTopic.h:210
Aws::DirectoryService::Model::EventTopic::WithTopicArn
EventTopic & WithTopicArn(const char *value)
Definition: EventTopic.h:179
Aws::DirectoryService::Model::EventTopic::WithDirectoryId
EventTopic & WithDirectoryId(Aws::String &&value)
Definition: EventTopic.h:83
Aws::DirectoryService::Model::EventTopic::WithCreatedDateTime
EventTopic & WithCreatedDateTime(Aws::Utils::DateTime &&value)
Definition: EventTopic.h:216
Aws::DirectoryService::Model::EventTopic::CreatedDateTimeHasBeenSet
bool CreatedDateTimeHasBeenSet() const
Definition: EventTopic.h:192
Aws::DirectoryService::Model::EventTopic::WithTopicName
EventTopic & WithTopicName(const char *value)
Definition: EventTopic.h:138
Aws::DirectoryService::Model::EventTopic::SetCreatedDateTime
void SetCreatedDateTime(const Aws::Utils::DateTime &value)
Definition: EventTopic.h:198