AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsSnsTopicDetails.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 <aws/securityhub/model/AwsSnsTopicSubscription.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 SecurityHub
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SECURITYHUB_API AwsSnsTopicDetails() = default;
38 AWS_SECURITYHUB_API AwsSnsTopicDetails(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetKmsMasterKeyId() const { return m_kmsMasterKeyId; }
49 inline bool KmsMasterKeyIdHasBeenSet() const { return m_kmsMasterKeyIdHasBeenSet; }
50 template<typename KmsMasterKeyIdT = Aws::String>
51 void SetKmsMasterKeyId(KmsMasterKeyIdT&& value) { m_kmsMasterKeyIdHasBeenSet = true; m_kmsMasterKeyId = std::forward<KmsMasterKeyIdT>(value); }
52 template<typename KmsMasterKeyIdT = Aws::String>
53 AwsSnsTopicDetails& WithKmsMasterKeyId(KmsMasterKeyIdT&& value) { SetKmsMasterKeyId(std::forward<KmsMasterKeyIdT>(value)); return *this;}
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) { m_subscriptionHasBeenSet = true; m_subscription = std::forward<SubscriptionT>(value); }
65 template<typename SubscriptionT = Aws::Vector<AwsSnsTopicSubscription>>
66 AwsSnsTopicDetails& WithSubscription(SubscriptionT&& value) { SetSubscription(std::forward<SubscriptionT>(value)); return *this;}
67 template<typename SubscriptionT = AwsSnsTopicSubscription>
68 AwsSnsTopicDetails& AddSubscription(SubscriptionT&& value) { m_subscriptionHasBeenSet = true; m_subscription.emplace_back(std::forward<SubscriptionT>(value)); return *this; }
70
72
75 inline const Aws::String& GetTopicName() const { return m_topicName; }
76 inline bool TopicNameHasBeenSet() const { return m_topicNameHasBeenSet; }
77 template<typename TopicNameT = Aws::String>
78 void SetTopicName(TopicNameT&& value) { m_topicNameHasBeenSet = true; m_topicName = std::forward<TopicNameT>(value); }
79 template<typename TopicNameT = Aws::String>
80 AwsSnsTopicDetails& WithTopicName(TopicNameT&& value) { SetTopicName(std::forward<TopicNameT>(value)); return *this;}
82
84
87 inline const Aws::String& GetOwner() const { return m_owner; }
88 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
89 template<typename OwnerT = Aws::String>
90 void SetOwner(OwnerT&& value) { m_ownerHasBeenSet = true; m_owner = std::forward<OwnerT>(value); }
91 template<typename OwnerT = Aws::String>
92 AwsSnsTopicDetails& WithOwner(OwnerT&& value) { SetOwner(std::forward<OwnerT>(value)); return *this;}
94
96
100 inline const Aws::String& GetSqsSuccessFeedbackRoleArn() const { return m_sqsSuccessFeedbackRoleArn; }
101 inline bool SqsSuccessFeedbackRoleArnHasBeenSet() const { return m_sqsSuccessFeedbackRoleArnHasBeenSet; }
102 template<typename SqsSuccessFeedbackRoleArnT = Aws::String>
103 void SetSqsSuccessFeedbackRoleArn(SqsSuccessFeedbackRoleArnT&& value) { m_sqsSuccessFeedbackRoleArnHasBeenSet = true; m_sqsSuccessFeedbackRoleArn = std::forward<SqsSuccessFeedbackRoleArnT>(value); }
104 template<typename SqsSuccessFeedbackRoleArnT = Aws::String>
105 AwsSnsTopicDetails& WithSqsSuccessFeedbackRoleArn(SqsSuccessFeedbackRoleArnT&& value) { SetSqsSuccessFeedbackRoleArn(std::forward<SqsSuccessFeedbackRoleArnT>(value)); return *this;}
107
109
113 inline const Aws::String& GetSqsFailureFeedbackRoleArn() const { return m_sqsFailureFeedbackRoleArn; }
114 inline bool SqsFailureFeedbackRoleArnHasBeenSet() const { return m_sqsFailureFeedbackRoleArnHasBeenSet; }
115 template<typename SqsFailureFeedbackRoleArnT = Aws::String>
116 void SetSqsFailureFeedbackRoleArn(SqsFailureFeedbackRoleArnT&& value) { m_sqsFailureFeedbackRoleArnHasBeenSet = true; m_sqsFailureFeedbackRoleArn = std::forward<SqsFailureFeedbackRoleArnT>(value); }
117 template<typename SqsFailureFeedbackRoleArnT = Aws::String>
118 AwsSnsTopicDetails& WithSqsFailureFeedbackRoleArn(SqsFailureFeedbackRoleArnT&& value) { SetSqsFailureFeedbackRoleArn(std::forward<SqsFailureFeedbackRoleArnT>(value)); return *this;}
120
122
126 inline const Aws::String& GetApplicationSuccessFeedbackRoleArn() const { return m_applicationSuccessFeedbackRoleArn; }
127 inline bool ApplicationSuccessFeedbackRoleArnHasBeenSet() const { return m_applicationSuccessFeedbackRoleArnHasBeenSet; }
128 template<typename ApplicationSuccessFeedbackRoleArnT = Aws::String>
129 void SetApplicationSuccessFeedbackRoleArn(ApplicationSuccessFeedbackRoleArnT&& value) { m_applicationSuccessFeedbackRoleArnHasBeenSet = true; m_applicationSuccessFeedbackRoleArn = std::forward<ApplicationSuccessFeedbackRoleArnT>(value); }
130 template<typename ApplicationSuccessFeedbackRoleArnT = Aws::String>
131 AwsSnsTopicDetails& WithApplicationSuccessFeedbackRoleArn(ApplicationSuccessFeedbackRoleArnT&& value) { SetApplicationSuccessFeedbackRoleArn(std::forward<ApplicationSuccessFeedbackRoleArnT>(value)); return *this;}
133
135
139 inline const Aws::String& GetFirehoseSuccessFeedbackRoleArn() const { return m_firehoseSuccessFeedbackRoleArn; }
140 inline bool FirehoseSuccessFeedbackRoleArnHasBeenSet() const { return m_firehoseSuccessFeedbackRoleArnHasBeenSet; }
141 template<typename FirehoseSuccessFeedbackRoleArnT = Aws::String>
142 void SetFirehoseSuccessFeedbackRoleArn(FirehoseSuccessFeedbackRoleArnT&& value) { m_firehoseSuccessFeedbackRoleArnHasBeenSet = true; m_firehoseSuccessFeedbackRoleArn = std::forward<FirehoseSuccessFeedbackRoleArnT>(value); }
143 template<typename FirehoseSuccessFeedbackRoleArnT = Aws::String>
144 AwsSnsTopicDetails& WithFirehoseSuccessFeedbackRoleArn(FirehoseSuccessFeedbackRoleArnT&& value) { SetFirehoseSuccessFeedbackRoleArn(std::forward<FirehoseSuccessFeedbackRoleArnT>(value)); return *this;}
146
148
152 inline const Aws::String& GetFirehoseFailureFeedbackRoleArn() const { return m_firehoseFailureFeedbackRoleArn; }
153 inline bool FirehoseFailureFeedbackRoleArnHasBeenSet() const { return m_firehoseFailureFeedbackRoleArnHasBeenSet; }
154 template<typename FirehoseFailureFeedbackRoleArnT = Aws::String>
155 void SetFirehoseFailureFeedbackRoleArn(FirehoseFailureFeedbackRoleArnT&& value) { m_firehoseFailureFeedbackRoleArnHasBeenSet = true; m_firehoseFailureFeedbackRoleArn = std::forward<FirehoseFailureFeedbackRoleArnT>(value); }
156 template<typename FirehoseFailureFeedbackRoleArnT = Aws::String>
157 AwsSnsTopicDetails& WithFirehoseFailureFeedbackRoleArn(FirehoseFailureFeedbackRoleArnT&& value) { SetFirehoseFailureFeedbackRoleArn(std::forward<FirehoseFailureFeedbackRoleArnT>(value)); return *this;}
159
161
165 inline const Aws::String& GetHttpSuccessFeedbackRoleArn() const { return m_httpSuccessFeedbackRoleArn; }
166 inline bool HttpSuccessFeedbackRoleArnHasBeenSet() const { return m_httpSuccessFeedbackRoleArnHasBeenSet; }
167 template<typename HttpSuccessFeedbackRoleArnT = Aws::String>
168 void SetHttpSuccessFeedbackRoleArn(HttpSuccessFeedbackRoleArnT&& value) { m_httpSuccessFeedbackRoleArnHasBeenSet = true; m_httpSuccessFeedbackRoleArn = std::forward<HttpSuccessFeedbackRoleArnT>(value); }
169 template<typename HttpSuccessFeedbackRoleArnT = Aws::String>
170 AwsSnsTopicDetails& WithHttpSuccessFeedbackRoleArn(HttpSuccessFeedbackRoleArnT&& value) { SetHttpSuccessFeedbackRoleArn(std::forward<HttpSuccessFeedbackRoleArnT>(value)); return *this;}
172
174
178 inline const Aws::String& GetHttpFailureFeedbackRoleArn() const { return m_httpFailureFeedbackRoleArn; }
179 inline bool HttpFailureFeedbackRoleArnHasBeenSet() const { return m_httpFailureFeedbackRoleArnHasBeenSet; }
180 template<typename HttpFailureFeedbackRoleArnT = Aws::String>
181 void SetHttpFailureFeedbackRoleArn(HttpFailureFeedbackRoleArnT&& value) { m_httpFailureFeedbackRoleArnHasBeenSet = true; m_httpFailureFeedbackRoleArn = std::forward<HttpFailureFeedbackRoleArnT>(value); }
182 template<typename HttpFailureFeedbackRoleArnT = Aws::String>
183 AwsSnsTopicDetails& WithHttpFailureFeedbackRoleArn(HttpFailureFeedbackRoleArnT&& value) { SetHttpFailureFeedbackRoleArn(std::forward<HttpFailureFeedbackRoleArnT>(value)); return *this;}
185 private:
186
187 Aws::String m_kmsMasterKeyId;
188 bool m_kmsMasterKeyIdHasBeenSet = false;
189
191 bool m_subscriptionHasBeenSet = false;
192
193 Aws::String m_topicName;
194 bool m_topicNameHasBeenSet = false;
195
196 Aws::String m_owner;
197 bool m_ownerHasBeenSet = false;
198
199 Aws::String m_sqsSuccessFeedbackRoleArn;
200 bool m_sqsSuccessFeedbackRoleArnHasBeenSet = false;
201
202 Aws::String m_sqsFailureFeedbackRoleArn;
203 bool m_sqsFailureFeedbackRoleArnHasBeenSet = false;
204
205 Aws::String m_applicationSuccessFeedbackRoleArn;
206 bool m_applicationSuccessFeedbackRoleArnHasBeenSet = false;
207
208 Aws::String m_firehoseSuccessFeedbackRoleArn;
209 bool m_firehoseSuccessFeedbackRoleArnHasBeenSet = false;
210
211 Aws::String m_firehoseFailureFeedbackRoleArn;
212 bool m_firehoseFailureFeedbackRoleArnHasBeenSet = false;
213
214 Aws::String m_httpSuccessFeedbackRoleArn;
215 bool m_httpSuccessFeedbackRoleArnHasBeenSet = false;
216
217 Aws::String m_httpFailureFeedbackRoleArn;
218 bool m_httpFailureFeedbackRoleArnHasBeenSet = false;
219 };
220
221} // namespace Model
222} // namespace SecurityHub
223} // 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