AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutPublicAccessBlockRequest.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/S3Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3/model/ChecksumAlgorithm.h>
11#include <aws/s3/model/PublicAccessBlockConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSMap.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
39 AWS_S3_API Aws::String SerializePayload() const override;
40
41 AWS_S3_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
44
45 AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override;
46 AWS_S3_API Aws::String GetChecksumAlgorithmName() const override;
47
51 AWS_S3_API EndpointParameters GetEndpointContextParams() const override;
52
54
58 inline const Aws::String& GetBucket() const{ return m_bucket; }
59 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
60 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
61 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
62 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
63 inline PutPublicAccessBlockRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
64 inline PutPublicAccessBlockRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
65 inline PutPublicAccessBlockRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
67
69
74 inline const Aws::String& GetContentMD5() const{ return m_contentMD5; }
75 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
76 inline void SetContentMD5(const Aws::String& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = value; }
77 inline void SetContentMD5(Aws::String&& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = std::move(value); }
78 inline void SetContentMD5(const char* value) { m_contentMD5HasBeenSet = true; m_contentMD5.assign(value); }
79 inline PutPublicAccessBlockRequest& WithContentMD5(const Aws::String& value) { SetContentMD5(value); return *this;}
80 inline PutPublicAccessBlockRequest& WithContentMD5(Aws::String&& value) { SetContentMD5(std::move(value)); return *this;}
81 inline PutPublicAccessBlockRequest& WithContentMD5(const char* value) { SetContentMD5(value); return *this;}
83
85
97 inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
98 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
99 inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
100 inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); }
104
106
114 inline const PublicAccessBlockConfiguration& GetPublicAccessBlockConfiguration() const{ return m_publicAccessBlockConfiguration; }
115 inline bool PublicAccessBlockConfigurationHasBeenSet() const { return m_publicAccessBlockConfigurationHasBeenSet; }
116 inline void SetPublicAccessBlockConfiguration(const PublicAccessBlockConfiguration& value) { m_publicAccessBlockConfigurationHasBeenSet = true; m_publicAccessBlockConfiguration = value; }
117 inline void SetPublicAccessBlockConfiguration(PublicAccessBlockConfiguration&& value) { m_publicAccessBlockConfigurationHasBeenSet = true; m_publicAccessBlockConfiguration = std::move(value); }
121
123
128 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
129 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
130 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
131 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
132 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
135 inline PutPublicAccessBlockRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
137
139
140 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
141 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
142 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
143 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
146 inline PutPublicAccessBlockRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
147 inline PutPublicAccessBlockRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
148 inline PutPublicAccessBlockRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
149 inline PutPublicAccessBlockRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
150 inline PutPublicAccessBlockRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
151 inline PutPublicAccessBlockRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
152 inline PutPublicAccessBlockRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
154 private:
155
156 Aws::String m_bucket;
157 bool m_bucketHasBeenSet = false;
158
159 Aws::String m_contentMD5;
160 bool m_contentMD5HasBeenSet = false;
161
162 ChecksumAlgorithm m_checksumAlgorithm;
163 bool m_checksumAlgorithmHasBeenSet = false;
164
165 PublicAccessBlockConfiguration m_publicAccessBlockConfiguration;
166 bool m_publicAccessBlockConfigurationHasBeenSet = false;
167
168 Aws::String m_expectedBucketOwner;
169 bool m_expectedBucketOwnerHasBeenSet = false;
170
171 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
172 bool m_customizedAccessLogTagHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace S3
177} // namespace Aws
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)
AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
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_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String