AWS SDK for C++  1.9.102
AWS SDK for C++
S3Object.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23  class JsonView;
24 } // namespace Json
25 } // namespace Utils
26 namespace Macie2
27 {
28 namespace Model
29 {
30 
38  {
39  public:
44 
45 
49  inline const Aws::String& GetBucketArn() const{ return m_bucketArn; }
50 
54  inline bool BucketArnHasBeenSet() const { return m_bucketArnHasBeenSet; }
55 
59  inline void SetBucketArn(const Aws::String& value) { m_bucketArnHasBeenSet = true; m_bucketArn = value; }
60 
64  inline void SetBucketArn(Aws::String&& value) { m_bucketArnHasBeenSet = true; m_bucketArn = std::move(value); }
65 
69  inline void SetBucketArn(const char* value) { m_bucketArnHasBeenSet = true; m_bucketArn.assign(value); }
70 
74  inline S3Object& WithBucketArn(const Aws::String& value) { SetBucketArn(value); return *this;}
75 
79  inline S3Object& WithBucketArn(Aws::String&& value) { SetBucketArn(std::move(value)); return *this;}
80 
84  inline S3Object& WithBucketArn(const char* value) { SetBucketArn(value); return *this;}
85 
86 
92  inline const Aws::String& GetETag() const{ return m_eTag; }
93 
99  inline bool ETagHasBeenSet() const { return m_eTagHasBeenSet; }
100 
106  inline void SetETag(const Aws::String& value) { m_eTagHasBeenSet = true; m_eTag = value; }
107 
113  inline void SetETag(Aws::String&& value) { m_eTagHasBeenSet = true; m_eTag = std::move(value); }
114 
120  inline void SetETag(const char* value) { m_eTagHasBeenSet = true; m_eTag.assign(value); }
121 
127  inline S3Object& WithETag(const Aws::String& value) { SetETag(value); return *this;}
128 
134  inline S3Object& WithETag(Aws::String&& value) { SetETag(std::move(value)); return *this;}
135 
141  inline S3Object& WithETag(const char* value) { SetETag(value); return *this;}
142 
143 
148  inline const Aws::String& GetExtension() const{ return m_extension; }
149 
154  inline bool ExtensionHasBeenSet() const { return m_extensionHasBeenSet; }
155 
160  inline void SetExtension(const Aws::String& value) { m_extensionHasBeenSet = true; m_extension = value; }
161 
166  inline void SetExtension(Aws::String&& value) { m_extensionHasBeenSet = true; m_extension = std::move(value); }
167 
172  inline void SetExtension(const char* value) { m_extensionHasBeenSet = true; m_extension.assign(value); }
173 
178  inline S3Object& WithExtension(const Aws::String& value) { SetExtension(value); return *this;}
179 
184  inline S3Object& WithExtension(Aws::String&& value) { SetExtension(std::move(value)); return *this;}
185 
190  inline S3Object& WithExtension(const char* value) { SetExtension(value); return *this;}
191 
192 
196  inline const Aws::String& GetKey() const{ return m_key; }
197 
201  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
202 
206  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
207 
211  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
212 
216  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
217 
221  inline S3Object& WithKey(const Aws::String& value) { SetKey(value); return *this;}
222 
226  inline S3Object& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
227 
231  inline S3Object& WithKey(const char* value) { SetKey(value); return *this;}
232 
233 
238  inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; }
239 
244  inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
245 
250  inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; }
251 
256  inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::move(value); }
257 
262  inline S3Object& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;}
263 
268  inline S3Object& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(std::move(value)); return *this;}
269 
270 
274  inline const Aws::String& GetPath() const{ return m_path; }
275 
279  inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
280 
284  inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
285 
289  inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
290 
294  inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
295 
299  inline S3Object& WithPath(const Aws::String& value) { SetPath(value); return *this;}
300 
304  inline S3Object& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
305 
309  inline S3Object& WithPath(const char* value) { SetPath(value); return *this;}
310 
311 
316  inline bool GetPublicAccess() const{ return m_publicAccess; }
317 
322  inline bool PublicAccessHasBeenSet() const { return m_publicAccessHasBeenSet; }
323 
328  inline void SetPublicAccess(bool value) { m_publicAccessHasBeenSet = true; m_publicAccess = value; }
329 
334  inline S3Object& WithPublicAccess(bool value) { SetPublicAccess(value); return *this;}
335 
336 
340  inline const ServerSideEncryption& GetServerSideEncryption() const{ return m_serverSideEncryption; }
341 
345  inline bool ServerSideEncryptionHasBeenSet() const { return m_serverSideEncryptionHasBeenSet; }
346 
350  inline void SetServerSideEncryption(const ServerSideEncryption& value) { m_serverSideEncryptionHasBeenSet = true; m_serverSideEncryption = value; }
351 
355  inline void SetServerSideEncryption(ServerSideEncryption&& value) { m_serverSideEncryptionHasBeenSet = true; m_serverSideEncryption = std::move(value); }
356 
360  inline S3Object& WithServerSideEncryption(const ServerSideEncryption& value) { SetServerSideEncryption(value); return *this;}
361 
365  inline S3Object& WithServerSideEncryption(ServerSideEncryption&& value) { SetServerSideEncryption(std::move(value)); return *this;}
366 
367 
371  inline long long GetSize() const{ return m_size; }
372 
376  inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
377 
381  inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
382 
386  inline S3Object& WithSize(long long value) { SetSize(value); return *this;}
387 
388 
392  inline const StorageClass& GetStorageClass() const{ return m_storageClass; }
393 
397  inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
398 
402  inline void SetStorageClass(const StorageClass& value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
403 
407  inline void SetStorageClass(StorageClass&& value) { m_storageClassHasBeenSet = true; m_storageClass = std::move(value); }
408 
412  inline S3Object& WithStorageClass(const StorageClass& value) { SetStorageClass(value); return *this;}
413 
417  inline S3Object& WithStorageClass(StorageClass&& value) { SetStorageClass(std::move(value)); return *this;}
418 
419 
423  inline const Aws::Vector<KeyValuePair>& GetTags() const{ return m_tags; }
424 
428  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
429 
433  inline void SetTags(const Aws::Vector<KeyValuePair>& value) { m_tagsHasBeenSet = true; m_tags = value; }
434 
438  inline void SetTags(Aws::Vector<KeyValuePair>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
439 
443  inline S3Object& WithTags(const Aws::Vector<KeyValuePair>& value) { SetTags(value); return *this;}
444 
448  inline S3Object& WithTags(Aws::Vector<KeyValuePair>&& value) { SetTags(std::move(value)); return *this;}
449 
453  inline S3Object& AddTags(const KeyValuePair& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
454 
458  inline S3Object& AddTags(KeyValuePair&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
459 
460 
464  inline const Aws::String& GetVersionId() const{ return m_versionId; }
465 
469  inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
470 
474  inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
475 
479  inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
480 
484  inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
485 
489  inline S3Object& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
490 
494  inline S3Object& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
495 
499  inline S3Object& WithVersionId(const char* value) { SetVersionId(value); return *this;}
500 
501  private:
502 
503  Aws::String m_bucketArn;
504  bool m_bucketArnHasBeenSet;
505 
506  Aws::String m_eTag;
507  bool m_eTagHasBeenSet;
508 
509  Aws::String m_extension;
510  bool m_extensionHasBeenSet;
511 
512  Aws::String m_key;
513  bool m_keyHasBeenSet;
514 
515  Aws::Utils::DateTime m_lastModified;
516  bool m_lastModifiedHasBeenSet;
517 
518  Aws::String m_path;
519  bool m_pathHasBeenSet;
520 
521  bool m_publicAccess;
522  bool m_publicAccessHasBeenSet;
523 
524  ServerSideEncryption m_serverSideEncryption;
525  bool m_serverSideEncryptionHasBeenSet;
526 
527  long long m_size;
528  bool m_sizeHasBeenSet;
529 
530  StorageClass m_storageClass;
531  bool m_storageClassHasBeenSet;
532 
534  bool m_tagsHasBeenSet;
535 
536  Aws::String m_versionId;
537  bool m_versionIdHasBeenSet;
538  };
539 
540 } // namespace Model
541 } // namespace Macie2
542 } // namespace Aws
Aws::Macie2::Model::S3Object::S3Object
S3Object(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::DateTime
Definition: DateTime.h:55
AWS_MACIE2_API
#define AWS_MACIE2_API
Definition: Macie2_EXPORTS.h:28
Aws::Macie2::Model::S3Object::WithServerSideEncryption
S3Object & WithServerSideEncryption(const ServerSideEncryption &value)
Definition: S3Object.h:360
Aws::Macie2::Model::S3Object::GetPath
const Aws::String & GetPath() const
Definition: S3Object.h:274
Aws::Macie2::Model::S3Object::SetServerSideEncryption
void SetServerSideEncryption(const ServerSideEncryption &value)
Definition: S3Object.h:350
Aws::Macie2::Model::S3Object::SetServerSideEncryption
void SetServerSideEncryption(ServerSideEncryption &&value)
Definition: S3Object.h:355
Aws::Macie2::Model::S3Object::SetStorageClass
void SetStorageClass(const StorageClass &value)
Definition: S3Object.h:402
Aws::Macie2::Model::S3Object::GetStorageClass
const StorageClass & GetStorageClass() const
Definition: S3Object.h:392
Aws::Macie2::Model::S3Object::ServerSideEncryptionHasBeenSet
bool ServerSideEncryptionHasBeenSet() const
Definition: S3Object.h:345
Aws::Macie2::Model::S3Object::GetServerSideEncryption
const ServerSideEncryption & GetServerSideEncryption() const
Definition: S3Object.h:340
Aws::Macie2::Model::S3Object::WithSize
S3Object & WithSize(long long value)
Definition: S3Object.h:386
Aws::Macie2::Model::S3Object::WithStorageClass
S3Object & WithStorageClass(StorageClass &&value)
Definition: S3Object.h:417
ServerSideEncryption.h
Aws::Macie2::Model::S3Object::WithKey
S3Object & WithKey(Aws::String &&value)
Definition: S3Object.h:226
Aws::Macie2::Model::S3Object::SetPath
void SetPath(const Aws::String &value)
Definition: S3Object.h:284
DateTime.h
Aws::Macie2::Model::S3Object::PathHasBeenSet
bool PathHasBeenSet() const
Definition: S3Object.h:279
Aws::Macie2::Model::S3Object::SetTags
void SetTags(const Aws::Vector< KeyValuePair > &value)
Definition: S3Object.h:433
Aws::Macie2::Model::S3Object::WithStorageClass
S3Object & WithStorageClass(const StorageClass &value)
Definition: S3Object.h:412
Aws::Macie2::Model::S3Object::SetSize
void SetSize(long long value)
Definition: S3Object.h:381
Macie2_EXPORTS.h
Aws::Macie2::Model::S3Object::SetStorageClass
void SetStorageClass(StorageClass &&value)
Definition: S3Object.h:407
Aws::Macie2::Model::S3Object::SetPublicAccess
void SetPublicAccess(bool value)
Definition: S3Object.h:328
Aws::Macie2::Model::S3Object::WithExtension
S3Object & WithExtension(const Aws::String &value)
Definition: S3Object.h:178
Aws::Macie2::Model::S3Object::SetETag
void SetETag(Aws::String &&value)
Definition: S3Object.h:113
StorageClass.h
Aws::Macie2::Model::S3Object::WithETag
S3Object & WithETag(const Aws::String &value)
Definition: S3Object.h:127
Aws::Macie2::Model::S3Object
Definition: S3Object.h:38
Aws::Macie2::Model::S3Object::WithETag
S3Object & WithETag(Aws::String &&value)
Definition: S3Object.h:134
Aws::Macie2::Model::S3Object::VersionIdHasBeenSet
bool VersionIdHasBeenSet() const
Definition: S3Object.h:469
Aws::Macie2::Model::S3Object::SetVersionId
void SetVersionId(const Aws::String &value)
Definition: S3Object.h:474
Aws::Macie2::Model::S3Object::GetExtension
const Aws::String & GetExtension() const
Definition: S3Object.h:148
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Macie2::Model::S3Object::WithBucketArn
S3Object & WithBucketArn(Aws::String &&value)
Definition: S3Object.h:79
AWSVector.h
Aws::Macie2::Model::S3Object::GetVersionId
const Aws::String & GetVersionId() const
Definition: S3Object.h:464
Aws::Macie2::Model::S3Object::WithVersionId
S3Object & WithVersionId(const char *value)
Definition: S3Object.h:499
Aws::Macie2::Model::S3Object::GetTags
const Aws::Vector< KeyValuePair > & GetTags() const
Definition: S3Object.h:423
Aws::Macie2::Model::S3Object::SetKey
void SetKey(const Aws::String &value)
Definition: S3Object.h:206
Aws::Macie2::Model::S3Object::SetLastModified
void SetLastModified(Aws::Utils::DateTime &&value)
Definition: S3Object.h:256
Aws::Macie2::Model::S3Object::StorageClassHasBeenSet
bool StorageClassHasBeenSet() const
Definition: S3Object.h:397
Aws::Macie2::Model::S3Object::WithVersionId
S3Object & WithVersionId(Aws::String &&value)
Definition: S3Object.h:494
Aws::Macie2::Model::S3Object::WithExtension
S3Object & WithExtension(Aws::String &&value)
Definition: S3Object.h:184
Aws::Macie2::Model::S3Object::GetETag
const Aws::String & GetETag() const
Definition: S3Object.h:92
Aws::Macie2::Model::S3Object::SetBucketArn
void SetBucketArn(Aws::String &&value)
Definition: S3Object.h:64
Aws::Macie2::Model::S3Object::WithServerSideEncryption
S3Object & WithServerSideEncryption(ServerSideEncryption &&value)
Definition: S3Object.h:365
Aws::Macie2::Model::S3Object::ExtensionHasBeenSet
bool ExtensionHasBeenSet() const
Definition: S3Object.h:154
Aws::Macie2::Model::S3Object::WithTags
S3Object & WithTags(const Aws::Vector< KeyValuePair > &value)
Definition: S3Object.h:443
Aws::Macie2::Model::S3Object::WithPath
S3Object & WithPath(Aws::String &&value)
Definition: S3Object.h:304
Aws::Macie2::Model::S3Object::SetVersionId
void SetVersionId(Aws::String &&value)
Definition: S3Object.h:479
Aws::Macie2::Model::S3Object::GetPublicAccess
bool GetPublicAccess() const
Definition: S3Object.h:316
Aws::Macie2::Model::S3Object::WithExtension
S3Object & WithExtension(const char *value)
Definition: S3Object.h:190
KeyValuePair.h
Aws::Macie2::Model::S3Object::AddTags
S3Object & AddTags(const KeyValuePair &value)
Definition: S3Object.h:453
Aws::Macie2::Model::S3Object::SetKey
void SetKey(const char *value)
Definition: S3Object.h:216
Aws::Macie2::Model::S3Object::SetLastModified
void SetLastModified(const Aws::Utils::DateTime &value)
Definition: S3Object.h:250
Aws::Macie2::Model::S3Object::SetExtension
void SetExtension(const char *value)
Definition: S3Object.h:172
Aws::Macie2::Model::S3Object::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Macie2::Model::S3Object::GetBucketArn
const Aws::String & GetBucketArn() const
Definition: S3Object.h:49
Aws::Macie2::Model::S3Object::GetLastModified
const Aws::Utils::DateTime & GetLastModified() const
Definition: S3Object.h:238
Aws::Macie2::Model::S3Object::WithPublicAccess
S3Object & WithPublicAccess(bool value)
Definition: S3Object.h:334
Aws::Macie2::Model::S3Object::WithTags
S3Object & WithTags(Aws::Vector< KeyValuePair > &&value)
Definition: S3Object.h:448
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Macie2::Model::S3Object::SetExtension
void SetExtension(Aws::String &&value)
Definition: S3Object.h:166
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Macie2::Model::S3Object::WithPath
S3Object & WithPath(const Aws::String &value)
Definition: S3Object.h:299
Aws::Macie2::Model::S3Object::BucketArnHasBeenSet
bool BucketArnHasBeenSet() const
Definition: S3Object.h:54
Aws::Macie2::Model::S3Object::WithKey
S3Object & WithKey(const Aws::String &value)
Definition: S3Object.h:221
Aws::Macie2::Model::S3Object::AddTags
S3Object & AddTags(KeyValuePair &&value)
Definition: S3Object.h:458
Aws::Macie2::Model::S3Object::SetETag
void SetETag(const Aws::String &value)
Definition: S3Object.h:106
Aws::Macie2::Model::S3Object::WithVersionId
S3Object & WithVersionId(const Aws::String &value)
Definition: S3Object.h:489
Aws::Macie2::Model::S3Object::S3Object
S3Object()
Aws::Macie2::Model::S3Object::LastModifiedHasBeenSet
bool LastModifiedHasBeenSet() const
Definition: S3Object.h:244
Aws::Macie2::Model::S3Object::WithPath
S3Object & WithPath(const char *value)
Definition: S3Object.h:309
Aws::Macie2::Model::S3Object::SetETag
void SetETag(const char *value)
Definition: S3Object.h:120
Aws::Macie2::Model::ServerSideEncryption
Definition: ServerSideEncryption.h:34
Aws::Macie2::Model::S3Object::SetBucketArn
void SetBucketArn(const Aws::String &value)
Definition: S3Object.h:59
Aws::Macie2::Model::S3Object::SetBucketArn
void SetBucketArn(const char *value)
Definition: S3Object.h:69
Aws
Definition: AccessManagementClient.h:15
Aws::Macie2::Model::S3Object::SetTags
void SetTags(Aws::Vector< KeyValuePair > &&value)
Definition: S3Object.h:438
Aws::Macie2::Model::S3Object::PublicAccessHasBeenSet
bool PublicAccessHasBeenSet() const
Definition: S3Object.h:322
Aws::Macie2::Model::S3Object::SetVersionId
void SetVersionId(const char *value)
Definition: S3Object.h:484
Aws::Macie2::Model::S3Object::operator=
S3Object & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Macie2::Model::S3Object::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: S3Object.h:428
Aws::Macie2::Model::S3Object::SetExtension
void SetExtension(const Aws::String &value)
Definition: S3Object.h:160
Aws::Macie2::Model::S3Object::WithKey
S3Object & WithKey(const char *value)
Definition: S3Object.h:231
Aws::Macie2::Model::KeyValuePair
Definition: KeyValuePair.h:34
Aws::Macie2::Model::S3Object::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: S3Object.h:201
Aws::Macie2::Model::S3Object::WithETag
S3Object & WithETag(const char *value)
Definition: S3Object.h:141
Aws::Macie2::Model::S3Object::WithBucketArn
S3Object & WithBucketArn(const char *value)
Definition: S3Object.h:84
Aws::Macie2::Model::StorageClass
StorageClass
Definition: StorageClass.h:17
Aws::Macie2::Model::S3Object::SetPath
void SetPath(const char *value)
Definition: S3Object.h:294
Aws::Macie2::Model::S3Object::WithLastModified
S3Object & WithLastModified(const Aws::Utils::DateTime &value)
Definition: S3Object.h:262
Aws::Macie2::Model::S3Object::ETagHasBeenSet
bool ETagHasBeenSet() const
Definition: S3Object.h:99
Aws::Macie2::Model::S3Object::SetKey
void SetKey(Aws::String &&value)
Definition: S3Object.h:211
Aws::Macie2::Model::S3Object::SizeHasBeenSet
bool SizeHasBeenSet() const
Definition: S3Object.h:376
Aws::Macie2::Model::S3Object::SetPath
void SetPath(Aws::String &&value)
Definition: S3Object.h:289
Aws::Macie2::Model::S3Object::WithBucketArn
S3Object & WithBucketArn(const Aws::String &value)
Definition: S3Object.h:74
Aws::Macie2::Model::S3Object::GetSize
long long GetSize() const
Definition: S3Object.h:371
Aws::Macie2::Model::S3Object::GetKey
const Aws::String & GetKey() const
Definition: S3Object.h:196
Aws::Macie2::Model::S3Object::WithLastModified
S3Object & WithLastModified(Aws::Utils::DateTime &&value)
Definition: S3Object.h:268