AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SubscriberResource.h
1
6#pragma once
7#include <aws/securitylake/SecurityLake_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/securitylake/model/AwsIdentity.h>
12#include <aws/securitylake/model/SubscriberStatus.h>
13#include <aws/securitylake/model/AccessType.h>
14#include <aws/securitylake/model/LogSourceResource.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace SecurityLake
28{
29namespace Model
30{
31
40 {
41 public:
42 AWS_SECURITYLAKE_API SubscriberResource();
43 AWS_SECURITYLAKE_API SubscriberResource(Aws::Utils::Json::JsonView jsonValue);
45 AWS_SECURITYLAKE_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
57 inline const Aws::Vector<AccessType>& GetAccessTypes() const{ return m_accessTypes; }
58 inline bool AccessTypesHasBeenSet() const { return m_accessTypesHasBeenSet; }
59 inline void SetAccessTypes(const Aws::Vector<AccessType>& value) { m_accessTypesHasBeenSet = true; m_accessTypes = value; }
60 inline void SetAccessTypes(Aws::Vector<AccessType>&& value) { m_accessTypesHasBeenSet = true; m_accessTypes = std::move(value); }
61 inline SubscriberResource& WithAccessTypes(const Aws::Vector<AccessType>& value) { SetAccessTypes(value); return *this;}
62 inline SubscriberResource& WithAccessTypes(Aws::Vector<AccessType>&& value) { SetAccessTypes(std::move(value)); return *this;}
63 inline SubscriberResource& AddAccessTypes(const AccessType& value) { m_accessTypesHasBeenSet = true; m_accessTypes.push_back(value); return *this; }
64 inline SubscriberResource& AddAccessTypes(AccessType&& value) { m_accessTypesHasBeenSet = true; m_accessTypes.push_back(std::move(value)); return *this; }
66
68
71 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
72 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
73 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
74 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
75 inline SubscriberResource& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
76 inline SubscriberResource& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
78
80
86 inline const Aws::String& GetResourceShareArn() const{ return m_resourceShareArn; }
87 inline bool ResourceShareArnHasBeenSet() const { return m_resourceShareArnHasBeenSet; }
88 inline void SetResourceShareArn(const Aws::String& value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn = value; }
89 inline void SetResourceShareArn(Aws::String&& value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn = std::move(value); }
90 inline void SetResourceShareArn(const char* value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn.assign(value); }
91 inline SubscriberResource& WithResourceShareArn(const Aws::String& value) { SetResourceShareArn(value); return *this;}
92 inline SubscriberResource& WithResourceShareArn(Aws::String&& value) { SetResourceShareArn(std::move(value)); return *this;}
93 inline SubscriberResource& WithResourceShareArn(const char* value) { SetResourceShareArn(value); return *this;}
95
97
100 inline const Aws::String& GetResourceShareName() const{ return m_resourceShareName; }
101 inline bool ResourceShareNameHasBeenSet() const { return m_resourceShareNameHasBeenSet; }
102 inline void SetResourceShareName(const Aws::String& value) { m_resourceShareNameHasBeenSet = true; m_resourceShareName = value; }
103 inline void SetResourceShareName(Aws::String&& value) { m_resourceShareNameHasBeenSet = true; m_resourceShareName = std::move(value); }
104 inline void SetResourceShareName(const char* value) { m_resourceShareNameHasBeenSet = true; m_resourceShareName.assign(value); }
105 inline SubscriberResource& WithResourceShareName(const Aws::String& value) { SetResourceShareName(value); return *this;}
106 inline SubscriberResource& WithResourceShareName(Aws::String&& value) { SetResourceShareName(std::move(value)); return *this;}
107 inline SubscriberResource& WithResourceShareName(const char* value) { SetResourceShareName(value); return *this;}
109
111
114 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
115 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
116 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
117 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
118 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
119 inline SubscriberResource& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
120 inline SubscriberResource& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
121 inline SubscriberResource& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
123
125
128 inline const Aws::String& GetS3BucketArn() const{ return m_s3BucketArn; }
129 inline bool S3BucketArnHasBeenSet() const { return m_s3BucketArnHasBeenSet; }
130 inline void SetS3BucketArn(const Aws::String& value) { m_s3BucketArnHasBeenSet = true; m_s3BucketArn = value; }
131 inline void SetS3BucketArn(Aws::String&& value) { m_s3BucketArnHasBeenSet = true; m_s3BucketArn = std::move(value); }
132 inline void SetS3BucketArn(const char* value) { m_s3BucketArnHasBeenSet = true; m_s3BucketArn.assign(value); }
133 inline SubscriberResource& WithS3BucketArn(const Aws::String& value) { SetS3BucketArn(value); return *this;}
134 inline SubscriberResource& WithS3BucketArn(Aws::String&& value) { SetS3BucketArn(std::move(value)); return *this;}
135 inline SubscriberResource& WithS3BucketArn(const char* value) { SetS3BucketArn(value); return *this;}
137
139
145 inline const Aws::Vector<LogSourceResource>& GetSources() const{ return m_sources; }
146 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
147 inline void SetSources(const Aws::Vector<LogSourceResource>& value) { m_sourcesHasBeenSet = true; m_sources = value; }
148 inline void SetSources(Aws::Vector<LogSourceResource>&& value) { m_sourcesHasBeenSet = true; m_sources = std::move(value); }
149 inline SubscriberResource& WithSources(const Aws::Vector<LogSourceResource>& value) { SetSources(value); return *this;}
150 inline SubscriberResource& WithSources(Aws::Vector<LogSourceResource>&& value) { SetSources(std::move(value)); return *this;}
151 inline SubscriberResource& AddSources(const LogSourceResource& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; }
152 inline SubscriberResource& AddSources(LogSourceResource&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(value)); return *this; }
154
156
159 inline const Aws::String& GetSubscriberArn() const{ return m_subscriberArn; }
160 inline bool SubscriberArnHasBeenSet() const { return m_subscriberArnHasBeenSet; }
161 inline void SetSubscriberArn(const Aws::String& value) { m_subscriberArnHasBeenSet = true; m_subscriberArn = value; }
162 inline void SetSubscriberArn(Aws::String&& value) { m_subscriberArnHasBeenSet = true; m_subscriberArn = std::move(value); }
163 inline void SetSubscriberArn(const char* value) { m_subscriberArnHasBeenSet = true; m_subscriberArn.assign(value); }
164 inline SubscriberResource& WithSubscriberArn(const Aws::String& value) { SetSubscriberArn(value); return *this;}
165 inline SubscriberResource& WithSubscriberArn(Aws::String&& value) { SetSubscriberArn(std::move(value)); return *this;}
166 inline SubscriberResource& WithSubscriberArn(const char* value) { SetSubscriberArn(value); return *this;}
168
170
175 inline const Aws::String& GetSubscriberDescription() const{ return m_subscriberDescription; }
176 inline bool SubscriberDescriptionHasBeenSet() const { return m_subscriberDescriptionHasBeenSet; }
177 inline void SetSubscriberDescription(const Aws::String& value) { m_subscriberDescriptionHasBeenSet = true; m_subscriberDescription = value; }
178 inline void SetSubscriberDescription(Aws::String&& value) { m_subscriberDescriptionHasBeenSet = true; m_subscriberDescription = std::move(value); }
179 inline void SetSubscriberDescription(const char* value) { m_subscriberDescriptionHasBeenSet = true; m_subscriberDescription.assign(value); }
181 inline SubscriberResource& WithSubscriberDescription(Aws::String&& value) { SetSubscriberDescription(std::move(value)); return *this;}
182 inline SubscriberResource& WithSubscriberDescription(const char* value) { SetSubscriberDescription(value); return *this;}
184
186
189 inline const Aws::String& GetSubscriberEndpoint() const{ return m_subscriberEndpoint; }
190 inline bool SubscriberEndpointHasBeenSet() const { return m_subscriberEndpointHasBeenSet; }
191 inline void SetSubscriberEndpoint(const Aws::String& value) { m_subscriberEndpointHasBeenSet = true; m_subscriberEndpoint = value; }
192 inline void SetSubscriberEndpoint(Aws::String&& value) { m_subscriberEndpointHasBeenSet = true; m_subscriberEndpoint = std::move(value); }
193 inline void SetSubscriberEndpoint(const char* value) { m_subscriberEndpointHasBeenSet = true; m_subscriberEndpoint.assign(value); }
194 inline SubscriberResource& WithSubscriberEndpoint(const Aws::String& value) { SetSubscriberEndpoint(value); return *this;}
195 inline SubscriberResource& WithSubscriberEndpoint(Aws::String&& value) { SetSubscriberEndpoint(std::move(value)); return *this;}
196 inline SubscriberResource& WithSubscriberEndpoint(const char* value) { SetSubscriberEndpoint(value); return *this;}
198
200
203 inline const Aws::String& GetSubscriberId() const{ return m_subscriberId; }
204 inline bool SubscriberIdHasBeenSet() const { return m_subscriberIdHasBeenSet; }
205 inline void SetSubscriberId(const Aws::String& value) { m_subscriberIdHasBeenSet = true; m_subscriberId = value; }
206 inline void SetSubscriberId(Aws::String&& value) { m_subscriberIdHasBeenSet = true; m_subscriberId = std::move(value); }
207 inline void SetSubscriberId(const char* value) { m_subscriberIdHasBeenSet = true; m_subscriberId.assign(value); }
208 inline SubscriberResource& WithSubscriberId(const Aws::String& value) { SetSubscriberId(value); return *this;}
209 inline SubscriberResource& WithSubscriberId(Aws::String&& value) { SetSubscriberId(std::move(value)); return *this;}
210 inline SubscriberResource& WithSubscriberId(const char* value) { SetSubscriberId(value); return *this;}
212
214
217 inline const AwsIdentity& GetSubscriberIdentity() const{ return m_subscriberIdentity; }
218 inline bool SubscriberIdentityHasBeenSet() const { return m_subscriberIdentityHasBeenSet; }
219 inline void SetSubscriberIdentity(const AwsIdentity& value) { m_subscriberIdentityHasBeenSet = true; m_subscriberIdentity = value; }
220 inline void SetSubscriberIdentity(AwsIdentity&& value) { m_subscriberIdentityHasBeenSet = true; m_subscriberIdentity = std::move(value); }
221 inline SubscriberResource& WithSubscriberIdentity(const AwsIdentity& value) { SetSubscriberIdentity(value); return *this;}
222 inline SubscriberResource& WithSubscriberIdentity(AwsIdentity&& value) { SetSubscriberIdentity(std::move(value)); return *this;}
224
226
229 inline const Aws::String& GetSubscriberName() const{ return m_subscriberName; }
230 inline bool SubscriberNameHasBeenSet() const { return m_subscriberNameHasBeenSet; }
231 inline void SetSubscriberName(const Aws::String& value) { m_subscriberNameHasBeenSet = true; m_subscriberName = value; }
232 inline void SetSubscriberName(Aws::String&& value) { m_subscriberNameHasBeenSet = true; m_subscriberName = std::move(value); }
233 inline void SetSubscriberName(const char* value) { m_subscriberNameHasBeenSet = true; m_subscriberName.assign(value); }
234 inline SubscriberResource& WithSubscriberName(const Aws::String& value) { SetSubscriberName(value); return *this;}
235 inline SubscriberResource& WithSubscriberName(Aws::String&& value) { SetSubscriberName(std::move(value)); return *this;}
236 inline SubscriberResource& WithSubscriberName(const char* value) { SetSubscriberName(value); return *this;}
238
240
243 inline const SubscriberStatus& GetSubscriberStatus() const{ return m_subscriberStatus; }
244 inline bool SubscriberStatusHasBeenSet() const { return m_subscriberStatusHasBeenSet; }
245 inline void SetSubscriberStatus(const SubscriberStatus& value) { m_subscriberStatusHasBeenSet = true; m_subscriberStatus = value; }
246 inline void SetSubscriberStatus(SubscriberStatus&& value) { m_subscriberStatusHasBeenSet = true; m_subscriberStatus = std::move(value); }
248 inline SubscriberResource& WithSubscriberStatus(SubscriberStatus&& value) { SetSubscriberStatus(std::move(value)); return *this;}
250
252
255 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
256 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
257 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
258 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
259 inline SubscriberResource& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
260 inline SubscriberResource& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
262 private:
263
264 Aws::Vector<AccessType> m_accessTypes;
265 bool m_accessTypesHasBeenSet = false;
266
267 Aws::Utils::DateTime m_createdAt;
268 bool m_createdAtHasBeenSet = false;
269
270 Aws::String m_resourceShareArn;
271 bool m_resourceShareArnHasBeenSet = false;
272
273 Aws::String m_resourceShareName;
274 bool m_resourceShareNameHasBeenSet = false;
275
276 Aws::String m_roleArn;
277 bool m_roleArnHasBeenSet = false;
278
279 Aws::String m_s3BucketArn;
280 bool m_s3BucketArnHasBeenSet = false;
281
283 bool m_sourcesHasBeenSet = false;
284
285 Aws::String m_subscriberArn;
286 bool m_subscriberArnHasBeenSet = false;
287
288 Aws::String m_subscriberDescription;
289 bool m_subscriberDescriptionHasBeenSet = false;
290
291 Aws::String m_subscriberEndpoint;
292 bool m_subscriberEndpointHasBeenSet = false;
293
294 Aws::String m_subscriberId;
295 bool m_subscriberIdHasBeenSet = false;
296
297 AwsIdentity m_subscriberIdentity;
298 bool m_subscriberIdentityHasBeenSet = false;
299
300 Aws::String m_subscriberName;
301 bool m_subscriberNameHasBeenSet = false;
302
303 SubscriberStatus m_subscriberStatus;
304 bool m_subscriberStatusHasBeenSet = false;
305
306 Aws::Utils::DateTime m_updatedAt;
307 bool m_updatedAtHasBeenSet = false;
308 };
309
310} // namespace Model
311} // namespace SecurityLake
312} // namespace Aws
SubscriberResource & WithResourceShareArn(const Aws::String &value)
SubscriberResource & WithRoleArn(const Aws::String &value)
SubscriberResource & WithSubscriberStatus(const SubscriberStatus &value)
SubscriberResource & WithS3BucketArn(const Aws::String &value)
SubscriberResource & AddAccessTypes(const AccessType &value)
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetSources(const Aws::Vector< LogSourceResource > &value)
const Aws::Vector< AccessType > & GetAccessTypes() const
SubscriberResource & WithS3BucketArn(const char *value)
void SetSubscriberId(const Aws::String &value)
void SetSubscriberIdentity(const AwsIdentity &value)
SubscriberResource & WithSubscriberName(Aws::String &&value)
void SetSubscriberArn(const Aws::String &value)
SubscriberResource & WithRoleArn(Aws::String &&value)
SubscriberResource & WithSubscriberDescription(Aws::String &&value)
SubscriberResource & AddSources(LogSourceResource &&value)
AWS_SECURITYLAKE_API SubscriberResource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSubscriberName(const Aws::String &value)
void SetSubscriberStatus(const SubscriberStatus &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
SubscriberResource & WithResourceShareName(Aws::String &&value)
const Aws::Vector< LogSourceResource > & GetSources() const
void SetUpdatedAt(const Aws::Utils::DateTime &value)
SubscriberResource & WithSubscriberDescription(const Aws::String &value)
SubscriberResource & WithAccessTypes(const Aws::Vector< AccessType > &value)
SubscriberResource & WithSubscriberEndpoint(const char *value)
SubscriberResource & WithSources(const Aws::Vector< LogSourceResource > &value)
SubscriberResource & WithSubscriberEndpoint(Aws::String &&value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
void SetS3BucketArn(const Aws::String &value)
SubscriberResource & WithSubscriberEndpoint(const Aws::String &value)
void SetSubscriberStatus(SubscriberStatus &&value)
SubscriberResource & WithSubscriberIdentity(const AwsIdentity &value)
const Aws::String & GetSubscriberDescription() const
SubscriberResource & WithResourceShareName(const char *value)
SubscriberResource & WithUpdatedAt(const Aws::Utils::DateTime &value)
void SetAccessTypes(const Aws::Vector< AccessType > &value)
SubscriberResource & WithSubscriberName(const char *value)
const SubscriberStatus & GetSubscriberStatus() const
SubscriberResource & WithSubscriberIdentity(AwsIdentity &&value)
SubscriberResource & WithSubscriberDescription(const char *value)
void SetSubscriberDescription(const Aws::String &value)
void SetAccessTypes(Aws::Vector< AccessType > &&value)
AWS_SECURITYLAKE_API Aws::Utils::Json::JsonValue Jsonize() const
SubscriberResource & AddSources(const LogSourceResource &value)
SubscriberResource & WithSources(Aws::Vector< LogSourceResource > &&value)
void SetSources(Aws::Vector< LogSourceResource > &&value)
SubscriberResource & WithResourceShareArn(const char *value)
SubscriberResource & WithUpdatedAt(Aws::Utils::DateTime &&value)
SubscriberResource & WithS3BucketArn(Aws::String &&value)
SubscriberResource & WithCreatedAt(const Aws::Utils::DateTime &value)
void SetSubscriberEndpoint(const Aws::String &value)
SubscriberResource & WithSubscriberArn(Aws::String &&value)
SubscriberResource & WithSubscriberName(const Aws::String &value)
SubscriberResource & WithAccessTypes(Aws::Vector< AccessType > &&value)
void SetResourceShareArn(const Aws::String &value)
AWS_SECURITYLAKE_API SubscriberResource(Aws::Utils::Json::JsonView jsonValue)
SubscriberResource & WithRoleArn(const char *value)
SubscriberResource & WithSubscriberId(const char *value)
const Aws::Utils::DateTime & GetCreatedAt() const
SubscriberResource & WithCreatedAt(Aws::Utils::DateTime &&value)
SubscriberResource & WithResourceShareArn(Aws::String &&value)
SubscriberResource & WithSubscriberArn(const char *value)
SubscriberResource & WithResourceShareName(const Aws::String &value)
SubscriberResource & WithSubscriberId(Aws::String &&value)
SubscriberResource & WithSubscriberId(const Aws::String &value)
SubscriberResource & AddAccessTypes(AccessType &&value)
SubscriberResource & WithSubscriberArn(const Aws::String &value)
SubscriberResource & WithSubscriberStatus(SubscriberStatus &&value)
void SetResourceShareName(const Aws::String &value)
void SetUpdatedAt(Aws::Utils::DateTime &&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