AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
EventTopic.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ds/DirectoryService_EXPORTS.h>
10#include <aws/ds/model/TopicStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DirectoryService {
22namespace Model {
23
31 public:
32 AWS_DIRECTORYSERVICE_API EventTopic() = default;
33 AWS_DIRECTORYSERVICE_API EventTopic(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DIRECTORYSERVICE_API EventTopic& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetDirectoryId() const { return m_directoryId; }
43 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
44 template <typename DirectoryIdT = Aws::String>
45 void SetDirectoryId(DirectoryIdT&& value) {
46 m_directoryIdHasBeenSet = true;
47 m_directoryId = std::forward<DirectoryIdT>(value);
48 }
49 template <typename DirectoryIdT = Aws::String>
50 EventTopic& WithDirectoryId(DirectoryIdT&& value) {
51 SetDirectoryId(std::forward<DirectoryIdT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetTopicName() const { return m_topicName; }
62 inline bool TopicNameHasBeenSet() const { return m_topicNameHasBeenSet; }
63 template <typename TopicNameT = Aws::String>
64 void SetTopicName(TopicNameT&& value) {
65 m_topicNameHasBeenSet = true;
66 m_topicName = std::forward<TopicNameT>(value);
67 }
68 template <typename TopicNameT = Aws::String>
69 EventTopic& WithTopicName(TopicNameT&& value) {
70 SetTopicName(std::forward<TopicNameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetTopicArn() const { return m_topicArn; }
80 inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
81 template <typename TopicArnT = Aws::String>
82 void SetTopicArn(TopicArnT&& value) {
83 m_topicArnHasBeenSet = true;
84 m_topicArn = std::forward<TopicArnT>(value);
85 }
86 template <typename TopicArnT = Aws::String>
87 EventTopic& WithTopicArn(TopicArnT&& value) {
88 SetTopicArn(std::forward<TopicArnT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::Utils::DateTime& GetCreatedDateTime() const { return m_createdDateTime; }
99 inline bool CreatedDateTimeHasBeenSet() const { return m_createdDateTimeHasBeenSet; }
100 template <typename CreatedDateTimeT = Aws::Utils::DateTime>
101 void SetCreatedDateTime(CreatedDateTimeT&& value) {
102 m_createdDateTimeHasBeenSet = true;
103 m_createdDateTime = std::forward<CreatedDateTimeT>(value);
104 }
105 template <typename CreatedDateTimeT = Aws::Utils::DateTime>
106 EventTopic& WithCreatedDateTime(CreatedDateTimeT&& value) {
107 SetCreatedDateTime(std::forward<CreatedDateTimeT>(value));
108 return *this;
109 }
111
113
116 inline TopicStatus GetStatus() const { return m_status; }
117 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
118 inline void SetStatus(TopicStatus value) {
119 m_statusHasBeenSet = true;
120 m_status = value;
121 }
123 SetStatus(value);
124 return *this;
125 }
127 private:
128 Aws::String m_directoryId;
129
130 Aws::String m_topicName;
131
132 Aws::String m_topicArn;
133
134 Aws::Utils::DateTime m_createdDateTime{};
135
137 bool m_directoryIdHasBeenSet = false;
138 bool m_topicNameHasBeenSet = false;
139 bool m_topicArnHasBeenSet = false;
140 bool m_createdDateTimeHasBeenSet = false;
141 bool m_statusHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace DirectoryService
146} // namespace Aws
EventTopic & WithDirectoryId(DirectoryIdT &&value)
Definition EventTopic.h:50
const Aws::Utils::DateTime & GetCreatedDateTime() const
Definition EventTopic.h:98
void SetTopicArn(TopicArnT &&value)
Definition EventTopic.h:82
EventTopic & WithTopicName(TopicNameT &&value)
Definition EventTopic.h:69
AWS_DIRECTORYSERVICE_API EventTopic()=default
void SetCreatedDateTime(CreatedDateTimeT &&value)
Definition EventTopic.h:101
const Aws::String & GetDirectoryId() const
Definition EventTopic.h:42
const Aws::String & GetTopicName() const
Definition EventTopic.h:61
AWS_DIRECTORYSERVICE_API EventTopic(Aws::Utils::Json::JsonView jsonValue)
EventTopic & WithCreatedDateTime(CreatedDateTimeT &&value)
Definition EventTopic.h:106
EventTopic & WithStatus(TopicStatus value)
Definition EventTopic.h:122
void SetDirectoryId(DirectoryIdT &&value)
Definition EventTopic.h:45
void SetTopicName(TopicNameT &&value)
Definition EventTopic.h:64
EventTopic & WithTopicArn(TopicArnT &&value)
Definition EventTopic.h:87
const Aws::String & GetTopicArn() const
Definition EventTopic.h:79
AWS_DIRECTORYSERVICE_API EventTopic & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue