AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AwsSnsTopicDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/AwsSnsTopicSubscription.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub {
22namespace Model {
23
31 public:
32 AWS_SECURITYHUB_API AwsSnsTopicDetails() = default;
33 AWS_SECURITYHUB_API AwsSnsTopicDetails(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetKmsMasterKeyId() const { return m_kmsMasterKeyId; }
43 inline bool KmsMasterKeyIdHasBeenSet() const { return m_kmsMasterKeyIdHasBeenSet; }
44 template <typename KmsMasterKeyIdT = Aws::String>
45 void SetKmsMasterKeyId(KmsMasterKeyIdT&& value) {
46 m_kmsMasterKeyIdHasBeenSet = true;
47 m_kmsMasterKeyId = std::forward<KmsMasterKeyIdT>(value);
48 }
49 template <typename KmsMasterKeyIdT = Aws::String>
50 AwsSnsTopicDetails& WithKmsMasterKeyId(KmsMasterKeyIdT&& value) {
51 SetKmsMasterKeyId(std::forward<KmsMasterKeyIdT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::Vector<AwsSnsTopicSubscription>& GetSubscription() const { return m_subscription; }
62 inline bool SubscriptionHasBeenSet() const { return m_subscriptionHasBeenSet; }
63 template <typename SubscriptionT = Aws::Vector<AwsSnsTopicSubscription>>
64 void SetSubscription(SubscriptionT&& value) {
65 m_subscriptionHasBeenSet = true;
66 m_subscription = std::forward<SubscriptionT>(value);
67 }
68 template <typename SubscriptionT = Aws::Vector<AwsSnsTopicSubscription>>
69 AwsSnsTopicDetails& WithSubscription(SubscriptionT&& value) {
70 SetSubscription(std::forward<SubscriptionT>(value));
71 return *this;
72 }
73 template <typename SubscriptionT = AwsSnsTopicSubscription>
74 AwsSnsTopicDetails& AddSubscription(SubscriptionT&& value) {
75 m_subscriptionHasBeenSet = true;
76 m_subscription.emplace_back(std::forward<SubscriptionT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetTopicName() const { return m_topicName; }
86 inline bool TopicNameHasBeenSet() const { return m_topicNameHasBeenSet; }
87 template <typename TopicNameT = Aws::String>
88 void SetTopicName(TopicNameT&& value) {
89 m_topicNameHasBeenSet = true;
90 m_topicName = std::forward<TopicNameT>(value);
91 }
92 template <typename TopicNameT = Aws::String>
93 AwsSnsTopicDetails& WithTopicName(TopicNameT&& value) {
94 SetTopicName(std::forward<TopicNameT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::String& GetOwner() const { return m_owner; }
104 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
105 template <typename OwnerT = Aws::String>
106 void SetOwner(OwnerT&& value) {
107 m_ownerHasBeenSet = true;
108 m_owner = std::forward<OwnerT>(value);
109 }
110 template <typename OwnerT = Aws::String>
111 AwsSnsTopicDetails& WithOwner(OwnerT&& value) {
112 SetOwner(std::forward<OwnerT>(value));
113 return *this;
114 }
116
118
122 inline const Aws::String& GetSqsSuccessFeedbackRoleArn() const { return m_sqsSuccessFeedbackRoleArn; }
123 inline bool SqsSuccessFeedbackRoleArnHasBeenSet() const { return m_sqsSuccessFeedbackRoleArnHasBeenSet; }
124 template <typename SqsSuccessFeedbackRoleArnT = Aws::String>
125 void SetSqsSuccessFeedbackRoleArn(SqsSuccessFeedbackRoleArnT&& value) {
126 m_sqsSuccessFeedbackRoleArnHasBeenSet = true;
127 m_sqsSuccessFeedbackRoleArn = std::forward<SqsSuccessFeedbackRoleArnT>(value);
128 }
129 template <typename SqsSuccessFeedbackRoleArnT = Aws::String>
130 AwsSnsTopicDetails& WithSqsSuccessFeedbackRoleArn(SqsSuccessFeedbackRoleArnT&& value) {
131 SetSqsSuccessFeedbackRoleArn(std::forward<SqsSuccessFeedbackRoleArnT>(value));
132 return *this;
133 }
135
137
141 inline const Aws::String& GetSqsFailureFeedbackRoleArn() const { return m_sqsFailureFeedbackRoleArn; }
142 inline bool SqsFailureFeedbackRoleArnHasBeenSet() const { return m_sqsFailureFeedbackRoleArnHasBeenSet; }
143 template <typename SqsFailureFeedbackRoleArnT = Aws::String>
144 void SetSqsFailureFeedbackRoleArn(SqsFailureFeedbackRoleArnT&& value) {
145 m_sqsFailureFeedbackRoleArnHasBeenSet = true;
146 m_sqsFailureFeedbackRoleArn = std::forward<SqsFailureFeedbackRoleArnT>(value);
147 }
148 template <typename SqsFailureFeedbackRoleArnT = Aws::String>
149 AwsSnsTopicDetails& WithSqsFailureFeedbackRoleArn(SqsFailureFeedbackRoleArnT&& value) {
150 SetSqsFailureFeedbackRoleArn(std::forward<SqsFailureFeedbackRoleArnT>(value));
151 return *this;
152 }
154
156
160 inline const Aws::String& GetApplicationSuccessFeedbackRoleArn() const { return m_applicationSuccessFeedbackRoleArn; }
161 inline bool ApplicationSuccessFeedbackRoleArnHasBeenSet() const { return m_applicationSuccessFeedbackRoleArnHasBeenSet; }
162 template <typename ApplicationSuccessFeedbackRoleArnT = Aws::String>
163 void SetApplicationSuccessFeedbackRoleArn(ApplicationSuccessFeedbackRoleArnT&& value) {
164 m_applicationSuccessFeedbackRoleArnHasBeenSet = true;
165 m_applicationSuccessFeedbackRoleArn = std::forward<ApplicationSuccessFeedbackRoleArnT>(value);
166 }
167 template <typename ApplicationSuccessFeedbackRoleArnT = Aws::String>
168 AwsSnsTopicDetails& WithApplicationSuccessFeedbackRoleArn(ApplicationSuccessFeedbackRoleArnT&& value) {
169 SetApplicationSuccessFeedbackRoleArn(std::forward<ApplicationSuccessFeedbackRoleArnT>(value));
170 return *this;
171 }
173
175
179 inline const Aws::String& GetFirehoseSuccessFeedbackRoleArn() const { return m_firehoseSuccessFeedbackRoleArn; }
180 inline bool FirehoseSuccessFeedbackRoleArnHasBeenSet() const { return m_firehoseSuccessFeedbackRoleArnHasBeenSet; }
181 template <typename FirehoseSuccessFeedbackRoleArnT = Aws::String>
182 void SetFirehoseSuccessFeedbackRoleArn(FirehoseSuccessFeedbackRoleArnT&& value) {
183 m_firehoseSuccessFeedbackRoleArnHasBeenSet = true;
184 m_firehoseSuccessFeedbackRoleArn = std::forward<FirehoseSuccessFeedbackRoleArnT>(value);
185 }
186 template <typename FirehoseSuccessFeedbackRoleArnT = Aws::String>
187 AwsSnsTopicDetails& WithFirehoseSuccessFeedbackRoleArn(FirehoseSuccessFeedbackRoleArnT&& value) {
188 SetFirehoseSuccessFeedbackRoleArn(std::forward<FirehoseSuccessFeedbackRoleArnT>(value));
189 return *this;
190 }
192
194
198 inline const Aws::String& GetFirehoseFailureFeedbackRoleArn() const { return m_firehoseFailureFeedbackRoleArn; }
199 inline bool FirehoseFailureFeedbackRoleArnHasBeenSet() const { return m_firehoseFailureFeedbackRoleArnHasBeenSet; }
200 template <typename FirehoseFailureFeedbackRoleArnT = Aws::String>
201 void SetFirehoseFailureFeedbackRoleArn(FirehoseFailureFeedbackRoleArnT&& value) {
202 m_firehoseFailureFeedbackRoleArnHasBeenSet = true;
203 m_firehoseFailureFeedbackRoleArn = std::forward<FirehoseFailureFeedbackRoleArnT>(value);
204 }
205 template <typename FirehoseFailureFeedbackRoleArnT = Aws::String>
206 AwsSnsTopicDetails& WithFirehoseFailureFeedbackRoleArn(FirehoseFailureFeedbackRoleArnT&& value) {
207 SetFirehoseFailureFeedbackRoleArn(std::forward<FirehoseFailureFeedbackRoleArnT>(value));
208 return *this;
209 }
211
213
217 inline const Aws::String& GetHttpSuccessFeedbackRoleArn() const { return m_httpSuccessFeedbackRoleArn; }
218 inline bool HttpSuccessFeedbackRoleArnHasBeenSet() const { return m_httpSuccessFeedbackRoleArnHasBeenSet; }
219 template <typename HttpSuccessFeedbackRoleArnT = Aws::String>
220 void SetHttpSuccessFeedbackRoleArn(HttpSuccessFeedbackRoleArnT&& value) {
221 m_httpSuccessFeedbackRoleArnHasBeenSet = true;
222 m_httpSuccessFeedbackRoleArn = std::forward<HttpSuccessFeedbackRoleArnT>(value);
223 }
224 template <typename HttpSuccessFeedbackRoleArnT = Aws::String>
225 AwsSnsTopicDetails& WithHttpSuccessFeedbackRoleArn(HttpSuccessFeedbackRoleArnT&& value) {
226 SetHttpSuccessFeedbackRoleArn(std::forward<HttpSuccessFeedbackRoleArnT>(value));
227 return *this;
228 }
230
232
236 inline const Aws::String& GetHttpFailureFeedbackRoleArn() const { return m_httpFailureFeedbackRoleArn; }
237 inline bool HttpFailureFeedbackRoleArnHasBeenSet() const { return m_httpFailureFeedbackRoleArnHasBeenSet; }
238 template <typename HttpFailureFeedbackRoleArnT = Aws::String>
239 void SetHttpFailureFeedbackRoleArn(HttpFailureFeedbackRoleArnT&& value) {
240 m_httpFailureFeedbackRoleArnHasBeenSet = true;
241 m_httpFailureFeedbackRoleArn = std::forward<HttpFailureFeedbackRoleArnT>(value);
242 }
243 template <typename HttpFailureFeedbackRoleArnT = Aws::String>
244 AwsSnsTopicDetails& WithHttpFailureFeedbackRoleArn(HttpFailureFeedbackRoleArnT&& value) {
245 SetHttpFailureFeedbackRoleArn(std::forward<HttpFailureFeedbackRoleArnT>(value));
246 return *this;
247 }
249 private:
250 Aws::String m_kmsMasterKeyId;
251
253
254 Aws::String m_topicName;
255
256 Aws::String m_owner;
257
258 Aws::String m_sqsSuccessFeedbackRoleArn;
259
260 Aws::String m_sqsFailureFeedbackRoleArn;
261
262 Aws::String m_applicationSuccessFeedbackRoleArn;
263
264 Aws::String m_firehoseSuccessFeedbackRoleArn;
265
266 Aws::String m_firehoseFailureFeedbackRoleArn;
267
268 Aws::String m_httpSuccessFeedbackRoleArn;
269
270 Aws::String m_httpFailureFeedbackRoleArn;
271 bool m_kmsMasterKeyIdHasBeenSet = false;
272 bool m_subscriptionHasBeenSet = false;
273 bool m_topicNameHasBeenSet = false;
274 bool m_ownerHasBeenSet = false;
275 bool m_sqsSuccessFeedbackRoleArnHasBeenSet = false;
276 bool m_sqsFailureFeedbackRoleArnHasBeenSet = false;
277 bool m_applicationSuccessFeedbackRoleArnHasBeenSet = false;
278 bool m_firehoseSuccessFeedbackRoleArnHasBeenSet = false;
279 bool m_firehoseFailureFeedbackRoleArnHasBeenSet = false;
280 bool m_httpSuccessFeedbackRoleArnHasBeenSet = false;
281 bool m_httpFailureFeedbackRoleArnHasBeenSet = false;
282};
283
284} // namespace Model
285} // namespace SecurityHub
286} // namespace Aws
void SetFirehoseFailureFeedbackRoleArn(FirehoseFailureFeedbackRoleArnT &&value)
void SetSqsSuccessFeedbackRoleArn(SqsSuccessFeedbackRoleArnT &&value)
const Aws::String & GetSqsSuccessFeedbackRoleArn() const
void SetSqsFailureFeedbackRoleArn(SqsFailureFeedbackRoleArnT &&value)
void SetKmsMasterKeyId(KmsMasterKeyIdT &&value)
const Aws::String & GetSqsFailureFeedbackRoleArn() const
AWS_SECURITYHUB_API AwsSnsTopicDetails()=default
AwsSnsTopicDetails & WithTopicName(TopicNameT &&value)
AWS_SECURITYHUB_API AwsSnsTopicDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetHttpFailureFeedbackRoleArn() const
void SetApplicationSuccessFeedbackRoleArn(ApplicationSuccessFeedbackRoleArnT &&value)
AwsSnsTopicDetails & WithOwner(OwnerT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsSnsTopicDetails & WithApplicationSuccessFeedbackRoleArn(ApplicationSuccessFeedbackRoleArnT &&value)
AwsSnsTopicDetails & WithHttpSuccessFeedbackRoleArn(HttpSuccessFeedbackRoleArnT &&value)
AwsSnsTopicDetails & WithFirehoseFailureFeedbackRoleArn(FirehoseFailureFeedbackRoleArnT &&value)
const Aws::String & GetApplicationSuccessFeedbackRoleArn() const
void SetFirehoseSuccessFeedbackRoleArn(FirehoseSuccessFeedbackRoleArnT &&value)
AwsSnsTopicDetails & WithHttpFailureFeedbackRoleArn(HttpFailureFeedbackRoleArnT &&value)
AwsSnsTopicDetails & WithKmsMasterKeyId(KmsMasterKeyIdT &&value)
const Aws::Vector< AwsSnsTopicSubscription > & GetSubscription() const
const Aws::String & GetFirehoseFailureFeedbackRoleArn() const
AwsSnsTopicDetails & WithSqsSuccessFeedbackRoleArn(SqsSuccessFeedbackRoleArnT &&value)
const Aws::String & GetFirehoseSuccessFeedbackRoleArn() const
AwsSnsTopicDetails & AddSubscription(SubscriptionT &&value)
void SetHttpFailureFeedbackRoleArn(HttpFailureFeedbackRoleArnT &&value)
void SetHttpSuccessFeedbackRoleArn(HttpSuccessFeedbackRoleArnT &&value)
const Aws::String & GetHttpSuccessFeedbackRoleArn() const
AWS_SECURITYHUB_API AwsSnsTopicDetails(Aws::Utils::Json::JsonView jsonValue)
AwsSnsTopicDetails & WithFirehoseSuccessFeedbackRoleArn(FirehoseSuccessFeedbackRoleArnT &&value)
AwsSnsTopicDetails & WithSubscription(SubscriptionT &&value)
AwsSnsTopicDetails & WithSqsFailureFeedbackRoleArn(SqsFailureFeedbackRoleArnT &&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