AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
PutBucketCorsRequest.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>
13#include <utility>
14
15namespace Aws
16{
17namespace Http
18{
19 class URI;
20} //namespace Http
21namespace S3
22{
23namespace Model
24{
25
29 {
30 public:
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "PutBucketCors"; }
38
40
42
44
46
51
55 inline const Aws::String& GetBucket() const{ return m_bucket; }
56
60 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
61
65 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
66
70 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
71
75 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
76
80 inline PutBucketCorsRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
81
85 inline PutBucketCorsRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
86
90 inline PutBucketCorsRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
91
92
99 inline const CORSConfiguration& GetCORSConfiguration() const{ return m_cORSConfiguration; }
100
107 inline bool CORSConfigurationHasBeenSet() const { return m_cORSConfigurationHasBeenSet; }
108
115 inline void SetCORSConfiguration(const CORSConfiguration& value) { m_cORSConfigurationHasBeenSet = true; m_cORSConfiguration = value; }
116
123 inline void SetCORSConfiguration(CORSConfiguration&& value) { m_cORSConfigurationHasBeenSet = true; m_cORSConfiguration = std::move(value); }
124
132
139 inline PutBucketCorsRequest& WithCORSConfiguration(CORSConfiguration&& value) { SetCORSConfiguration(std::move(value)); return *this;}
140
141
150 inline const Aws::String& GetContentMD5() const{ return m_contentMD5; }
151
160 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
161
170 inline void SetContentMD5(const Aws::String& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = value; }
171
180 inline void SetContentMD5(Aws::String&& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = std::move(value); }
181
190 inline void SetContentMD5(const char* value) { m_contentMD5HasBeenSet = true; m_contentMD5.assign(value); }
191
200 inline PutBucketCorsRequest& WithContentMD5(const Aws::String& value) { SetContentMD5(value); return *this;}
201
210 inline PutBucketCorsRequest& WithContentMD5(Aws::String&& value) { SetContentMD5(std::move(value)); return *this;}
211
220 inline PutBucketCorsRequest& WithContentMD5(const char* value) { SetContentMD5(value); return *this;}
221
222
235 inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
236
249 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
250
263 inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
264
277 inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); }
278
292
305 inline PutBucketCorsRequest& WithChecksumAlgorithm(ChecksumAlgorithm&& value) { SetChecksumAlgorithm(std::move(value)); return *this;}
306
307
313 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
314
320 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
321
327 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
328
334 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
335
341 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
342
349
355 inline PutBucketCorsRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
356
362 inline PutBucketCorsRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
363
364
365
366 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
367
368
369 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
370
371
372 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
373
374
375 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
376
377
379
380
382
383
384 inline PutBucketCorsRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
385
386
387 inline PutBucketCorsRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
388
389
390 inline PutBucketCorsRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
391
392
393 inline PutBucketCorsRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
394
395
396 inline PutBucketCorsRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
397
398
399 inline PutBucketCorsRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
400
401
402 inline PutBucketCorsRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
403
404 private:
405
406 Aws::String m_bucket;
407 bool m_bucketHasBeenSet = false;
408
409 CORSConfiguration m_cORSConfiguration;
410 bool m_cORSConfigurationHasBeenSet = false;
411
412 Aws::String m_contentMD5;
413 bool m_contentMD5HasBeenSet = false;
414
415 ChecksumAlgorithm m_checksumAlgorithm;
416 bool m_checksumAlgorithmHasBeenSet = false;
417
418 Aws::String m_expectedBucketOwner;
419 bool m_expectedBucketOwnerHasBeenSet = false;
420
421 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
422 bool m_customizedAccessLogTagHasBeenSet = false;
423 };
424
425} // namespace Model
426} // namespace S3
427} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
PutBucketCorsRequest & WithBucket(const Aws::String &value)
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
PutBucketCorsRequest & WithExpectedBucketOwner(const char *value)
void SetChecksumAlgorithm(ChecksumAlgorithm &&value)
void SetBucket(const Aws::String &value)
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
PutBucketCorsRequest & WithChecksumAlgorithm(const ChecksumAlgorithm &value)
PutBucketCorsRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
const Aws::String & GetContentMD5() const
PutBucketCorsRequest & WithContentMD5(const Aws::String &value)
PutBucketCorsRequest & WithChecksumAlgorithm(ChecksumAlgorithm &&value)
PutBucketCorsRequest & WithBucket(Aws::String &&value)
void SetExpectedBucketOwner(const char *value)
PutBucketCorsRequest & WithBucket(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
void SetChecksumAlgorithm(const ChecksumAlgorithm &value)
PutBucketCorsRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
void SetCORSConfiguration(CORSConfiguration &&value)
PutBucketCorsRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
PutBucketCorsRequest & WithContentMD5(Aws::String &&value)
AWS_S3_API Aws::String SerializePayload() const override
PutBucketCorsRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::String & GetExpectedBucketOwner() const
void SetExpectedBucketOwner(Aws::String &&value)
void SetCORSConfiguration(const CORSConfiguration &value)
PutBucketCorsRequest & WithCORSConfiguration(const CORSConfiguration &value)
PutBucketCorsRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
PutBucketCorsRequest & WithContentMD5(const char *value)
PutBucketCorsRequest & WithExpectedBucketOwner(const Aws::String &value)
void SetExpectedBucketOwner(const Aws::String &value)
const CORSConfiguration & GetCORSConfiguration() const
PutBucketCorsRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
PutBucketCorsRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
const Aws::String & GetBucket() const
PutBucketCorsRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
const ChecksumAlgorithm & GetChecksumAlgorithm() const
void SetContentMD5(const Aws::String &value)
PutBucketCorsRequest & WithCORSConfiguration(CORSConfiguration &&value)
PutBucketCorsRequest & WithExpectedBucketOwner(Aws::String &&value)
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
AWS_S3_API Aws::String GetChecksumAlgorithmName() const override
PutBucketCorsRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &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