AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename OwnerIdT = Aws::String>
56 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
57 template<typename OwnerIdT = Aws::String>
58 AwsS3BucketDetails& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
60
62
65 inline const Aws::String& GetOwnerName() const { return m_ownerName; }
66 inline bool OwnerNameHasBeenSet() const { return m_ownerNameHasBeenSet; }
67 template<typename OwnerNameT = Aws::String>
68 void SetOwnerName(OwnerNameT&& value) { m_ownerNameHasBeenSet = true; m_ownerName = std::forward<OwnerNameT>(value); }
69 template<typename OwnerNameT = Aws::String>
70 AwsS3BucketDetails& WithOwnerName(OwnerNameT&& value) { SetOwnerName(std::forward<OwnerNameT>(value)); return *this;}
72
74
78 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
79 inline bool OwnerAccountIdHasBeenSet() const { return m_ownerAccountIdHasBeenSet; }
80 template<typename OwnerAccountIdT = Aws::String>
81 void SetOwnerAccountId(OwnerAccountIdT&& value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId = std::forward<OwnerAccountIdT>(value); }
82 template<typename OwnerAccountIdT = Aws::String>
83 AwsS3BucketDetails& WithOwnerAccountId(OwnerAccountIdT&& value) { SetOwnerAccountId(std::forward<OwnerAccountIdT>(value)); return *this;}
85
87
92 inline const Aws::String& GetCreatedAt() const { return m_createdAt; }
93 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
94 template<typename CreatedAtT = Aws::String>
95 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
96 template<typename CreatedAtT = Aws::String>
97 AwsS3BucketDetails& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
99
101
104 inline const AwsS3BucketServerSideEncryptionConfiguration& GetServerSideEncryptionConfiguration() const { return m_serverSideEncryptionConfiguration; }
105 inline bool ServerSideEncryptionConfigurationHasBeenSet() const { return m_serverSideEncryptionConfigurationHasBeenSet; }
106 template<typename ServerSideEncryptionConfigurationT = AwsS3BucketServerSideEncryptionConfiguration>
107 void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT&& value) { m_serverSideEncryptionConfigurationHasBeenSet = true; m_serverSideEncryptionConfiguration = std::forward<ServerSideEncryptionConfigurationT>(value); }
108 template<typename ServerSideEncryptionConfigurationT = AwsS3BucketServerSideEncryptionConfiguration>
109 AwsS3BucketDetails& WithServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT&& value) { SetServerSideEncryptionConfiguration(std::forward<ServerSideEncryptionConfigurationT>(value)); return *this;}
111
113
116 inline const AwsS3BucketBucketLifecycleConfigurationDetails& GetBucketLifecycleConfiguration() const { return m_bucketLifecycleConfiguration; }
117 inline bool BucketLifecycleConfigurationHasBeenSet() const { return m_bucketLifecycleConfigurationHasBeenSet; }
118 template<typename BucketLifecycleConfigurationT = AwsS3BucketBucketLifecycleConfigurationDetails>
119 void SetBucketLifecycleConfiguration(BucketLifecycleConfigurationT&& value) { m_bucketLifecycleConfigurationHasBeenSet = true; m_bucketLifecycleConfiguration = std::forward<BucketLifecycleConfigurationT>(value); }
120 template<typename BucketLifecycleConfigurationT = AwsS3BucketBucketLifecycleConfigurationDetails>
121 AwsS3BucketDetails& WithBucketLifecycleConfiguration(BucketLifecycleConfigurationT&& value) { SetBucketLifecycleConfiguration(std::forward<BucketLifecycleConfigurationT>(value)); return *this;}
123
125
129 inline const AwsS3AccountPublicAccessBlockDetails& GetPublicAccessBlockConfiguration() const { return m_publicAccessBlockConfiguration; }
130 inline bool PublicAccessBlockConfigurationHasBeenSet() const { return m_publicAccessBlockConfigurationHasBeenSet; }
131 template<typename PublicAccessBlockConfigurationT = AwsS3AccountPublicAccessBlockDetails>
132 void SetPublicAccessBlockConfiguration(PublicAccessBlockConfigurationT&& value) { m_publicAccessBlockConfigurationHasBeenSet = true; m_publicAccessBlockConfiguration = std::forward<PublicAccessBlockConfigurationT>(value); }
133 template<typename PublicAccessBlockConfigurationT = AwsS3AccountPublicAccessBlockDetails>
134 AwsS3BucketDetails& WithPublicAccessBlockConfiguration(PublicAccessBlockConfigurationT&& value) { SetPublicAccessBlockConfiguration(std::forward<PublicAccessBlockConfigurationT>(value)); return *this;}
136
138
141 inline const Aws::String& GetAccessControlList() const { return m_accessControlList; }
142 inline bool AccessControlListHasBeenSet() const { return m_accessControlListHasBeenSet; }
143 template<typename AccessControlListT = Aws::String>
144 void SetAccessControlList(AccessControlListT&& value) { m_accessControlListHasBeenSet = true; m_accessControlList = std::forward<AccessControlListT>(value); }
145 template<typename AccessControlListT = Aws::String>
146 AwsS3BucketDetails& WithAccessControlList(AccessControlListT&& value) { SetAccessControlList(std::forward<AccessControlListT>(value)); return *this;}
148
150
153 inline const AwsS3BucketLoggingConfiguration& GetBucketLoggingConfiguration() const { return m_bucketLoggingConfiguration; }
154 inline bool BucketLoggingConfigurationHasBeenSet() const { return m_bucketLoggingConfigurationHasBeenSet; }
155 template<typename BucketLoggingConfigurationT = AwsS3BucketLoggingConfiguration>
156 void SetBucketLoggingConfiguration(BucketLoggingConfigurationT&& value) { m_bucketLoggingConfigurationHasBeenSet = true; m_bucketLoggingConfiguration = std::forward<BucketLoggingConfigurationT>(value); }
157 template<typename BucketLoggingConfigurationT = AwsS3BucketLoggingConfiguration>
158 AwsS3BucketDetails& WithBucketLoggingConfiguration(BucketLoggingConfigurationT&& value) { SetBucketLoggingConfiguration(std::forward<BucketLoggingConfigurationT>(value)); return *this;}
160
162
165 inline const AwsS3BucketWebsiteConfiguration& GetBucketWebsiteConfiguration() const { return m_bucketWebsiteConfiguration; }
166 inline bool BucketWebsiteConfigurationHasBeenSet() const { return m_bucketWebsiteConfigurationHasBeenSet; }
167 template<typename BucketWebsiteConfigurationT = AwsS3BucketWebsiteConfiguration>
168 void SetBucketWebsiteConfiguration(BucketWebsiteConfigurationT&& value) { m_bucketWebsiteConfigurationHasBeenSet = true; m_bucketWebsiteConfiguration = std::forward<BucketWebsiteConfigurationT>(value); }
169 template<typename BucketWebsiteConfigurationT = AwsS3BucketWebsiteConfiguration>
170 AwsS3BucketDetails& WithBucketWebsiteConfiguration(BucketWebsiteConfigurationT&& value) { SetBucketWebsiteConfiguration(std::forward<BucketWebsiteConfigurationT>(value)); return *this;}
172
174
177 inline const AwsS3BucketNotificationConfiguration& GetBucketNotificationConfiguration() const { return m_bucketNotificationConfiguration; }
178 inline bool BucketNotificationConfigurationHasBeenSet() const { return m_bucketNotificationConfigurationHasBeenSet; }
179 template<typename BucketNotificationConfigurationT = AwsS3BucketNotificationConfiguration>
180 void SetBucketNotificationConfiguration(BucketNotificationConfigurationT&& value) { m_bucketNotificationConfigurationHasBeenSet = true; m_bucketNotificationConfiguration = std::forward<BucketNotificationConfigurationT>(value); }
181 template<typename BucketNotificationConfigurationT = AwsS3BucketNotificationConfiguration>
182 AwsS3BucketDetails& WithBucketNotificationConfiguration(BucketNotificationConfigurationT&& value) { SetBucketNotificationConfiguration(std::forward<BucketNotificationConfigurationT>(value)); return *this;}
184
186
189 inline const AwsS3BucketBucketVersioningConfiguration& GetBucketVersioningConfiguration() const { return m_bucketVersioningConfiguration; }
190 inline bool BucketVersioningConfigurationHasBeenSet() const { return m_bucketVersioningConfigurationHasBeenSet; }
191 template<typename BucketVersioningConfigurationT = AwsS3BucketBucketVersioningConfiguration>
192 void SetBucketVersioningConfiguration(BucketVersioningConfigurationT&& value) { m_bucketVersioningConfigurationHasBeenSet = true; m_bucketVersioningConfiguration = std::forward<BucketVersioningConfigurationT>(value); }
193 template<typename BucketVersioningConfigurationT = AwsS3BucketBucketVersioningConfiguration>
194 AwsS3BucketDetails& WithBucketVersioningConfiguration(BucketVersioningConfigurationT&& value) { SetBucketVersioningConfiguration(std::forward<BucketVersioningConfigurationT>(value)); return *this;}
196
198
202 inline const AwsS3BucketObjectLockConfiguration& GetObjectLockConfiguration() const { return m_objectLockConfiguration; }
203 inline bool ObjectLockConfigurationHasBeenSet() const { return m_objectLockConfigurationHasBeenSet; }
204 template<typename ObjectLockConfigurationT = AwsS3BucketObjectLockConfiguration>
205 void SetObjectLockConfiguration(ObjectLockConfigurationT&& value) { m_objectLockConfigurationHasBeenSet = true; m_objectLockConfiguration = std::forward<ObjectLockConfigurationT>(value); }
206 template<typename ObjectLockConfigurationT = AwsS3BucketObjectLockConfiguration>
207 AwsS3BucketDetails& WithObjectLockConfiguration(ObjectLockConfigurationT&& value) { SetObjectLockConfiguration(std::forward<ObjectLockConfigurationT>(value)); return *this;}
209
211
214 inline const Aws::String& GetName() const { return m_name; }
215 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
216 template<typename NameT = Aws::String>
217 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
218 template<typename NameT = Aws::String>
219 AwsS3BucketDetails& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
221 private:
222
223 Aws::String m_ownerId;
224 bool m_ownerIdHasBeenSet = false;
225
226 Aws::String m_ownerName;
227 bool m_ownerNameHasBeenSet = false;
228
229 Aws::String m_ownerAccountId;
230 bool m_ownerAccountIdHasBeenSet = false;
231
232 Aws::String m_createdAt;
233 bool m_createdAtHasBeenSet = false;
234
235 AwsS3BucketServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration;
236 bool m_serverSideEncryptionConfigurationHasBeenSet = false;
237
238 AwsS3BucketBucketLifecycleConfigurationDetails m_bucketLifecycleConfiguration;
239 bool m_bucketLifecycleConfigurationHasBeenSet = false;
240
241 AwsS3AccountPublicAccessBlockDetails m_publicAccessBlockConfiguration;
242 bool m_publicAccessBlockConfigurationHasBeenSet = false;
243
244 Aws::String m_accessControlList;
245 bool m_accessControlListHasBeenSet = false;
246
247 AwsS3BucketLoggingConfiguration m_bucketLoggingConfiguration;
248 bool m_bucketLoggingConfigurationHasBeenSet = false;
249
250 AwsS3BucketWebsiteConfiguration m_bucketWebsiteConfiguration;
251 bool m_bucketWebsiteConfigurationHasBeenSet = false;
252
253 AwsS3BucketNotificationConfiguration m_bucketNotificationConfiguration;
254 bool m_bucketNotificationConfigurationHasBeenSet = false;
255
256 AwsS3BucketBucketVersioningConfiguration m_bucketVersioningConfiguration;
257 bool m_bucketVersioningConfigurationHasBeenSet = false;
258
259 AwsS3BucketObjectLockConfiguration m_objectLockConfiguration;
260 bool m_objectLockConfigurationHasBeenSet = false;
261
262 Aws::String m_name;
263 bool m_nameHasBeenSet = false;
264 };
265
266} // namespace Model
267} // namespace SecurityHub
268} // namespace Aws
const AwsS3BucketLoggingConfiguration & GetBucketLoggingConfiguration() const
AwsS3BucketDetails & WithBucketWebsiteConfiguration(BucketWebsiteConfigurationT &&value)
AwsS3BucketDetails & WithOwnerId(OwnerIdT &&value)
AwsS3BucketDetails & WithPublicAccessBlockConfiguration(PublicAccessBlockConfigurationT &&value)
void SetAccessControlList(AccessControlListT &&value)
const AwsS3BucketServerSideEncryptionConfiguration & GetServerSideEncryptionConfiguration() const
AWS_SECURITYHUB_API AwsS3BucketDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsS3BucketDetails & WithBucketLoggingConfiguration(BucketLoggingConfigurationT &&value)
AwsS3BucketDetails & WithObjectLockConfiguration(ObjectLockConfigurationT &&value)
AwsS3BucketDetails & WithServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT &&value)
AWS_SECURITYHUB_API AwsS3BucketDetails(Aws::Utils::Json::JsonView jsonValue)
AwsS3BucketDetails & WithOwnerAccountId(OwnerAccountIdT &&value)
const AwsS3BucketBucketVersioningConfiguration & GetBucketVersioningConfiguration() const
const AwsS3BucketWebsiteConfiguration & GetBucketWebsiteConfiguration() const
void SetBucketWebsiteConfiguration(BucketWebsiteConfigurationT &&value)
AwsS3BucketDetails & WithName(NameT &&value)
void SetOwnerAccountId(OwnerAccountIdT &&value)
AwsS3BucketDetails & WithCreatedAt(CreatedAtT &&value)
const AwsS3BucketObjectLockConfiguration & GetObjectLockConfiguration() const
AwsS3BucketDetails & WithBucketLifecycleConfiguration(BucketLifecycleConfigurationT &&value)
void SetBucketLifecycleConfiguration(BucketLifecycleConfigurationT &&value)
const AwsS3BucketNotificationConfiguration & GetBucketNotificationConfiguration() const
void SetBucketLoggingConfiguration(BucketLoggingConfigurationT &&value)
const AwsS3AccountPublicAccessBlockDetails & GetPublicAccessBlockConfiguration() const
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsS3BucketDetails & WithBucketVersioningConfiguration(BucketVersioningConfigurationT &&value)
AwsS3BucketDetails & WithBucketNotificationConfiguration(BucketNotificationConfigurationT &&value)
void SetObjectLockConfiguration(ObjectLockConfigurationT &&value)
void SetBucketNotificationConfiguration(BucketNotificationConfigurationT &&value)
const AwsS3BucketBucketLifecycleConfigurationDetails & GetBucketLifecycleConfiguration() const
void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT &&value)
AWS_SECURITYHUB_API AwsS3BucketDetails()=default
void SetPublicAccessBlockConfiguration(PublicAccessBlockConfigurationT &&value)
void SetBucketVersioningConfiguration(BucketVersioningConfigurationT &&value)
AwsS3BucketDetails & WithOwnerName(OwnerNameT &&value)
AwsS3BucketDetails & WithAccessControlList(AccessControlListT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue