AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsS3BucketDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityhub/model/AwsS3BucketServerSideEncryptionConfiguration.h>
10#include <aws/securityhub/model/AwsS3BucketBucketLifecycleConfigurationDetails.h>
11#include <aws/securityhub/model/AwsS3AccountPublicAccessBlockDetails.h>
12#include <aws/securityhub/model/AwsS3BucketLoggingConfiguration.h>
13#include <aws/securityhub/model/AwsS3BucketWebsiteConfiguration.h>
14#include <aws/securityhub/model/AwsS3BucketNotificationConfiguration.h>
15#include <aws/securityhub/model/AwsS3BucketBucketVersioningConfiguration.h>
16#include <aws/securityhub/model/AwsS3BucketObjectLockConfiguration.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace SecurityHub
30{
31namespace Model
32{
33
41 {
42 public:
43 AWS_SECURITYHUB_API AwsS3BucketDetails();
44 AWS_SECURITYHUB_API AwsS3BucketDetails(Aws::Utils::Json::JsonView jsonValue);
46 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
54 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
55 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
56 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
57 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
58 inline AwsS3BucketDetails& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
59 inline AwsS3BucketDetails& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
60 inline AwsS3BucketDetails& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
62
64
67 inline const Aws::String& GetOwnerName() const{ return m_ownerName; }
68 inline bool OwnerNameHasBeenSet() const { return m_ownerNameHasBeenSet; }
69 inline void SetOwnerName(const Aws::String& value) { m_ownerNameHasBeenSet = true; m_ownerName = value; }
70 inline void SetOwnerName(Aws::String&& value) { m_ownerNameHasBeenSet = true; m_ownerName = std::move(value); }
71 inline void SetOwnerName(const char* value) { m_ownerNameHasBeenSet = true; m_ownerName.assign(value); }
72 inline AwsS3BucketDetails& WithOwnerName(const Aws::String& value) { SetOwnerName(value); return *this;}
73 inline AwsS3BucketDetails& WithOwnerName(Aws::String&& value) { SetOwnerName(std::move(value)); return *this;}
74 inline AwsS3BucketDetails& WithOwnerName(const char* value) { SetOwnerName(value); return *this;}
76
78
82 inline const Aws::String& GetOwnerAccountId() const{ return m_ownerAccountId; }
83 inline bool OwnerAccountIdHasBeenSet() const { return m_ownerAccountIdHasBeenSet; }
84 inline void SetOwnerAccountId(const Aws::String& value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId = value; }
85 inline void SetOwnerAccountId(Aws::String&& value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId = std::move(value); }
86 inline void SetOwnerAccountId(const char* value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId.assign(value); }
87 inline AwsS3BucketDetails& WithOwnerAccountId(const Aws::String& value) { SetOwnerAccountId(value); return *this;}
88 inline AwsS3BucketDetails& WithOwnerAccountId(Aws::String&& value) { SetOwnerAccountId(std::move(value)); return *this;}
89 inline AwsS3BucketDetails& WithOwnerAccountId(const char* value) { SetOwnerAccountId(value); return *this;}
91
93
110 inline const Aws::String& GetCreatedAt() const{ return m_createdAt; }
111 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
112 inline void SetCreatedAt(const Aws::String& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
113 inline void SetCreatedAt(Aws::String&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
114 inline void SetCreatedAt(const char* value) { m_createdAtHasBeenSet = true; m_createdAt.assign(value); }
115 inline AwsS3BucketDetails& WithCreatedAt(const Aws::String& value) { SetCreatedAt(value); return *this;}
116 inline AwsS3BucketDetails& WithCreatedAt(Aws::String&& value) { SetCreatedAt(std::move(value)); return *this;}
117 inline AwsS3BucketDetails& WithCreatedAt(const char* value) { SetCreatedAt(value); return *this;}
119
121
124 inline const AwsS3BucketServerSideEncryptionConfiguration& GetServerSideEncryptionConfiguration() const{ return m_serverSideEncryptionConfiguration; }
125 inline bool ServerSideEncryptionConfigurationHasBeenSet() const { return m_serverSideEncryptionConfigurationHasBeenSet; }
126 inline void SetServerSideEncryptionConfiguration(const AwsS3BucketServerSideEncryptionConfiguration& value) { m_serverSideEncryptionConfigurationHasBeenSet = true; m_serverSideEncryptionConfiguration = value; }
127 inline void SetServerSideEncryptionConfiguration(AwsS3BucketServerSideEncryptionConfiguration&& value) { m_serverSideEncryptionConfigurationHasBeenSet = true; m_serverSideEncryptionConfiguration = std::move(value); }
131
133
136 inline const AwsS3BucketBucketLifecycleConfigurationDetails& GetBucketLifecycleConfiguration() const{ return m_bucketLifecycleConfiguration; }
137 inline bool BucketLifecycleConfigurationHasBeenSet() const { return m_bucketLifecycleConfigurationHasBeenSet; }
138 inline void SetBucketLifecycleConfiguration(const AwsS3BucketBucketLifecycleConfigurationDetails& value) { m_bucketLifecycleConfigurationHasBeenSet = true; m_bucketLifecycleConfiguration = value; }
139 inline void SetBucketLifecycleConfiguration(AwsS3BucketBucketLifecycleConfigurationDetails&& value) { m_bucketLifecycleConfigurationHasBeenSet = true; m_bucketLifecycleConfiguration = std::move(value); }
143
145
149 inline const AwsS3AccountPublicAccessBlockDetails& GetPublicAccessBlockConfiguration() const{ return m_publicAccessBlockConfiguration; }
150 inline bool PublicAccessBlockConfigurationHasBeenSet() const { return m_publicAccessBlockConfigurationHasBeenSet; }
151 inline void SetPublicAccessBlockConfiguration(const AwsS3AccountPublicAccessBlockDetails& value) { m_publicAccessBlockConfigurationHasBeenSet = true; m_publicAccessBlockConfiguration = value; }
152 inline void SetPublicAccessBlockConfiguration(AwsS3AccountPublicAccessBlockDetails&& value) { m_publicAccessBlockConfigurationHasBeenSet = true; m_publicAccessBlockConfiguration = std::move(value); }
156
158
161 inline const Aws::String& GetAccessControlList() const{ return m_accessControlList; }
162 inline bool AccessControlListHasBeenSet() const { return m_accessControlListHasBeenSet; }
163 inline void SetAccessControlList(const Aws::String& value) { m_accessControlListHasBeenSet = true; m_accessControlList = value; }
164 inline void SetAccessControlList(Aws::String&& value) { m_accessControlListHasBeenSet = true; m_accessControlList = std::move(value); }
165 inline void SetAccessControlList(const char* value) { m_accessControlListHasBeenSet = true; m_accessControlList.assign(value); }
166 inline AwsS3BucketDetails& WithAccessControlList(const Aws::String& value) { SetAccessControlList(value); return *this;}
167 inline AwsS3BucketDetails& WithAccessControlList(Aws::String&& value) { SetAccessControlList(std::move(value)); return *this;}
168 inline AwsS3BucketDetails& WithAccessControlList(const char* value) { SetAccessControlList(value); return *this;}
170
172
175 inline const AwsS3BucketLoggingConfiguration& GetBucketLoggingConfiguration() const{ return m_bucketLoggingConfiguration; }
176 inline bool BucketLoggingConfigurationHasBeenSet() const { return m_bucketLoggingConfigurationHasBeenSet; }
177 inline void SetBucketLoggingConfiguration(const AwsS3BucketLoggingConfiguration& value) { m_bucketLoggingConfigurationHasBeenSet = true; m_bucketLoggingConfiguration = value; }
178 inline void SetBucketLoggingConfiguration(AwsS3BucketLoggingConfiguration&& value) { m_bucketLoggingConfigurationHasBeenSet = true; m_bucketLoggingConfiguration = std::move(value); }
182
184
187 inline const AwsS3BucketWebsiteConfiguration& GetBucketWebsiteConfiguration() const{ return m_bucketWebsiteConfiguration; }
188 inline bool BucketWebsiteConfigurationHasBeenSet() const { return m_bucketWebsiteConfigurationHasBeenSet; }
189 inline void SetBucketWebsiteConfiguration(const AwsS3BucketWebsiteConfiguration& value) { m_bucketWebsiteConfigurationHasBeenSet = true; m_bucketWebsiteConfiguration = value; }
190 inline void SetBucketWebsiteConfiguration(AwsS3BucketWebsiteConfiguration&& value) { m_bucketWebsiteConfigurationHasBeenSet = true; m_bucketWebsiteConfiguration = std::move(value); }
194
196
199 inline const AwsS3BucketNotificationConfiguration& GetBucketNotificationConfiguration() const{ return m_bucketNotificationConfiguration; }
200 inline bool BucketNotificationConfigurationHasBeenSet() const { return m_bucketNotificationConfigurationHasBeenSet; }
201 inline void SetBucketNotificationConfiguration(const AwsS3BucketNotificationConfiguration& value) { m_bucketNotificationConfigurationHasBeenSet = true; m_bucketNotificationConfiguration = value; }
202 inline void SetBucketNotificationConfiguration(AwsS3BucketNotificationConfiguration&& value) { m_bucketNotificationConfigurationHasBeenSet = true; m_bucketNotificationConfiguration = std::move(value); }
206
208
211 inline const AwsS3BucketBucketVersioningConfiguration& GetBucketVersioningConfiguration() const{ return m_bucketVersioningConfiguration; }
212 inline bool BucketVersioningConfigurationHasBeenSet() const { return m_bucketVersioningConfigurationHasBeenSet; }
213 inline void SetBucketVersioningConfiguration(const AwsS3BucketBucketVersioningConfiguration& value) { m_bucketVersioningConfigurationHasBeenSet = true; m_bucketVersioningConfiguration = value; }
214 inline void SetBucketVersioningConfiguration(AwsS3BucketBucketVersioningConfiguration&& value) { m_bucketVersioningConfigurationHasBeenSet = true; m_bucketVersioningConfiguration = std::move(value); }
218
220
224 inline const AwsS3BucketObjectLockConfiguration& GetObjectLockConfiguration() const{ return m_objectLockConfiguration; }
225 inline bool ObjectLockConfigurationHasBeenSet() const { return m_objectLockConfigurationHasBeenSet; }
226 inline void SetObjectLockConfiguration(const AwsS3BucketObjectLockConfiguration& value) { m_objectLockConfigurationHasBeenSet = true; m_objectLockConfiguration = value; }
227 inline void SetObjectLockConfiguration(AwsS3BucketObjectLockConfiguration&& value) { m_objectLockConfigurationHasBeenSet = true; m_objectLockConfiguration = std::move(value); }
231
233
236 inline const Aws::String& GetName() const{ return m_name; }
237 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
238 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
239 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
240 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
241 inline AwsS3BucketDetails& WithName(const Aws::String& value) { SetName(value); return *this;}
242 inline AwsS3BucketDetails& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
243 inline AwsS3BucketDetails& WithName(const char* value) { SetName(value); return *this;}
245 private:
246
247 Aws::String m_ownerId;
248 bool m_ownerIdHasBeenSet = false;
249
250 Aws::String m_ownerName;
251 bool m_ownerNameHasBeenSet = false;
252
253 Aws::String m_ownerAccountId;
254 bool m_ownerAccountIdHasBeenSet = false;
255
256 Aws::String m_createdAt;
257 bool m_createdAtHasBeenSet = false;
258
259 AwsS3BucketServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration;
260 bool m_serverSideEncryptionConfigurationHasBeenSet = false;
261
262 AwsS3BucketBucketLifecycleConfigurationDetails m_bucketLifecycleConfiguration;
263 bool m_bucketLifecycleConfigurationHasBeenSet = false;
264
265 AwsS3AccountPublicAccessBlockDetails m_publicAccessBlockConfiguration;
266 bool m_publicAccessBlockConfigurationHasBeenSet = false;
267
268 Aws::String m_accessControlList;
269 bool m_accessControlListHasBeenSet = false;
270
271 AwsS3BucketLoggingConfiguration m_bucketLoggingConfiguration;
272 bool m_bucketLoggingConfigurationHasBeenSet = false;
273
274 AwsS3BucketWebsiteConfiguration m_bucketWebsiteConfiguration;
275 bool m_bucketWebsiteConfigurationHasBeenSet = false;
276
277 AwsS3BucketNotificationConfiguration m_bucketNotificationConfiguration;
278 bool m_bucketNotificationConfigurationHasBeenSet = false;
279
280 AwsS3BucketBucketVersioningConfiguration m_bucketVersioningConfiguration;
281 bool m_bucketVersioningConfigurationHasBeenSet = false;
282
283 AwsS3BucketObjectLockConfiguration m_objectLockConfiguration;
284 bool m_objectLockConfigurationHasBeenSet = false;
285
286 Aws::String m_name;
287 bool m_nameHasBeenSet = false;
288 };
289
290} // namespace Model
291} // namespace SecurityHub
292} // namespace Aws
AwsS3BucketDetails & WithBucketWebsiteConfiguration(const AwsS3BucketWebsiteConfiguration &value)
AwsS3BucketDetails & WithBucketLifecycleConfiguration(const AwsS3BucketBucketLifecycleConfigurationDetails &value)
void SetServerSideEncryptionConfiguration(const AwsS3BucketServerSideEncryptionConfiguration &value)
AwsS3BucketDetails & WithName(const char *value)
void SetBucketLifecycleConfiguration(AwsS3BucketBucketLifecycleConfigurationDetails &&value)
const AwsS3BucketLoggingConfiguration & GetBucketLoggingConfiguration() const
void SetAccessControlList(const Aws::String &value)
AwsS3BucketDetails & WithOwnerAccountId(Aws::String &&value)
AwsS3BucketDetails & WithBucketNotificationConfiguration(AwsS3BucketNotificationConfiguration &&value)
void SetBucketNotificationConfiguration(AwsS3BucketNotificationConfiguration &&value)
void SetBucketLifecycleConfiguration(const AwsS3BucketBucketLifecycleConfigurationDetails &value)
AwsS3BucketDetails & WithServerSideEncryptionConfiguration(const AwsS3BucketServerSideEncryptionConfiguration &value)
const AwsS3BucketServerSideEncryptionConfiguration & GetServerSideEncryptionConfiguration() const
AwsS3BucketDetails & WithAccessControlList(Aws::String &&value)
void SetBucketWebsiteConfiguration(AwsS3BucketWebsiteConfiguration &&value)
AWS_SECURITYHUB_API AwsS3BucketDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsS3BucketDetails & WithOwnerName(const char *value)
void SetBucketNotificationConfiguration(const AwsS3BucketNotificationConfiguration &value)
AwsS3BucketDetails & WithBucketLoggingConfiguration(AwsS3BucketLoggingConfiguration &&value)
AwsS3BucketDetails & WithOwnerId(const char *value)
AwsS3BucketDetails & WithBucketVersioningConfiguration(const AwsS3BucketBucketVersioningConfiguration &value)
AwsS3BucketDetails & WithCreatedAt(Aws::String &&value)
AwsS3BucketDetails & WithObjectLockConfiguration(const AwsS3BucketObjectLockConfiguration &value)
void SetBucketVersioningConfiguration(AwsS3BucketBucketVersioningConfiguration &&value)
AwsS3BucketDetails & WithOwnerAccountId(const Aws::String &value)
AwsS3BucketDetails & WithBucketWebsiteConfiguration(AwsS3BucketWebsiteConfiguration &&value)
AwsS3BucketDetails & WithOwnerId(Aws::String &&value)
AWS_SECURITYHUB_API AwsS3BucketDetails(Aws::Utils::Json::JsonView jsonValue)
const AwsS3BucketBucketVersioningConfiguration & GetBucketVersioningConfiguration() const
const AwsS3BucketWebsiteConfiguration & GetBucketWebsiteConfiguration() const
const AwsS3BucketObjectLockConfiguration & GetObjectLockConfiguration() const
const AwsS3BucketNotificationConfiguration & GetBucketNotificationConfiguration() const
AwsS3BucketDetails & WithAccessControlList(const char *value)
AwsS3BucketDetails & WithServerSideEncryptionConfiguration(AwsS3BucketServerSideEncryptionConfiguration &&value)
AwsS3BucketDetails & WithBucketLifecycleConfiguration(AwsS3BucketBucketLifecycleConfigurationDetails &&value)
void SetBucketVersioningConfiguration(const AwsS3BucketBucketVersioningConfiguration &value)
AwsS3BucketDetails & WithOwnerId(const Aws::String &value)
void SetCreatedAt(const Aws::String &value)
void SetOwnerName(const Aws::String &value)
AwsS3BucketDetails & WithName(Aws::String &&value)
const AwsS3AccountPublicAccessBlockDetails & GetPublicAccessBlockConfiguration() const
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetBucketLoggingConfiguration(AwsS3BucketLoggingConfiguration &&value)
void SetOwnerAccountId(const Aws::String &value)
AwsS3BucketDetails & WithObjectLockConfiguration(AwsS3BucketObjectLockConfiguration &&value)
void SetObjectLockConfiguration(AwsS3BucketObjectLockConfiguration &&value)
AwsS3BucketDetails & WithBucketLoggingConfiguration(const AwsS3BucketLoggingConfiguration &value)
AwsS3BucketDetails & WithOwnerName(const Aws::String &value)
void SetBucketLoggingConfiguration(const AwsS3BucketLoggingConfiguration &value)
AwsS3BucketDetails & WithBucketVersioningConfiguration(AwsS3BucketBucketVersioningConfiguration &&value)
AwsS3BucketDetails & WithOwnerName(Aws::String &&value)
void SetObjectLockConfiguration(const AwsS3BucketObjectLockConfiguration &value)
void SetPublicAccessBlockConfiguration(const AwsS3AccountPublicAccessBlockDetails &value)
const AwsS3BucketBucketLifecycleConfigurationDetails & GetBucketLifecycleConfiguration() const
AwsS3BucketDetails & WithName(const Aws::String &value)
AwsS3BucketDetails & WithAccessControlList(const Aws::String &value)
void SetServerSideEncryptionConfiguration(AwsS3BucketServerSideEncryptionConfiguration &&value)
AwsS3BucketDetails & WithCreatedAt(const char *value)
AwsS3BucketDetails & WithOwnerAccountId(const char *value)
AwsS3BucketDetails & WithBucketNotificationConfiguration(const AwsS3BucketNotificationConfiguration &value)
AwsS3BucketDetails & WithPublicAccessBlockConfiguration(const AwsS3AccountPublicAccessBlockDetails &value)
void SetOwnerId(const Aws::String &value)
AwsS3BucketDetails & WithCreatedAt(const Aws::String &value)
void SetBucketWebsiteConfiguration(const AwsS3BucketWebsiteConfiguration &value)
void SetPublicAccessBlockConfiguration(AwsS3AccountPublicAccessBlockDetails &&value)
AwsS3BucketDetails & WithPublicAccessBlockConfiguration(AwsS3AccountPublicAccessBlockDetails &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue