AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
RestoreObjectRequest.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/S3Request.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Http
19{
20 class URI;
21} //namespace Http
22namespace S3
23{
24namespace Model
25{
26
30 {
31 public:
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "RestoreObject"; }
39
41
43
45
47
52
72 inline const Aws::String& GetBucket() const{ return m_bucket; }
73
93 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
94
114 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
115
135 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
136
156 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
157
177 inline RestoreObjectRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
178
198 inline RestoreObjectRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
199
219 inline RestoreObjectRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
220
221
225 inline const Aws::String& GetKey() const{ return m_key; }
226
230 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
231
235 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
236
240 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
241
245 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
246
250 inline RestoreObjectRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
251
255 inline RestoreObjectRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
256
260 inline RestoreObjectRequest& WithKey(const char* value) { SetKey(value); return *this;}
261
262
266 inline const Aws::String& GetVersionId() const{ return m_versionId; }
267
271 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
272
276 inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
277
281 inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
282
286 inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
287
291 inline RestoreObjectRequest& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
292
296 inline RestoreObjectRequest& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
297
301 inline RestoreObjectRequest& WithVersionId(const char* value) { SetVersionId(value); return *this;}
302
303
304
305 inline const RestoreRequest& GetRestoreRequest() const{ return m_restoreRequest; }
306
307
308 inline bool RestoreRequestHasBeenSet() const { return m_restoreRequestHasBeenSet; }
309
310
311 inline void SetRestoreRequest(const RestoreRequest& value) { m_restoreRequestHasBeenSet = true; m_restoreRequest = value; }
312
313
314 inline void SetRestoreRequest(RestoreRequest&& value) { m_restoreRequestHasBeenSet = true; m_restoreRequest = std::move(value); }
315
316
317 inline RestoreObjectRequest& WithRestoreRequest(const RestoreRequest& value) { SetRestoreRequest(value); return *this;}
318
319
320 inline RestoreObjectRequest& WithRestoreRequest(RestoreRequest&& value) { SetRestoreRequest(std::move(value)); return *this;}
321
322
323
324 inline const RequestPayer& GetRequestPayer() const{ return m_requestPayer; }
325
326
327 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
328
329
330 inline void SetRequestPayer(const RequestPayer& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
331
332
333 inline void SetRequestPayer(RequestPayer&& value) { m_requestPayerHasBeenSet = true; m_requestPayer = std::move(value); }
334
335
336 inline RestoreObjectRequest& WithRequestPayer(const RequestPayer& value) { SetRequestPayer(value); return *this;}
337
338
339 inline RestoreObjectRequest& WithRequestPayer(RequestPayer&& value) { SetRequestPayer(std::move(value)); return *this;}
340
341
354 inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
355
368 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
369
382 inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
383
396 inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); }
397
411
424 inline RestoreObjectRequest& WithChecksumAlgorithm(ChecksumAlgorithm&& value) { SetChecksumAlgorithm(std::move(value)); return *this;}
425
426
432 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
433
439 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
440
446 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
447
453 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
454
460 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
461
468
474 inline RestoreObjectRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
475
481 inline RestoreObjectRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
482
483
484
485 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
486
487
488 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
489
490
491 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
492
493
494 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
495
496
498
499
501
502
503 inline RestoreObjectRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
504
505
506 inline RestoreObjectRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
507
508
509 inline RestoreObjectRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
510
511
512 inline RestoreObjectRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
513
514
515 inline RestoreObjectRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
516
517
518 inline RestoreObjectRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
519
520
521 inline RestoreObjectRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
522
523 private:
524
525 Aws::String m_bucket;
526 bool m_bucketHasBeenSet = false;
527
528 Aws::String m_key;
529 bool m_keyHasBeenSet = false;
530
531 Aws::String m_versionId;
532 bool m_versionIdHasBeenSet = false;
533
534 RestoreRequest m_restoreRequest;
535 bool m_restoreRequestHasBeenSet = false;
536
537 RequestPayer m_requestPayer;
538 bool m_requestPayerHasBeenSet = false;
539
540 ChecksumAlgorithm m_checksumAlgorithm;
541 bool m_checksumAlgorithmHasBeenSet = false;
542
543 Aws::String m_expectedBucketOwner;
544 bool m_expectedBucketOwnerHasBeenSet = false;
545
546 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
547 bool m_customizedAccessLogTagHasBeenSet = false;
548 };
549
550} // namespace Model
551} // namespace S3
552} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
RestoreObjectRequest & WithBucket(Aws::String &&value)
void SetRestoreRequest(RestoreRequest &&value)
RestoreObjectRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
void SetRequestPayer(const RequestPayer &value)
RestoreObjectRequest & WithVersionId(Aws::String &&value)
RestoreObjectRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
RestoreObjectRequest & WithKey(const Aws::String &value)
void SetKey(const Aws::String &value)
void SetChecksumAlgorithm(ChecksumAlgorithm &&value)
RestoreObjectRequest & WithKey(Aws::String &&value)
RestoreObjectRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
RestoreObjectRequest & WithBucket(const Aws::String &value)
void SetRequestPayer(RequestPayer &&value)
RestoreObjectRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
void SetRestoreRequest(const RestoreRequest &value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
RestoreObjectRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
RestoreObjectRequest & WithExpectedBucketOwner(const Aws::String &value)
AWS_S3_API Aws::String GetChecksumAlgorithmName() const override
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
void SetExpectedBucketOwner(const Aws::String &value)
RestoreObjectRequest & WithKey(const char *value)
RestoreObjectRequest & WithExpectedBucketOwner(Aws::String &&value)
RestoreObjectRequest & WithBucket(const char *value)
void SetBucket(const Aws::String &value)
const RequestPayer & GetRequestPayer() const
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
RestoreObjectRequest & WithChecksumAlgorithm(const ChecksumAlgorithm &value)
RestoreObjectRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
RestoreObjectRequest & WithRestoreRequest(const RestoreRequest &value)
const Aws::String & GetBucket() const
RestoreObjectRequest & WithVersionId(const char *value)
RestoreObjectRequest & WithRequestPayer(RequestPayer &&value)
RestoreObjectRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
const Aws::String & GetExpectedBucketOwner() const
void SetExpectedBucketOwner(const char *value)
RestoreObjectRequest & WithRequestPayer(const RequestPayer &value)
const RestoreRequest & GetRestoreRequest() const
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
AWS_S3_API Aws::String SerializePayload() const override
void SetExpectedBucketOwner(Aws::String &&value)
const Aws::String & GetVersionId() const
void SetChecksumAlgorithm(const ChecksumAlgorithm &value)
RestoreObjectRequest & WithExpectedBucketOwner(const char *value)
const ChecksumAlgorithm & GetChecksumAlgorithm() const
RestoreObjectRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
RestoreObjectRequest & WithChecksumAlgorithm(ChecksumAlgorithm &&value)
RestoreObjectRequest & WithVersionId(const Aws::String &value)
RestoreObjectRequest & WithRestoreRequest(RestoreRequest &&value)
virtual const char * GetServiceRequestName() const override
void SetVersionId(const Aws::String &value)
RestoreObjectRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
Aws::Endpoint::EndpointParameters EndpointParameters
Definition: S3Request.h:22
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String