AWS SDK for C++  1.8.126
AWS SDK for C++
S3Location.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace Utils
20 {
21 namespace Json
22 {
23  class JsonValue;
24  class JsonView;
25 } // namespace Json
26 } // namespace Utils
27 namespace Glacier
28 {
29 namespace Model
30 {
31 
39  {
40  public:
45 
46 
50  inline const Aws::String& GetBucketName() const{ return m_bucketName; }
51 
55  inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
56 
60  inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
61 
65  inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); }
66 
70  inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
71 
75  inline S3Location& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
76 
80  inline S3Location& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
81 
85  inline S3Location& WithBucketName(const char* value) { SetBucketName(value); return *this;}
86 
87 
91  inline const Aws::String& GetPrefix() const{ return m_prefix; }
92 
96  inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
97 
101  inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
102 
106  inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
107 
111  inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
112 
116  inline S3Location& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
117 
121  inline S3Location& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
122 
126  inline S3Location& WithPrefix(const char* value) { SetPrefix(value); return *this;}
127 
128 
133  inline const Encryption& GetEncryption() const{ return m_encryption; }
134 
139  inline bool EncryptionHasBeenSet() const { return m_encryptionHasBeenSet; }
140 
145  inline void SetEncryption(const Encryption& value) { m_encryptionHasBeenSet = true; m_encryption = value; }
146 
151  inline void SetEncryption(Encryption&& value) { m_encryptionHasBeenSet = true; m_encryption = std::move(value); }
152 
157  inline S3Location& WithEncryption(const Encryption& value) { SetEncryption(value); return *this;}
158 
163  inline S3Location& WithEncryption(Encryption&& value) { SetEncryption(std::move(value)); return *this;}
164 
165 
169  inline const CannedACL& GetCannedACL() const{ return m_cannedACL; }
170 
174  inline bool CannedACLHasBeenSet() const { return m_cannedACLHasBeenSet; }
175 
179  inline void SetCannedACL(const CannedACL& value) { m_cannedACLHasBeenSet = true; m_cannedACL = value; }
180 
184  inline void SetCannedACL(CannedACL&& value) { m_cannedACLHasBeenSet = true; m_cannedACL = std::move(value); }
185 
189  inline S3Location& WithCannedACL(const CannedACL& value) { SetCannedACL(value); return *this;}
190 
194  inline S3Location& WithCannedACL(CannedACL&& value) { SetCannedACL(std::move(value)); return *this;}
195 
196 
200  inline const Aws::Vector<Grant>& GetAccessControlList() const{ return m_accessControlList; }
201 
205  inline bool AccessControlListHasBeenSet() const { return m_accessControlListHasBeenSet; }
206 
210  inline void SetAccessControlList(const Aws::Vector<Grant>& value) { m_accessControlListHasBeenSet = true; m_accessControlList = value; }
211 
215  inline void SetAccessControlList(Aws::Vector<Grant>&& value) { m_accessControlListHasBeenSet = true; m_accessControlList = std::move(value); }
216 
220  inline S3Location& WithAccessControlList(const Aws::Vector<Grant>& value) { SetAccessControlList(value); return *this;}
221 
225  inline S3Location& WithAccessControlList(Aws::Vector<Grant>&& value) { SetAccessControlList(std::move(value)); return *this;}
226 
230  inline S3Location& AddAccessControlList(const Grant& value) { m_accessControlListHasBeenSet = true; m_accessControlList.push_back(value); return *this; }
231 
235  inline S3Location& AddAccessControlList(Grant&& value) { m_accessControlListHasBeenSet = true; m_accessControlList.push_back(std::move(value)); return *this; }
236 
237 
241  inline const Aws::Map<Aws::String, Aws::String>& GetTagging() const{ return m_tagging; }
242 
246  inline bool TaggingHasBeenSet() const { return m_taggingHasBeenSet; }
247 
251  inline void SetTagging(const Aws::Map<Aws::String, Aws::String>& value) { m_taggingHasBeenSet = true; m_tagging = value; }
252 
256  inline void SetTagging(Aws::Map<Aws::String, Aws::String>&& value) { m_taggingHasBeenSet = true; m_tagging = std::move(value); }
257 
261  inline S3Location& WithTagging(const Aws::Map<Aws::String, Aws::String>& value) { SetTagging(value); return *this;}
262 
266  inline S3Location& WithTagging(Aws::Map<Aws::String, Aws::String>&& value) { SetTagging(std::move(value)); return *this;}
267 
271  inline S3Location& AddTagging(const Aws::String& key, const Aws::String& value) { m_taggingHasBeenSet = true; m_tagging.emplace(key, value); return *this; }
272 
276  inline S3Location& AddTagging(Aws::String&& key, const Aws::String& value) { m_taggingHasBeenSet = true; m_tagging.emplace(std::move(key), value); return *this; }
277 
281  inline S3Location& AddTagging(const Aws::String& key, Aws::String&& value) { m_taggingHasBeenSet = true; m_tagging.emplace(key, std::move(value)); return *this; }
282 
286  inline S3Location& AddTagging(Aws::String&& key, Aws::String&& value) { m_taggingHasBeenSet = true; m_tagging.emplace(std::move(key), std::move(value)); return *this; }
287 
291  inline S3Location& AddTagging(const char* key, Aws::String&& value) { m_taggingHasBeenSet = true; m_tagging.emplace(key, std::move(value)); return *this; }
292 
296  inline S3Location& AddTagging(Aws::String&& key, const char* value) { m_taggingHasBeenSet = true; m_tagging.emplace(std::move(key), value); return *this; }
297 
301  inline S3Location& AddTagging(const char* key, const char* value) { m_taggingHasBeenSet = true; m_tagging.emplace(key, value); return *this; }
302 
303 
307  inline const Aws::Map<Aws::String, Aws::String>& GetUserMetadata() const{ return m_userMetadata; }
308 
312  inline bool UserMetadataHasBeenSet() const { return m_userMetadataHasBeenSet; }
313 
317  inline void SetUserMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_userMetadataHasBeenSet = true; m_userMetadata = value; }
318 
322  inline void SetUserMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_userMetadataHasBeenSet = true; m_userMetadata = std::move(value); }
323 
327  inline S3Location& WithUserMetadata(const Aws::Map<Aws::String, Aws::String>& value) { SetUserMetadata(value); return *this;}
328 
332  inline S3Location& WithUserMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetUserMetadata(std::move(value)); return *this;}
333 
337  inline S3Location& AddUserMetadata(const Aws::String& key, const Aws::String& value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(key, value); return *this; }
338 
342  inline S3Location& AddUserMetadata(Aws::String&& key, const Aws::String& value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(std::move(key), value); return *this; }
343 
347  inline S3Location& AddUserMetadata(const Aws::String& key, Aws::String&& value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(key, std::move(value)); return *this; }
348 
352  inline S3Location& AddUserMetadata(Aws::String&& key, Aws::String&& value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(std::move(key), std::move(value)); return *this; }
353 
357  inline S3Location& AddUserMetadata(const char* key, Aws::String&& value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(key, std::move(value)); return *this; }
358 
362  inline S3Location& AddUserMetadata(Aws::String&& key, const char* value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(std::move(key), value); return *this; }
363 
367  inline S3Location& AddUserMetadata(const char* key, const char* value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(key, value); return *this; }
368 
369 
373  inline const StorageClass& GetStorageClass() const{ return m_storageClass; }
374 
378  inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
379 
383  inline void SetStorageClass(const StorageClass& value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
384 
388  inline void SetStorageClass(StorageClass&& value) { m_storageClassHasBeenSet = true; m_storageClass = std::move(value); }
389 
393  inline S3Location& WithStorageClass(const StorageClass& value) { SetStorageClass(value); return *this;}
394 
398  inline S3Location& WithStorageClass(StorageClass&& value) { SetStorageClass(std::move(value)); return *this;}
399 
400  private:
401 
402  Aws::String m_bucketName;
403  bool m_bucketNameHasBeenSet;
404 
405  Aws::String m_prefix;
406  bool m_prefixHasBeenSet;
407 
408  Encryption m_encryption;
409  bool m_encryptionHasBeenSet;
410 
411  CannedACL m_cannedACL;
412  bool m_cannedACLHasBeenSet;
413 
414  Aws::Vector<Grant> m_accessControlList;
415  bool m_accessControlListHasBeenSet;
416 
418  bool m_taggingHasBeenSet;
419 
420  Aws::Map<Aws::String, Aws::String> m_userMetadata;
421  bool m_userMetadataHasBeenSet;
422 
423  StorageClass m_storageClass;
424  bool m_storageClassHasBeenSet;
425  };
426 
427 } // namespace Model
428 } // namespace Glacier
429 } // namespace Aws
Aws::Glacier::Model::S3Location::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Glacier::Model::S3Location::WithBucketName
S3Location & WithBucketName(Aws::String &&value)
Definition: S3Location.h:80
Aws::Glacier::Model::S3Location::SetBucketName
void SetBucketName(const char *value)
Definition: S3Location.h:70
Aws::Glacier::Model::S3Location::AddAccessControlList
S3Location & AddAccessControlList(const Grant &value)
Definition: S3Location.h:230
Aws::Glacier::Model::S3Location::GetCannedACL
const CannedACL & GetCannedACL() const
Definition: S3Location.h:169
Aws::Glacier::Model::S3Location::AddUserMetadata
S3Location & AddUserMetadata(const char *key, Aws::String &&value)
Definition: S3Location.h:357
Aws::Glacier::Model::S3Location::WithTagging
S3Location & WithTagging(Aws::Map< Aws::String, Aws::String > &&value)
Definition: S3Location.h:266
Aws::Glacier::Model::Encryption
Definition: Encryption.h:34
Aws::Glacier::Model::S3Location
Definition: S3Location.h:39
Aws::Glacier::Model::S3Location::AddTagging
S3Location & AddTagging(Aws::String &&key, const char *value)
Definition: S3Location.h:296
Aws::Glacier::Model::S3Location::GetBucketName
const Aws::String & GetBucketName() const
Definition: S3Location.h:50
Aws::Glacier::Model::S3Location::WithCannedACL
S3Location & WithCannedACL(CannedACL &&value)
Definition: S3Location.h:194
Aws::Glacier::Model::S3Location::AddTagging
S3Location & AddTagging(const Aws::String &key, const Aws::String &value)
Definition: S3Location.h:271
Aws::Glacier::Model::Grant
Definition: Grant.h:33
Aws::Glacier::Model::S3Location::SetTagging
void SetTagging(Aws::Map< Aws::String, Aws::String > &&value)
Definition: S3Location.h:256
Aws::Glacier::Model::S3Location::TaggingHasBeenSet
bool TaggingHasBeenSet() const
Definition: S3Location.h:246
Aws::Glacier::Model::S3Location::GetTagging
const Aws::Map< Aws::String, Aws::String > & GetTagging() const
Definition: S3Location.h:241
Aws::Glacier::Model::S3Location::WithEncryption
S3Location & WithEncryption(Encryption &&value)
Definition: S3Location.h:163
Aws::Glacier::Model::S3Location::SetUserMetadata
void SetUserMetadata(const Aws::Map< Aws::String, Aws::String > &value)
Definition: S3Location.h:317
Aws::Glacier::Model::S3Location::SetStorageClass
void SetStorageClass(StorageClass &&value)
Definition: S3Location.h:388
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Glacier::Model::S3Location::AddAccessControlList
S3Location & AddAccessControlList(Grant &&value)
Definition: S3Location.h:235
Aws::Glacier::Model::S3Location::AddUserMetadata
S3Location & AddUserMetadata(const char *key, const char *value)
Definition: S3Location.h:367
Aws::Glacier::Model::S3Location::GetEncryption
const Encryption & GetEncryption() const
Definition: S3Location.h:133
Aws::Glacier::Model::S3Location::WithEncryption
S3Location & WithEncryption(const Encryption &value)
Definition: S3Location.h:157
Grant.h
AWSVector.h
Aws::Glacier::Model::S3Location::SetUserMetadata
void SetUserMetadata(Aws::Map< Aws::String, Aws::String > &&value)
Definition: S3Location.h:322
Aws::Glacier::Model::S3Location::WithStorageClass
S3Location & WithStorageClass(StorageClass &&value)
Definition: S3Location.h:398
Aws::Glacier::Model::S3Location::operator=
S3Location & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Glacier::Model::S3Location::SetAccessControlList
void SetAccessControlList(const Aws::Vector< Grant > &value)
Definition: S3Location.h:210
Aws::Glacier::Model::S3Location::SetBucketName
void SetBucketName(const Aws::String &value)
Definition: S3Location.h:60
Aws::Glacier::Model::S3Location::WithTagging
S3Location & WithTagging(const Aws::Map< Aws::String, Aws::String > &value)
Definition: S3Location.h:261
Aws::Glacier::Model::S3Location::GetUserMetadata
const Aws::Map< Aws::String, Aws::String > & GetUserMetadata() const
Definition: S3Location.h:307
Aws::Glacier::Model::S3Location::AddTagging
S3Location & AddTagging(const Aws::String &key, Aws::String &&value)
Definition: S3Location.h:281
Aws::Glacier::Model::S3Location::GetPrefix
const Aws::String & GetPrefix() const
Definition: S3Location.h:91
AWS_GLACIER_API
#define AWS_GLACIER_API
Definition: Glacier_EXPORTS.h:28
Aws::Glacier::Model::S3Location::AddTagging
S3Location & AddTagging(const char *key, const char *value)
Definition: S3Location.h:301
Aws::Glacier::Model::S3Location::AddUserMetadata
S3Location & AddUserMetadata(const Aws::String &key, const Aws::String &value)
Definition: S3Location.h:337
Aws::Glacier::Model::S3Location::AddTagging
S3Location & AddTagging(Aws::String &&key, Aws::String &&value)
Definition: S3Location.h:286
Aws::Glacier::Model::S3Location::AddUserMetadata
S3Location & AddUserMetadata(const Aws::String &key, Aws::String &&value)
Definition: S3Location.h:347
Aws::Glacier::Model::S3Location::UserMetadataHasBeenSet
bool UserMetadataHasBeenSet() const
Definition: S3Location.h:312
Aws::Glacier::Model::S3Location::BucketNameHasBeenSet
bool BucketNameHasBeenSet() const
Definition: S3Location.h:55
Aws::Glacier::Model::S3Location::WithCannedACL
S3Location & WithCannedACL(const CannedACL &value)
Definition: S3Location.h:189
Aws::Glacier::Model::S3Location::WithAccessControlList
S3Location & WithAccessControlList(const Aws::Vector< Grant > &value)
Definition: S3Location.h:220
CannedACL.h
Aws::Glacier::Model::S3Location::AccessControlListHasBeenSet
bool AccessControlListHasBeenSet() const
Definition: S3Location.h:205
Aws::Glacier::Model::S3Location::S3Location
S3Location(Aws::Utils::Json::JsonView jsonValue)
Aws::Glacier::Model::S3Location::SetStorageClass
void SetStorageClass(const StorageClass &value)
Definition: S3Location.h:383
Aws::Glacier::Model::S3Location::AddTagging
S3Location & AddTagging(Aws::String &&key, const Aws::String &value)
Definition: S3Location.h:276
Aws::Glacier::Model::S3Location::SetBucketName
void SetBucketName(Aws::String &&value)
Definition: S3Location.h:65
Aws::Glacier::Model::S3Location::AddTagging
S3Location & AddTagging(const char *key, Aws::String &&value)
Definition: S3Location.h:291
Aws::Glacier::Model::S3Location::S3Location
S3Location()
StorageClass.h
Aws::Glacier::Model::S3Location::SetCannedACL
void SetCannedACL(const CannedACL &value)
Definition: S3Location.h:179
Aws::Glacier::Model::S3Location::SetEncryption
void SetEncryption(const Encryption &value)
Definition: S3Location.h:145
Aws::Glacier::Model::S3Location::AddUserMetadata
S3Location & AddUserMetadata(Aws::String &&key, Aws::String &&value)
Definition: S3Location.h:352
Aws::Glacier::Model::CannedACL
CannedACL
Definition: CannedACL.h:17
Aws::Glacier::Model::S3Location::WithStorageClass
S3Location & WithStorageClass(const StorageClass &value)
Definition: S3Location.h:393
Aws::Glacier::Model::S3Location::WithUserMetadata
S3Location & WithUserMetadata(const Aws::Map< Aws::String, Aws::String > &value)
Definition: S3Location.h:327
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Glacier::Model::S3Location::PrefixHasBeenSet
bool PrefixHasBeenSet() const
Definition: S3Location.h:96
Aws::Glacier::Model::S3Location::WithPrefix
S3Location & WithPrefix(Aws::String &&value)
Definition: S3Location.h:121
Aws::Glacier::Model::S3Location::AddUserMetadata
S3Location & AddUserMetadata(Aws::String &&key, const char *value)
Definition: S3Location.h:362
Aws::Glacier::Model::S3Location::WithBucketName
S3Location & WithBucketName(const Aws::String &value)
Definition: S3Location.h:75
Aws::Glacier::Model::S3Location::WithBucketName
S3Location & WithBucketName(const char *value)
Definition: S3Location.h:85
Aws::Glacier::Model::S3Location::SetPrefix
void SetPrefix(const Aws::String &value)
Definition: S3Location.h:101
Aws::Glacier::Model::S3Location::SetCannedACL
void SetCannedACL(CannedACL &&value)
Definition: S3Location.h:184
Aws::Glacier::Model::StorageClass
StorageClass
Definition: StorageClass.h:17
Aws::Glacier::Model::S3Location::AddUserMetadata
S3Location & AddUserMetadata(Aws::String &&key, const Aws::String &value)
Definition: S3Location.h:342
Aws::Glacier::Model::S3Location::StorageClassHasBeenSet
bool StorageClassHasBeenSet() const
Definition: S3Location.h:378
Aws::Glacier::Model::S3Location::WithUserMetadata
S3Location & WithUserMetadata(Aws::Map< Aws::String, Aws::String > &&value)
Definition: S3Location.h:332
Aws::Glacier::Model::S3Location::SetPrefix
void SetPrefix(const char *value)
Definition: S3Location.h:111
Aws
Definition: AccessManagementClient.h:15
Aws::Glacier::Model::S3Location::EncryptionHasBeenSet
bool EncryptionHasBeenSet() const
Definition: S3Location.h:139
Aws::Glacier::Model::S3Location::WithPrefix
S3Location & WithPrefix(const char *value)
Definition: S3Location.h:126
Aws::Glacier::Model::S3Location::SetEncryption
void SetEncryption(Encryption &&value)
Definition: S3Location.h:151
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Glacier::Model::S3Location::CannedACLHasBeenSet
bool CannedACLHasBeenSet() const
Definition: S3Location.h:174
Aws::Glacier::Model::S3Location::SetTagging
void SetTagging(const Aws::Map< Aws::String, Aws::String > &value)
Definition: S3Location.h:251
Encryption.h
Aws::Glacier::Model::S3Location::SetPrefix
void SetPrefix(Aws::String &&value)
Definition: S3Location.h:106
Aws::Glacier::Model::S3Location::GetStorageClass
const StorageClass & GetStorageClass() const
Definition: S3Location.h:373
AWSMap.h
Aws::Glacier::Model::S3Location::WithPrefix
S3Location & WithPrefix(const Aws::String &value)
Definition: S3Location.h:116
Aws::Glacier::Model::S3Location::GetAccessControlList
const Aws::Vector< Grant > & GetAccessControlList() const
Definition: S3Location.h:200
Aws::Glacier::Model::S3Location::SetAccessControlList
void SetAccessControlList(Aws::Vector< Grant > &&value)
Definition: S3Location.h:215
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::Glacier::Model::S3Location::WithAccessControlList
S3Location & WithAccessControlList(Aws::Vector< Grant > &&value)
Definition: S3Location.h:225
Glacier_EXPORTS.h