AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
S3Object.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/macie2/model/ServerSideEncryption.h>
11#include <aws/macie2/model/StorageClass.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/macie2/model/KeyValuePair.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Macie2
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_MACIE2_API S3Object();
41 AWS_MACIE2_API S3Object(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MACIE2_API S3Object& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetBucketArn() const{ return m_bucketArn; }
51 inline bool BucketArnHasBeenSet() const { return m_bucketArnHasBeenSet; }
52 inline void SetBucketArn(const Aws::String& value) { m_bucketArnHasBeenSet = true; m_bucketArn = value; }
53 inline void SetBucketArn(Aws::String&& value) { m_bucketArnHasBeenSet = true; m_bucketArn = std::move(value); }
54 inline void SetBucketArn(const char* value) { m_bucketArnHasBeenSet = true; m_bucketArn.assign(value); }
55 inline S3Object& WithBucketArn(const Aws::String& value) { SetBucketArn(value); return *this;}
56 inline S3Object& WithBucketArn(Aws::String&& value) { SetBucketArn(std::move(value)); return *this;}
57 inline S3Object& WithBucketArn(const char* value) { SetBucketArn(value); return *this;}
59
61
66 inline const Aws::String& GetETag() const{ return m_eTag; }
67 inline bool ETagHasBeenSet() const { return m_eTagHasBeenSet; }
68 inline void SetETag(const Aws::String& value) { m_eTagHasBeenSet = true; m_eTag = value; }
69 inline void SetETag(Aws::String&& value) { m_eTagHasBeenSet = true; m_eTag = std::move(value); }
70 inline void SetETag(const char* value) { m_eTagHasBeenSet = true; m_eTag.assign(value); }
71 inline S3Object& WithETag(const Aws::String& value) { SetETag(value); return *this;}
72 inline S3Object& WithETag(Aws::String&& value) { SetETag(std::move(value)); return *this;}
73 inline S3Object& WithETag(const char* value) { SetETag(value); return *this;}
75
77
81 inline const Aws::String& GetExtension() const{ return m_extension; }
82 inline bool ExtensionHasBeenSet() const { return m_extensionHasBeenSet; }
83 inline void SetExtension(const Aws::String& value) { m_extensionHasBeenSet = true; m_extension = value; }
84 inline void SetExtension(Aws::String&& value) { m_extensionHasBeenSet = true; m_extension = std::move(value); }
85 inline void SetExtension(const char* value) { m_extensionHasBeenSet = true; m_extension.assign(value); }
86 inline S3Object& WithExtension(const Aws::String& value) { SetExtension(value); return *this;}
87 inline S3Object& WithExtension(Aws::String&& value) { SetExtension(std::move(value)); return *this;}
88 inline S3Object& WithExtension(const char* value) { SetExtension(value); return *this;}
90
92
96 inline const Aws::String& GetKey() const{ return m_key; }
97 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
98 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
99 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
100 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
101 inline S3Object& WithKey(const Aws::String& value) { SetKey(value); return *this;}
102 inline S3Object& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
103 inline S3Object& WithKey(const char* value) { SetKey(value); return *this;}
105
107
111 inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; }
112 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
113 inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; }
114 inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::move(value); }
115 inline S3Object& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;}
116 inline S3Object& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(std::move(value)); return *this;}
118
120
124 inline const Aws::String& GetPath() const{ return m_path; }
125 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
126 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
127 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
128 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
129 inline S3Object& WithPath(const Aws::String& value) { SetPath(value); return *this;}
130 inline S3Object& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
131 inline S3Object& WithPath(const char* value) { SetPath(value); return *this;}
133
135
139 inline bool GetPublicAccess() const{ return m_publicAccess; }
140 inline bool PublicAccessHasBeenSet() const { return m_publicAccessHasBeenSet; }
141 inline void SetPublicAccess(bool value) { m_publicAccessHasBeenSet = true; m_publicAccess = value; }
142 inline S3Object& WithPublicAccess(bool value) { SetPublicAccess(value); return *this;}
144
146
149 inline const ServerSideEncryption& GetServerSideEncryption() const{ return m_serverSideEncryption; }
150 inline bool ServerSideEncryptionHasBeenSet() const { return m_serverSideEncryptionHasBeenSet; }
151 inline void SetServerSideEncryption(const ServerSideEncryption& value) { m_serverSideEncryptionHasBeenSet = true; m_serverSideEncryption = value; }
152 inline void SetServerSideEncryption(ServerSideEncryption&& value) { m_serverSideEncryptionHasBeenSet = true; m_serverSideEncryption = std::move(value); }
154 inline S3Object& WithServerSideEncryption(ServerSideEncryption&& value) { SetServerSideEncryption(std::move(value)); return *this;}
156
158
161 inline long long GetSize() const{ return m_size; }
162 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
163 inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
164 inline S3Object& WithSize(long long value) { SetSize(value); return *this;}
166
168
171 inline const StorageClass& GetStorageClass() const{ return m_storageClass; }
172 inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
173 inline void SetStorageClass(const StorageClass& value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
174 inline void SetStorageClass(StorageClass&& value) { m_storageClassHasBeenSet = true; m_storageClass = std::move(value); }
175 inline S3Object& WithStorageClass(const StorageClass& value) { SetStorageClass(value); return *this;}
176 inline S3Object& WithStorageClass(StorageClass&& value) { SetStorageClass(std::move(value)); return *this;}
178
180
183 inline const Aws::Vector<KeyValuePair>& GetTags() const{ return m_tags; }
184 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
185 inline void SetTags(const Aws::Vector<KeyValuePair>& value) { m_tagsHasBeenSet = true; m_tags = value; }
186 inline void SetTags(Aws::Vector<KeyValuePair>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
187 inline S3Object& WithTags(const Aws::Vector<KeyValuePair>& value) { SetTags(value); return *this;}
188 inline S3Object& WithTags(Aws::Vector<KeyValuePair>&& value) { SetTags(std::move(value)); return *this;}
189 inline S3Object& AddTags(const KeyValuePair& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
190 inline S3Object& AddTags(KeyValuePair&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
192
194
197 inline const Aws::String& GetVersionId() const{ return m_versionId; }
198 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
199 inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
200 inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
201 inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
202 inline S3Object& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
203 inline S3Object& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
204 inline S3Object& WithVersionId(const char* value) { SetVersionId(value); return *this;}
206 private:
207
208 Aws::String m_bucketArn;
209 bool m_bucketArnHasBeenSet = false;
210
211 Aws::String m_eTag;
212 bool m_eTagHasBeenSet = false;
213
214 Aws::String m_extension;
215 bool m_extensionHasBeenSet = false;
216
217 Aws::String m_key;
218 bool m_keyHasBeenSet = false;
219
220 Aws::Utils::DateTime m_lastModified;
221 bool m_lastModifiedHasBeenSet = false;
222
223 Aws::String m_path;
224 bool m_pathHasBeenSet = false;
225
226 bool m_publicAccess;
227 bool m_publicAccessHasBeenSet = false;
228
229 ServerSideEncryption m_serverSideEncryption;
230 bool m_serverSideEncryptionHasBeenSet = false;
231
232 long long m_size;
233 bool m_sizeHasBeenSet = false;
234
235 StorageClass m_storageClass;
236 bool m_storageClassHasBeenSet = false;
237
239 bool m_tagsHasBeenSet = false;
240
241 Aws::String m_versionId;
242 bool m_versionIdHasBeenSet = false;
243 };
244
245} // namespace Model
246} // namespace Macie2
247} // namespace Aws
bool PublicAccessHasBeenSet() const
Definition S3Object.h:140
const Aws::String & GetPath() const
Definition S3Object.h:124
S3Object & WithPath(Aws::String &&value)
Definition S3Object.h:130
S3Object & WithPath(const Aws::String &value)
Definition S3Object.h:129
void SetLastModified(Aws::Utils::DateTime &&value)
Definition S3Object.h:114
bool ServerSideEncryptionHasBeenSet() const
Definition S3Object.h:150
void SetVersionId(Aws::String &&value)
Definition S3Object.h:200
S3Object & WithKey(const Aws::String &value)
Definition S3Object.h:101
S3Object & WithTags(const Aws::Vector< KeyValuePair > &value)
Definition S3Object.h:187
void SetTags(Aws::Vector< KeyValuePair > &&value)
Definition S3Object.h:186
S3Object & WithETag(Aws::String &&value)
Definition S3Object.h:72
const Aws::Vector< KeyValuePair > & GetTags() const
Definition S3Object.h:183
S3Object & WithExtension(const char *value)
Definition S3Object.h:88
void SetKey(const char *value)
Definition S3Object.h:100
S3Object & WithServerSideEncryption(const ServerSideEncryption &value)
Definition S3Object.h:153
S3Object & WithBucketArn(const Aws::String &value)
Definition S3Object.h:55
const ServerSideEncryption & GetServerSideEncryption() const
Definition S3Object.h:149
S3Object & WithETag(const char *value)
Definition S3Object.h:73
S3Object & WithExtension(const Aws::String &value)
Definition S3Object.h:86
void SetTags(const Aws::Vector< KeyValuePair > &value)
Definition S3Object.h:185
void SetExtension(Aws::String &&value)
Definition S3Object.h:84
bool VersionIdHasBeenSet() const
Definition S3Object.h:198
S3Object & WithBucketArn(Aws::String &&value)
Definition S3Object.h:56
S3Object & WithVersionId(const Aws::String &value)
Definition S3Object.h:202
AWS_MACIE2_API S3Object & operator=(Aws::Utils::Json::JsonView jsonValue)
S3Object & WithBucketArn(const char *value)
Definition S3Object.h:57
const Aws::Utils::DateTime & GetLastModified() const
Definition S3Object.h:111
S3Object & WithKey(const char *value)
Definition S3Object.h:103
AWS_MACIE2_API S3Object(Aws::Utils::Json::JsonView jsonValue)
void SetServerSideEncryption(const ServerSideEncryption &value)
Definition S3Object.h:151
const Aws::String & GetExtension() const
Definition S3Object.h:81
S3Object & WithVersionId(const char *value)
Definition S3Object.h:204
void SetStorageClass(StorageClass &&value)
Definition S3Object.h:174
S3Object & WithPublicAccess(bool value)
Definition S3Object.h:142
S3Object & WithLastModified(const Aws::Utils::DateTime &value)
Definition S3Object.h:115
const Aws::String & GetVersionId() const
Definition S3Object.h:197
bool ETagHasBeenSet() const
Definition S3Object.h:67
void SetKey(Aws::String &&value)
Definition S3Object.h:99
void SetETag(const Aws::String &value)
Definition S3Object.h:68
void SetKey(const Aws::String &value)
Definition S3Object.h:98
void SetBucketArn(const Aws::String &value)
Definition S3Object.h:52
void SetBucketArn(Aws::String &&value)
Definition S3Object.h:53
const StorageClass & GetStorageClass() const
Definition S3Object.h:171
bool BucketArnHasBeenSet() const
Definition S3Object.h:51
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPath(const Aws::String &value)
Definition S3Object.h:126
void SetExtension(const Aws::String &value)
Definition S3Object.h:83
long long GetSize() const
Definition S3Object.h:161
const Aws::String & GetBucketArn() const
Definition S3Object.h:50
S3Object & AddTags(KeyValuePair &&value)
Definition S3Object.h:190
void SetPath(const char *value)
Definition S3Object.h:128
void SetPublicAccess(bool value)
Definition S3Object.h:141
void SetVersionId(const Aws::String &value)
Definition S3Object.h:199
bool LastModifiedHasBeenSet() const
Definition S3Object.h:112
S3Object & WithKey(Aws::String &&value)
Definition S3Object.h:102
S3Object & WithServerSideEncryption(ServerSideEncryption &&value)
Definition S3Object.h:154
void SetBucketArn(const char *value)
Definition S3Object.h:54
void SetStorageClass(const StorageClass &value)
Definition S3Object.h:173
const Aws::String & GetETag() const
Definition S3Object.h:66
void SetSize(long long value)
Definition S3Object.h:163
bool ExtensionHasBeenSet() const
Definition S3Object.h:82
S3Object & WithSize(long long value)
Definition S3Object.h:164
S3Object & WithStorageClass(StorageClass &&value)
Definition S3Object.h:176
bool StorageClassHasBeenSet() const
Definition S3Object.h:172
void SetLastModified(const Aws::Utils::DateTime &value)
Definition S3Object.h:113
void SetPath(Aws::String &&value)
Definition S3Object.h:127
void SetServerSideEncryption(ServerSideEncryption &&value)
Definition S3Object.h:152
S3Object & WithPath(const char *value)
Definition S3Object.h:131
S3Object & WithLastModified(Aws::Utils::DateTime &&value)
Definition S3Object.h:116
const Aws::String & GetKey() const
Definition S3Object.h:96
S3Object & WithStorageClass(const StorageClass &value)
Definition S3Object.h:175
void SetETag(const char *value)
Definition S3Object.h:70
S3Object & WithExtension(Aws::String &&value)
Definition S3Object.h:87
S3Object & AddTags(const KeyValuePair &value)
Definition S3Object.h:189
void SetETag(Aws::String &&value)
Definition S3Object.h:69
S3Object & WithVersionId(Aws::String &&value)
Definition S3Object.h:203
S3Object & WithETag(const Aws::String &value)
Definition S3Object.h:71
void SetVersionId(const char *value)
Definition S3Object.h:201
void SetExtension(const char *value)
Definition S3Object.h:85
S3Object & WithTags(Aws::Vector< KeyValuePair > &&value)
Definition S3Object.h:188
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue