AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
PutBucketOwnershipControlsRequest.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>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace S3
21{
22namespace Model
23{
24
28 {
29 public:
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "PutBucketOwnershipControls"; }
37
39
41
43
48
53 inline const Aws::String& GetBucket() const{ return m_bucket; }
54
59 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
60
65 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
66
71 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
72
77 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
78
83 inline PutBucketOwnershipControlsRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
84
89 inline PutBucketOwnershipControlsRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
90
95 inline PutBucketOwnershipControlsRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
96
97
103 inline const Aws::String& GetContentMD5() const{ return m_contentMD5; }
104
110 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
111
117 inline void SetContentMD5(const Aws::String& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = value; }
118
124 inline void SetContentMD5(Aws::String&& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = std::move(value); }
125
131 inline void SetContentMD5(const char* value) { m_contentMD5HasBeenSet = true; m_contentMD5.assign(value); }
132
138 inline PutBucketOwnershipControlsRequest& WithContentMD5(const Aws::String& value) { SetContentMD5(value); return *this;}
139
145 inline PutBucketOwnershipControlsRequest& WithContentMD5(Aws::String&& value) { SetContentMD5(std::move(value)); return *this;}
146
152 inline PutBucketOwnershipControlsRequest& WithContentMD5(const char* value) { SetContentMD5(value); return *this;}
153
154
160 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
161
167 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
168
174 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
175
181 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
182
188 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
189
196
203
209 inline PutBucketOwnershipControlsRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
210
211
217 inline const OwnershipControls& GetOwnershipControls() const{ return m_ownershipControls; }
218
224 inline bool OwnershipControlsHasBeenSet() const { return m_ownershipControlsHasBeenSet; }
225
231 inline void SetOwnershipControls(const OwnershipControls& value) { m_ownershipControlsHasBeenSet = true; m_ownershipControls = value; }
232
238 inline void SetOwnershipControls(OwnershipControls&& value) { m_ownershipControlsHasBeenSet = true; m_ownershipControls = std::move(value); }
239
246
253
254
255
256 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
257
258
259 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
260
261
262 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
263
264
265 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
266
267
269
270
272
273
274 inline PutBucketOwnershipControlsRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
275
276
277 inline PutBucketOwnershipControlsRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
278
279
280 inline PutBucketOwnershipControlsRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
281
282
283 inline PutBucketOwnershipControlsRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
284
285
286 inline PutBucketOwnershipControlsRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
287
288
289 inline PutBucketOwnershipControlsRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
290
291
292 inline PutBucketOwnershipControlsRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
293
294 private:
295
296 Aws::String m_bucket;
297 bool m_bucketHasBeenSet = false;
298
299 Aws::String m_contentMD5;
300 bool m_contentMD5HasBeenSet = false;
301
302 Aws::String m_expectedBucketOwner;
303 bool m_expectedBucketOwnerHasBeenSet = false;
304
305 OwnershipControls m_ownershipControls;
306 bool m_ownershipControlsHasBeenSet = false;
307
308 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
309 bool m_customizedAccessLogTagHasBeenSet = false;
310 };
311
312} // namespace Model
313} // namespace S3
314} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
PutBucketOwnershipControlsRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
PutBucketOwnershipControlsRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
PutBucketOwnershipControlsRequest & WithExpectedBucketOwner(const Aws::String &value)
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
PutBucketOwnershipControlsRequest & WithExpectedBucketOwner(const char *value)
PutBucketOwnershipControlsRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
PutBucketOwnershipControlsRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
PutBucketOwnershipControlsRequest & WithContentMD5(const char *value)
PutBucketOwnershipControlsRequest & WithBucket(Aws::String &&value)
PutBucketOwnershipControlsRequest & WithBucket(const char *value)
PutBucketOwnershipControlsRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
PutBucketOwnershipControlsRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
PutBucketOwnershipControlsRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
PutBucketOwnershipControlsRequest & WithBucket(const Aws::String &value)
PutBucketOwnershipControlsRequest & WithContentMD5(const Aws::String &value)
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutBucketOwnershipControlsRequest & WithOwnershipControls(OwnershipControls &&value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
PutBucketOwnershipControlsRequest & WithOwnershipControls(const OwnershipControls &value)
AWS_S3_API Aws::String SerializePayload() const override
PutBucketOwnershipControlsRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
PutBucketOwnershipControlsRequest & WithExpectedBucketOwner(Aws::String &&value)
PutBucketOwnershipControlsRequest & WithContentMD5(Aws::String &&value)
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
PutBucketOwnershipControlsRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, 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