AWS SDK for C++  0.12.9
AWS SDK for C++
EventTopic.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace DirectoryService
31 {
32 namespace Model
33 {
34 
40  {
41  public:
42  EventTopic();
43  EventTopic(const Aws::Utils::Json::JsonValue& jsonValue);
44  EventTopic& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
51  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
52 
57  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
58 
63  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
64 
69  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
70 
75  inline EventTopic& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
76 
81  inline EventTopic& WithDirectoryId(Aws::String&& value) { SetDirectoryId(value); return *this;}
82 
87  inline EventTopic& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
88 
93  inline const Aws::String& GetTopicName() const{ return m_topicName; }
94 
99  inline void SetTopicName(const Aws::String& value) { m_topicNameHasBeenSet = true; m_topicName = value; }
100 
105  inline void SetTopicName(Aws::String&& value) { m_topicNameHasBeenSet = true; m_topicName = value; }
106 
111  inline void SetTopicName(const char* value) { m_topicNameHasBeenSet = true; m_topicName.assign(value); }
112 
117  inline EventTopic& WithTopicName(const Aws::String& value) { SetTopicName(value); return *this;}
118 
123  inline EventTopic& WithTopicName(Aws::String&& value) { SetTopicName(value); return *this;}
124 
129  inline EventTopic& WithTopicName(const char* value) { SetTopicName(value); return *this;}
130 
134  inline const Aws::String& GetTopicArn() const{ return m_topicArn; }
135 
139  inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
140 
144  inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
145 
149  inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); }
150 
154  inline EventTopic& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;}
155 
159  inline EventTopic& WithTopicArn(Aws::String&& value) { SetTopicArn(value); return *this;}
160 
164  inline EventTopic& WithTopicArn(const char* value) { SetTopicArn(value); return *this;}
165 
170  inline const Aws::Utils::DateTime& GetCreatedDateTime() const{ return m_createdDateTime; }
171 
176  inline void SetCreatedDateTime(const Aws::Utils::DateTime& value) { m_createdDateTimeHasBeenSet = true; m_createdDateTime = value; }
177 
182  inline void SetCreatedDateTime(Aws::Utils::DateTime&& value) { m_createdDateTimeHasBeenSet = true; m_createdDateTime = value; }
183 
188  inline EventTopic& WithCreatedDateTime(const Aws::Utils::DateTime& value) { SetCreatedDateTime(value); return *this;}
189 
194  inline EventTopic& WithCreatedDateTime(Aws::Utils::DateTime&& value) { SetCreatedDateTime(value); return *this;}
195 
199  inline const TopicStatus& GetStatus() const{ return m_status; }
200 
204  inline void SetStatus(const TopicStatus& value) { m_statusHasBeenSet = true; m_status = value; }
205 
209  inline void SetStatus(TopicStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
210 
214  inline EventTopic& WithStatus(const TopicStatus& value) { SetStatus(value); return *this;}
215 
219  inline EventTopic& WithStatus(TopicStatus&& value) { SetStatus(value); return *this;}
220 
221  private:
222  Aws::String m_directoryId;
223  bool m_directoryIdHasBeenSet;
224  Aws::String m_topicName;
225  bool m_topicNameHasBeenSet;
226  Aws::String m_topicArn;
227  bool m_topicArnHasBeenSet;
228  Aws::Utils::DateTime m_createdDateTime;
229  bool m_createdDateTimeHasBeenSet;
230  TopicStatus m_status;
231  bool m_statusHasBeenSet;
232  };
233 
234 } // namespace Model
235 } // namespace DirectoryService
236 } // namespace Aws
void SetTopicArn(const Aws::String &value)
Definition: EventTopic.h:139
EventTopic & WithStatus(const TopicStatus &value)
Definition: EventTopic.h:214
void SetDirectoryId(const char *value)
Definition: EventTopic.h:69
EventTopic & WithTopicArn(const Aws::String &value)
Definition: EventTopic.h:154
#define AWS_DIRECTORYSERVICE_API
EventTopic & WithTopicName(const char *value)
Definition: EventTopic.h:129
EventTopic & WithTopicName(Aws::String &&value)
Definition: EventTopic.h:123
const Aws::String & GetTopicName() const
Definition: EventTopic.h:93
EventTopic & WithDirectoryId(Aws::String &&value)
Definition: EventTopic.h:81
EventTopic & WithCreatedDateTime(const Aws::Utils::DateTime &value)
Definition: EventTopic.h:188
EventTopic & WithCreatedDateTime(Aws::Utils::DateTime &&value)
Definition: EventTopic.h:194
void SetDirectoryId(const Aws::String &value)
Definition: EventTopic.h:57
void SetTopicArn(const char *value)
Definition: EventTopic.h:149
void SetDirectoryId(Aws::String &&value)
Definition: EventTopic.h:63
const TopicStatus & GetStatus() const
Definition: EventTopic.h:199
EventTopic & WithTopicArn(Aws::String &&value)
Definition: EventTopic.h:159
void SetCreatedDateTime(const Aws::Utils::DateTime &value)
Definition: EventTopic.h:176
void SetTopicName(Aws::String &&value)
Definition: EventTopic.h:105
void SetStatus(const TopicStatus &value)
Definition: EventTopic.h:204
EventTopic & WithTopicArn(const char *value)
Definition: EventTopic.h:164
EventTopic & WithDirectoryId(const Aws::String &value)
Definition: EventTopic.h:75
const Aws::String & GetDirectoryId() const
Definition: EventTopic.h:51
const Aws::String & GetTopicArn() const
Definition: EventTopic.h:134
EventTopic & WithTopicName(const Aws::String &value)
Definition: EventTopic.h:117
void SetTopicName(const Aws::String &value)
Definition: EventTopic.h:99
void SetStatus(TopicStatus &&value)
Definition: EventTopic.h:209
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
EventTopic & WithDirectoryId(const char *value)
Definition: EventTopic.h:87
void SetTopicArn(Aws::String &&value)
Definition: EventTopic.h:144
const Aws::Utils::DateTime & GetCreatedDateTime() const
Definition: EventTopic.h:170
EventTopic & WithStatus(TopicStatus &&value)
Definition: EventTopic.h:219
void SetTopicName(const char *value)
Definition: EventTopic.h:111
void SetCreatedDateTime(Aws::Utils::DateTime &&value)
Definition: EventTopic.h:182
JSON (JavaScript Object Notation).