AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
S3Bucket.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/guardduty/GuardDuty_EXPORTS.h>
11#include <aws/guardduty/model/PublicAccessConfiguration.h>
12#include <aws/guardduty/model/PublicAccessStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GuardDuty {
24namespace Model {
25
32class S3Bucket {
33 public:
34 AWS_GUARDDUTY_API S3Bucket() = default;
35 AWS_GUARDDUTY_API S3Bucket(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GUARDDUTY_API S3Bucket& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
44 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
45 template <typename OwnerIdT = Aws::String>
46 void SetOwnerId(OwnerIdT&& value) {
47 m_ownerIdHasBeenSet = true;
48 m_ownerId = std::forward<OwnerIdT>(value);
49 }
50 template <typename OwnerIdT = Aws::String>
51 S3Bucket& WithOwnerId(OwnerIdT&& value) {
52 SetOwnerId(std::forward<OwnerIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
62 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
63 template <typename CreatedAtT = Aws::Utils::DateTime>
64 void SetCreatedAt(CreatedAtT&& value) {
65 m_createdAtHasBeenSet = true;
66 m_createdAt = std::forward<CreatedAtT>(value);
67 }
68 template <typename CreatedAtT = Aws::Utils::DateTime>
69 S3Bucket& WithCreatedAt(CreatedAtT&& value) {
70 SetCreatedAt(std::forward<CreatedAtT>(value));
71 return *this;
72 }
74
76
82 inline const Aws::String& GetEncryptionType() const { return m_encryptionType; }
83 inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
84 template <typename EncryptionTypeT = Aws::String>
85 void SetEncryptionType(EncryptionTypeT&& value) {
86 m_encryptionTypeHasBeenSet = true;
87 m_encryptionType = std::forward<EncryptionTypeT>(value);
88 }
89 template <typename EncryptionTypeT = Aws::String>
90 S3Bucket& WithEncryptionType(EncryptionTypeT&& value) {
91 SetEncryptionType(std::forward<EncryptionTypeT>(value));
92 return *this;
93 }
95
97
101 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
102 inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }
103 template <typename EncryptionKeyArnT = Aws::String>
104 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) {
105 m_encryptionKeyArnHasBeenSet = true;
106 m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value);
107 }
108 template <typename EncryptionKeyArnT = Aws::String>
109 S3Bucket& WithEncryptionKeyArn(EncryptionKeyArnT&& value) {
110 SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value));
111 return *this;
112 }
114
116
120 inline const Aws::String& GetEffectivePermission() const { return m_effectivePermission; }
121 inline bool EffectivePermissionHasBeenSet() const { return m_effectivePermissionHasBeenSet; }
122 template <typename EffectivePermissionT = Aws::String>
123 void SetEffectivePermission(EffectivePermissionT&& value) {
124 m_effectivePermissionHasBeenSet = true;
125 m_effectivePermission = std::forward<EffectivePermissionT>(value);
126 }
127 template <typename EffectivePermissionT = Aws::String>
128 S3Bucket& WithEffectivePermission(EffectivePermissionT&& value) {
129 SetEffectivePermission(std::forward<EffectivePermissionT>(value));
130 return *this;
131 }
133
135
139 inline PublicAccessStatus GetPublicReadAccess() const { return m_publicReadAccess; }
140 inline bool PublicReadAccessHasBeenSet() const { return m_publicReadAccessHasBeenSet; }
142 m_publicReadAccessHasBeenSet = true;
143 m_publicReadAccess = value;
144 }
146 SetPublicReadAccess(value);
147 return *this;
148 }
150
152
156 inline PublicAccessStatus GetPublicWriteAccess() const { return m_publicWriteAccess; }
157 inline bool PublicWriteAccessHasBeenSet() const { return m_publicWriteAccessHasBeenSet; }
159 m_publicWriteAccessHasBeenSet = true;
160 m_publicWriteAccess = value;
161 }
164 return *this;
165 }
167
169
173 inline const PublicAccessConfiguration& GetAccountPublicAccess() const { return m_accountPublicAccess; }
174 inline bool AccountPublicAccessHasBeenSet() const { return m_accountPublicAccessHasBeenSet; }
175 template <typename AccountPublicAccessT = PublicAccessConfiguration>
176 void SetAccountPublicAccess(AccountPublicAccessT&& value) {
177 m_accountPublicAccessHasBeenSet = true;
178 m_accountPublicAccess = std::forward<AccountPublicAccessT>(value);
179 }
180 template <typename AccountPublicAccessT = PublicAccessConfiguration>
181 S3Bucket& WithAccountPublicAccess(AccountPublicAccessT&& value) {
182 SetAccountPublicAccess(std::forward<AccountPublicAccessT>(value));
183 return *this;
184 }
186
188
192 inline const PublicAccessConfiguration& GetBucketPublicAccess() const { return m_bucketPublicAccess; }
193 inline bool BucketPublicAccessHasBeenSet() const { return m_bucketPublicAccessHasBeenSet; }
194 template <typename BucketPublicAccessT = PublicAccessConfiguration>
195 void SetBucketPublicAccess(BucketPublicAccessT&& value) {
196 m_bucketPublicAccessHasBeenSet = true;
197 m_bucketPublicAccess = std::forward<BucketPublicAccessT>(value);
198 }
199 template <typename BucketPublicAccessT = PublicAccessConfiguration>
200 S3Bucket& WithBucketPublicAccess(BucketPublicAccessT&& value) {
201 SetBucketPublicAccess(std::forward<BucketPublicAccessT>(value));
202 return *this;
203 }
205
207
210 inline const Aws::Vector<Aws::String>& GetS3ObjectUids() const { return m_s3ObjectUids; }
211 inline bool S3ObjectUidsHasBeenSet() const { return m_s3ObjectUidsHasBeenSet; }
212 template <typename S3ObjectUidsT = Aws::Vector<Aws::String>>
213 void SetS3ObjectUids(S3ObjectUidsT&& value) {
214 m_s3ObjectUidsHasBeenSet = true;
215 m_s3ObjectUids = std::forward<S3ObjectUidsT>(value);
216 }
217 template <typename S3ObjectUidsT = Aws::Vector<Aws::String>>
218 S3Bucket& WithS3ObjectUids(S3ObjectUidsT&& value) {
219 SetS3ObjectUids(std::forward<S3ObjectUidsT>(value));
220 return *this;
221 }
222 template <typename S3ObjectUidsT = Aws::String>
223 S3Bucket& AddS3ObjectUids(S3ObjectUidsT&& value) {
224 m_s3ObjectUidsHasBeenSet = true;
225 m_s3ObjectUids.emplace_back(std::forward<S3ObjectUidsT>(value));
226 return *this;
227 }
229 private:
230 Aws::String m_ownerId;
231
232 Aws::Utils::DateTime m_createdAt{};
233
234 Aws::String m_encryptionType;
235
236 Aws::String m_encryptionKeyArn;
237
238 Aws::String m_effectivePermission;
239
241
243
244 PublicAccessConfiguration m_accountPublicAccess;
245
246 PublicAccessConfiguration m_bucketPublicAccess;
247
248 Aws::Vector<Aws::String> m_s3ObjectUids;
249 bool m_ownerIdHasBeenSet = false;
250 bool m_createdAtHasBeenSet = false;
251 bool m_encryptionTypeHasBeenSet = false;
252 bool m_encryptionKeyArnHasBeenSet = false;
253 bool m_effectivePermissionHasBeenSet = false;
254 bool m_publicReadAccessHasBeenSet = false;
255 bool m_publicWriteAccessHasBeenSet = false;
256 bool m_accountPublicAccessHasBeenSet = false;
257 bool m_bucketPublicAccessHasBeenSet = false;
258 bool m_s3ObjectUidsHasBeenSet = false;
259};
260
261} // namespace Model
262} // namespace GuardDuty
263} // namespace Aws
bool PublicReadAccessHasBeenSet() const
Definition S3Bucket.h:140
S3Bucket & WithPublicWriteAccess(PublicAccessStatus value)
Definition S3Bucket.h:162
S3Bucket & AddS3ObjectUids(S3ObjectUidsT &&value)
Definition S3Bucket.h:223
PublicAccessStatus GetPublicReadAccess() const
Definition S3Bucket.h:139
const Aws::Utils::DateTime & GetCreatedAt() const
Definition S3Bucket.h:61
void SetPublicWriteAccess(PublicAccessStatus value)
Definition S3Bucket.h:158
S3Bucket & WithEncryptionKeyArn(EncryptionKeyArnT &&value)
Definition S3Bucket.h:109
bool AccountPublicAccessHasBeenSet() const
Definition S3Bucket.h:174
AWS_GUARDDUTY_API S3Bucket & operator=(Aws::Utils::Json::JsonView jsonValue)
S3Bucket & WithOwnerId(OwnerIdT &&value)
Definition S3Bucket.h:51
const Aws::String & GetEncryptionKeyArn() const
Definition S3Bucket.h:101
bool S3ObjectUidsHasBeenSet() const
Definition S3Bucket.h:211
void SetEncryptionType(EncryptionTypeT &&value)
Definition S3Bucket.h:85
AWS_GUARDDUTY_API S3Bucket(Aws::Utils::Json::JsonView jsonValue)
S3Bucket & WithCreatedAt(CreatedAtT &&value)
Definition S3Bucket.h:69
void SetBucketPublicAccess(BucketPublicAccessT &&value)
Definition S3Bucket.h:195
bool EncryptionKeyArnHasBeenSet() const
Definition S3Bucket.h:102
void SetEffectivePermission(EffectivePermissionT &&value)
Definition S3Bucket.h:123
S3Bucket & WithAccountPublicAccess(AccountPublicAccessT &&value)
Definition S3Bucket.h:181
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
const PublicAccessConfiguration & GetBucketPublicAccess() const
Definition S3Bucket.h:192
S3Bucket & WithEffectivePermission(EffectivePermissionT &&value)
Definition S3Bucket.h:128
S3Bucket & WithS3ObjectUids(S3ObjectUidsT &&value)
Definition S3Bucket.h:218
bool BucketPublicAccessHasBeenSet() const
Definition S3Bucket.h:193
const PublicAccessConfiguration & GetAccountPublicAccess() const
Definition S3Bucket.h:173
bool PublicWriteAccessHasBeenSet() const
Definition S3Bucket.h:157
void SetPublicReadAccess(PublicAccessStatus value)
Definition S3Bucket.h:141
const Aws::String & GetOwnerId() const
Definition S3Bucket.h:43
const Aws::String & GetEncryptionType() const
Definition S3Bucket.h:82
bool EncryptionTypeHasBeenSet() const
Definition S3Bucket.h:83
void SetOwnerId(OwnerIdT &&value)
Definition S3Bucket.h:46
AWS_GUARDDUTY_API S3Bucket()=default
void SetS3ObjectUids(S3ObjectUidsT &&value)
Definition S3Bucket.h:213
void SetCreatedAt(CreatedAtT &&value)
Definition S3Bucket.h:64
S3Bucket & WithBucketPublicAccess(BucketPublicAccessT &&value)
Definition S3Bucket.h:200
void SetAccountPublicAccess(AccountPublicAccessT &&value)
Definition S3Bucket.h:176
void SetEncryptionKeyArn(EncryptionKeyArnT &&value)
Definition S3Bucket.h:104
const Aws::String & GetEffectivePermission() const
Definition S3Bucket.h:120
S3Bucket & WithPublicReadAccess(PublicAccessStatus value)
Definition S3Bucket.h:145
PublicAccessStatus GetPublicWriteAccess() const
Definition S3Bucket.h:156
const Aws::Vector< Aws::String > & GetS3ObjectUids() const
Definition S3Bucket.h:210
S3Bucket & WithEncryptionType(EncryptionTypeT &&value)
Definition S3Bucket.h:90
bool EffectivePermissionHasBeenSet() const
Definition S3Bucket.h:121
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue