AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EventTopic.h
1
6#pragma once
7#include <aws/ds/DirectoryService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/ds/model/TopicStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DirectoryService
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_DIRECTORYSERVICE_API EventTopic() = default;
38 AWS_DIRECTORYSERVICE_API EventTopic(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DIRECTORYSERVICE_API EventTopic& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetDirectoryId() const { return m_directoryId; }
49 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
50 template<typename DirectoryIdT = Aws::String>
51 void SetDirectoryId(DirectoryIdT&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::forward<DirectoryIdT>(value); }
52 template<typename DirectoryIdT = Aws::String>
53 EventTopic& WithDirectoryId(DirectoryIdT&& value) { SetDirectoryId(std::forward<DirectoryIdT>(value)); return *this;}
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) { m_topicNameHasBeenSet = true; m_topicName = std::forward<TopicNameT>(value); }
65 template<typename TopicNameT = Aws::String>
66 EventTopic& WithTopicName(TopicNameT&& value) { SetTopicName(std::forward<TopicNameT>(value)); return *this;}
68
70
73 inline const Aws::String& GetTopicArn() const { return m_topicArn; }
74 inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
75 template<typename TopicArnT = Aws::String>
76 void SetTopicArn(TopicArnT&& value) { m_topicArnHasBeenSet = true; m_topicArn = std::forward<TopicArnT>(value); }
77 template<typename TopicArnT = Aws::String>
78 EventTopic& WithTopicArn(TopicArnT&& value) { SetTopicArn(std::forward<TopicArnT>(value)); return *this;}
80
82
86 inline const Aws::Utils::DateTime& GetCreatedDateTime() const { return m_createdDateTime; }
87 inline bool CreatedDateTimeHasBeenSet() const { return m_createdDateTimeHasBeenSet; }
88 template<typename CreatedDateTimeT = Aws::Utils::DateTime>
89 void SetCreatedDateTime(CreatedDateTimeT&& value) { m_createdDateTimeHasBeenSet = true; m_createdDateTime = std::forward<CreatedDateTimeT>(value); }
90 template<typename CreatedDateTimeT = Aws::Utils::DateTime>
91 EventTopic& WithCreatedDateTime(CreatedDateTimeT&& value) { SetCreatedDateTime(std::forward<CreatedDateTimeT>(value)); return *this;}
93
95
98 inline TopicStatus GetStatus() const { return m_status; }
99 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
100 inline void SetStatus(TopicStatus value) { m_statusHasBeenSet = true; m_status = value; }
101 inline EventTopic& WithStatus(TopicStatus value) { SetStatus(value); return *this;}
103 private:
104
105 Aws::String m_directoryId;
106 bool m_directoryIdHasBeenSet = false;
107
108 Aws::String m_topicName;
109 bool m_topicNameHasBeenSet = false;
110
111 Aws::String m_topicArn;
112 bool m_topicArnHasBeenSet = false;
113
114 Aws::Utils::DateTime m_createdDateTime{};
115 bool m_createdDateTimeHasBeenSet = false;
116
118 bool m_statusHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace DirectoryService
123} // namespace Aws
EventTopic & WithDirectoryId(DirectoryIdT &&value)
Definition EventTopic.h:53
const Aws::Utils::DateTime & GetCreatedDateTime() const
Definition EventTopic.h:86
void SetTopicArn(TopicArnT &&value)
Definition EventTopic.h:76
EventTopic & WithTopicName(TopicNameT &&value)
Definition EventTopic.h:66
AWS_DIRECTORYSERVICE_API EventTopic()=default
void SetCreatedDateTime(CreatedDateTimeT &&value)
Definition EventTopic.h:89
const Aws::String & GetDirectoryId() const
Definition EventTopic.h:48
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:91
EventTopic & WithStatus(TopicStatus value)
Definition EventTopic.h:101
void SetDirectoryId(DirectoryIdT &&value)
Definition EventTopic.h:51
void SetTopicName(TopicNameT &&value)
Definition EventTopic.h:64
EventTopic & WithTopicArn(TopicArnT &&value)
Definition EventTopic.h:78
const Aws::String & GetTopicArn() const
Definition EventTopic.h:73
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