AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsRdsEventSubscriptionDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SecurityHub
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SECURITYHUB_API AwsRdsEventSubscriptionDetails() = default;
39 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetCustSubscriptionId() const { return m_custSubscriptionId; }
48 inline bool CustSubscriptionIdHasBeenSet() const { return m_custSubscriptionIdHasBeenSet; }
49 template<typename CustSubscriptionIdT = Aws::String>
50 void SetCustSubscriptionId(CustSubscriptionIdT&& value) { m_custSubscriptionIdHasBeenSet = true; m_custSubscriptionId = std::forward<CustSubscriptionIdT>(value); }
51 template<typename CustSubscriptionIdT = Aws::String>
52 AwsRdsEventSubscriptionDetails& WithCustSubscriptionId(CustSubscriptionIdT&& value) { SetCustSubscriptionId(std::forward<CustSubscriptionIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetCustomerAwsId() const { return m_customerAwsId; }
60 inline bool CustomerAwsIdHasBeenSet() const { return m_customerAwsIdHasBeenSet; }
61 template<typename CustomerAwsIdT = Aws::String>
62 void SetCustomerAwsId(CustomerAwsIdT&& value) { m_customerAwsIdHasBeenSet = true; m_customerAwsId = std::forward<CustomerAwsIdT>(value); }
63 template<typename CustomerAwsIdT = Aws::String>
64 AwsRdsEventSubscriptionDetails& WithCustomerAwsId(CustomerAwsIdT&& value) { SetCustomerAwsId(std::forward<CustomerAwsIdT>(value)); return *this;}
66
68
71 inline bool GetEnabled() const { return m_enabled; }
72 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
73 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
74 inline AwsRdsEventSubscriptionDetails& WithEnabled(bool value) { SetEnabled(value); return *this;}
76
78
81 inline const Aws::Vector<Aws::String>& GetEventCategoriesList() const { return m_eventCategoriesList; }
82 inline bool EventCategoriesListHasBeenSet() const { return m_eventCategoriesListHasBeenSet; }
83 template<typename EventCategoriesListT = Aws::Vector<Aws::String>>
84 void SetEventCategoriesList(EventCategoriesListT&& value) { m_eventCategoriesListHasBeenSet = true; m_eventCategoriesList = std::forward<EventCategoriesListT>(value); }
85 template<typename EventCategoriesListT = Aws::Vector<Aws::String>>
86 AwsRdsEventSubscriptionDetails& WithEventCategoriesList(EventCategoriesListT&& value) { SetEventCategoriesList(std::forward<EventCategoriesListT>(value)); return *this;}
87 template<typename EventCategoriesListT = Aws::String>
88 AwsRdsEventSubscriptionDetails& AddEventCategoriesList(EventCategoriesListT&& value) { m_eventCategoriesListHasBeenSet = true; m_eventCategoriesList.emplace_back(std::forward<EventCategoriesListT>(value)); return *this; }
90
92
95 inline const Aws::String& GetEventSubscriptionArn() const { return m_eventSubscriptionArn; }
96 inline bool EventSubscriptionArnHasBeenSet() const { return m_eventSubscriptionArnHasBeenSet; }
97 template<typename EventSubscriptionArnT = Aws::String>
98 void SetEventSubscriptionArn(EventSubscriptionArnT&& value) { m_eventSubscriptionArnHasBeenSet = true; m_eventSubscriptionArn = std::forward<EventSubscriptionArnT>(value); }
99 template<typename EventSubscriptionArnT = Aws::String>
100 AwsRdsEventSubscriptionDetails& WithEventSubscriptionArn(EventSubscriptionArnT&& value) { SetEventSubscriptionArn(std::forward<EventSubscriptionArnT>(value)); return *this;}
102
104
107 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
108 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
109 template<typename SnsTopicArnT = Aws::String>
110 void SetSnsTopicArn(SnsTopicArnT&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::forward<SnsTopicArnT>(value); }
111 template<typename SnsTopicArnT = Aws::String>
112 AwsRdsEventSubscriptionDetails& WithSnsTopicArn(SnsTopicArnT&& value) { SetSnsTopicArn(std::forward<SnsTopicArnT>(value)); return *this;}
114
116
119 inline const Aws::Vector<Aws::String>& GetSourceIdsList() const { return m_sourceIdsList; }
120 inline bool SourceIdsListHasBeenSet() const { return m_sourceIdsListHasBeenSet; }
121 template<typename SourceIdsListT = Aws::Vector<Aws::String>>
122 void SetSourceIdsList(SourceIdsListT&& value) { m_sourceIdsListHasBeenSet = true; m_sourceIdsList = std::forward<SourceIdsListT>(value); }
123 template<typename SourceIdsListT = Aws::Vector<Aws::String>>
124 AwsRdsEventSubscriptionDetails& WithSourceIdsList(SourceIdsListT&& value) { SetSourceIdsList(std::forward<SourceIdsListT>(value)); return *this;}
125 template<typename SourceIdsListT = Aws::String>
126 AwsRdsEventSubscriptionDetails& AddSourceIdsList(SourceIdsListT&& value) { m_sourceIdsListHasBeenSet = true; m_sourceIdsList.emplace_back(std::forward<SourceIdsListT>(value)); return *this; }
128
130
133 inline const Aws::String& GetSourceType() const { return m_sourceType; }
134 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
135 template<typename SourceTypeT = Aws::String>
136 void SetSourceType(SourceTypeT&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::forward<SourceTypeT>(value); }
137 template<typename SourceTypeT = Aws::String>
138 AwsRdsEventSubscriptionDetails& WithSourceType(SourceTypeT&& value) { SetSourceType(std::forward<SourceTypeT>(value)); return *this;}
140
142
148 inline const Aws::String& GetStatus() const { return m_status; }
149 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
150 template<typename StatusT = Aws::String>
151 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
152 template<typename StatusT = Aws::String>
153 AwsRdsEventSubscriptionDetails& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
155
157
163 inline const Aws::String& GetSubscriptionCreationTime() const { return m_subscriptionCreationTime; }
164 inline bool SubscriptionCreationTimeHasBeenSet() const { return m_subscriptionCreationTimeHasBeenSet; }
165 template<typename SubscriptionCreationTimeT = Aws::String>
166 void SetSubscriptionCreationTime(SubscriptionCreationTimeT&& value) { m_subscriptionCreationTimeHasBeenSet = true; m_subscriptionCreationTime = std::forward<SubscriptionCreationTimeT>(value); }
167 template<typename SubscriptionCreationTimeT = Aws::String>
168 AwsRdsEventSubscriptionDetails& WithSubscriptionCreationTime(SubscriptionCreationTimeT&& value) { SetSubscriptionCreationTime(std::forward<SubscriptionCreationTimeT>(value)); return *this;}
170 private:
171
172 Aws::String m_custSubscriptionId;
173 bool m_custSubscriptionIdHasBeenSet = false;
174
175 Aws::String m_customerAwsId;
176 bool m_customerAwsIdHasBeenSet = false;
177
178 bool m_enabled{false};
179 bool m_enabledHasBeenSet = false;
180
181 Aws::Vector<Aws::String> m_eventCategoriesList;
182 bool m_eventCategoriesListHasBeenSet = false;
183
184 Aws::String m_eventSubscriptionArn;
185 bool m_eventSubscriptionArnHasBeenSet = false;
186
187 Aws::String m_snsTopicArn;
188 bool m_snsTopicArnHasBeenSet = false;
189
190 Aws::Vector<Aws::String> m_sourceIdsList;
191 bool m_sourceIdsListHasBeenSet = false;
192
193 Aws::String m_sourceType;
194 bool m_sourceTypeHasBeenSet = false;
195
196 Aws::String m_status;
197 bool m_statusHasBeenSet = false;
198
199 Aws::String m_subscriptionCreationTime;
200 bool m_subscriptionCreationTimeHasBeenSet = false;
201 };
202
203} // namespace Model
204} // namespace SecurityHub
205} // namespace Aws
AwsRdsEventSubscriptionDetails & WithEventSubscriptionArn(EventSubscriptionArnT &&value)
AwsRdsEventSubscriptionDetails & AddEventCategoriesList(EventCategoriesListT &&value)
AWS_SECURITYHUB_API AwsRdsEventSubscriptionDetails(Aws::Utils::Json::JsonView jsonValue)
AwsRdsEventSubscriptionDetails & WithCustSubscriptionId(CustSubscriptionIdT &&value)
AWS_SECURITYHUB_API AwsRdsEventSubscriptionDetails()=default
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsRdsEventSubscriptionDetails & WithEventCategoriesList(EventCategoriesListT &&value)
AwsRdsEventSubscriptionDetails & AddSourceIdsList(SourceIdsListT &&value)
AwsRdsEventSubscriptionDetails & WithSnsTopicArn(SnsTopicArnT &&value)
AwsRdsEventSubscriptionDetails & WithSourceType(SourceTypeT &&value)
AwsRdsEventSubscriptionDetails & WithSubscriptionCreationTime(SubscriptionCreationTimeT &&value)
AwsRdsEventSubscriptionDetails & WithStatus(StatusT &&value)
AWS_SECURITYHUB_API AwsRdsEventSubscriptionDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetEventCategoriesList() const
AwsRdsEventSubscriptionDetails & WithCustomerAwsId(CustomerAwsIdT &&value)
AwsRdsEventSubscriptionDetails & WithSourceIdsList(SourceIdsListT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue