AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
PutPublicAccessBlockRequest.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 "PutPublicAccessBlock"; }
38
40
42
44
46
51
56 inline const Aws::String& GetBucket() const{ return m_bucket; }
57
62 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
63
68 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
69
74 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
75
80 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
81
86 inline PutPublicAccessBlockRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
87
92 inline PutPublicAccessBlockRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
93
98 inline PutPublicAccessBlockRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
99
100
106 inline const Aws::String& GetContentMD5() const{ return m_contentMD5; }
107
113 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
114
120 inline void SetContentMD5(const Aws::String& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = value; }
121
127 inline void SetContentMD5(Aws::String&& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = std::move(value); }
128
134 inline void SetContentMD5(const char* value) { m_contentMD5HasBeenSet = true; m_contentMD5.assign(value); }
135
141 inline PutPublicAccessBlockRequest& WithContentMD5(const Aws::String& value) { SetContentMD5(value); return *this;}
142
148 inline PutPublicAccessBlockRequest& WithContentMD5(Aws::String&& value) { SetContentMD5(std::move(value)); return *this;}
149
155 inline PutPublicAccessBlockRequest& WithContentMD5(const char* value) { SetContentMD5(value); return *this;}
156
157
170 inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
171
184 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
185
198 inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
199
212 inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); }
213
227
241
242
251 inline const PublicAccessBlockConfiguration& GetPublicAccessBlockConfiguration() const{ return m_publicAccessBlockConfiguration; }
252
261 inline bool PublicAccessBlockConfigurationHasBeenSet() const { return m_publicAccessBlockConfigurationHasBeenSet; }
262
271 inline void SetPublicAccessBlockConfiguration(const PublicAccessBlockConfiguration& value) { m_publicAccessBlockConfigurationHasBeenSet = true; m_publicAccessBlockConfiguration = value; }
272
281 inline void SetPublicAccessBlockConfiguration(PublicAccessBlockConfiguration&& value) { m_publicAccessBlockConfigurationHasBeenSet = true; m_publicAccessBlockConfiguration = std::move(value); }
282
292
302
303
309 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
310
316 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
317
323 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
324
330 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
331
337 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
338
345
352
358 inline PutPublicAccessBlockRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
359
360
361
362 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
363
364
365 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
366
367
368 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
369
370
371 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
372
373
375
376
378
379
380 inline PutPublicAccessBlockRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
381
382
383 inline PutPublicAccessBlockRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
384
385
386 inline PutPublicAccessBlockRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
387
388
389 inline PutPublicAccessBlockRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
390
391
392 inline PutPublicAccessBlockRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
393
394
395 inline PutPublicAccessBlockRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
396
397
398 inline PutPublicAccessBlockRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
399
400 private:
401
402 Aws::String m_bucket;
403 bool m_bucketHasBeenSet = false;
404
405 Aws::String m_contentMD5;
406 bool m_contentMD5HasBeenSet = false;
407
408 ChecksumAlgorithm m_checksumAlgorithm;
409 bool m_checksumAlgorithmHasBeenSet = false;
410
411 PublicAccessBlockConfiguration m_publicAccessBlockConfiguration;
412 bool m_publicAccessBlockConfigurationHasBeenSet = false;
413
414 Aws::String m_expectedBucketOwner;
415 bool m_expectedBucketOwnerHasBeenSet = false;
416
417 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
418 bool m_customizedAccessLogTagHasBeenSet = false;
419 };
420
421} // namespace Model
422} // namespace S3
423} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutPublicAccessBlockRequest & WithExpectedBucketOwner(const Aws::String &value)
const PublicAccessBlockConfiguration & GetPublicAccessBlockConfiguration() const
PutPublicAccessBlockRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
PutPublicAccessBlockRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
PutPublicAccessBlockRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
PutPublicAccessBlockRequest & WithBucket(Aws::String &&value)
void SetPublicAccessBlockConfiguration(PublicAccessBlockConfiguration &&value)
PutPublicAccessBlockRequest & WithContentMD5(Aws::String &&value)
PutPublicAccessBlockRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
PutPublicAccessBlockRequest & WithExpectedBucketOwner(const char *value)
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
const ChecksumAlgorithm & GetChecksumAlgorithm() const
AWS_S3_API Aws::String GetChecksumAlgorithmName() const override
PutPublicAccessBlockRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
virtual const char * GetServiceRequestName() const override
PutPublicAccessBlockRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
AWS_S3_API Aws::String SerializePayload() const override
void SetPublicAccessBlockConfiguration(const PublicAccessBlockConfiguration &value)
PutPublicAccessBlockRequest & WithChecksumAlgorithm(const ChecksumAlgorithm &value)
PutPublicAccessBlockRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
PutPublicAccessBlockRequest & WithChecksumAlgorithm(ChecksumAlgorithm &&value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
PutPublicAccessBlockRequest & WithContentMD5(const char *value)
void SetChecksumAlgorithm(const ChecksumAlgorithm &value)
PutPublicAccessBlockRequest & WithExpectedBucketOwner(Aws::String &&value)
PutPublicAccessBlockRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
PutPublicAccessBlockRequest & WithPublicAccessBlockConfiguration(PublicAccessBlockConfiguration &&value)
PutPublicAccessBlockRequest & WithBucket(const char *value)
PutPublicAccessBlockRequest & WithBucket(const Aws::String &value)
PutPublicAccessBlockRequest & WithPublicAccessBlockConfiguration(const PublicAccessBlockConfiguration &value)
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
PutPublicAccessBlockRequest & WithContentMD5(const Aws::String &value)
PutPublicAccessBlockRequest & AddCustomizedAccessLogTag(const Aws::String &key, 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