AWS SDK for C++  1.9.104
AWS SDK for C++
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 
14 namespace Aws
15 {
16 namespace Http
17 {
18  class URI;
19 } //namespace Http
20 namespace S3
21 {
22 namespace 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 
38  Aws::String SerializePayload() const override;
39 
40  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41 
43 
44  inline bool ShouldComputeContentMd5() const override { return true; }
45 
46 
51  inline const Aws::String& GetBucket() const{ return m_bucket; }
52 
57  inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
58 
63  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
64 
69  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
70 
75  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
76 
81  inline PutBucketOwnershipControlsRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
82 
87  inline PutBucketOwnershipControlsRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
88 
93  inline PutBucketOwnershipControlsRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
94 
95 
101  inline const Aws::String& GetContentMD5() const{ return m_contentMD5; }
102 
108  inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
109 
115  inline void SetContentMD5(const Aws::String& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = value; }
116 
122  inline void SetContentMD5(Aws::String&& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = std::move(value); }
123 
129  inline void SetContentMD5(const char* value) { m_contentMD5HasBeenSet = true; m_contentMD5.assign(value); }
130 
136  inline PutBucketOwnershipControlsRequest& WithContentMD5(const Aws::String& value) { SetContentMD5(value); return *this;}
137 
143  inline PutBucketOwnershipControlsRequest& WithContentMD5(Aws::String&& value) { SetContentMD5(std::move(value)); return *this;}
144 
150  inline PutBucketOwnershipControlsRequest& WithContentMD5(const char* value) { SetContentMD5(value); return *this;}
151 
152 
158  inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
159 
165  inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
166 
172  inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
173 
179  inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
180 
186  inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
187 
193  inline PutBucketOwnershipControlsRequest& WithExpectedBucketOwner(const Aws::String& value) { SetExpectedBucketOwner(value); return *this;}
194 
200  inline PutBucketOwnershipControlsRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
201 
207  inline PutBucketOwnershipControlsRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
208 
209 
214  inline const OwnershipControls& GetOwnershipControls() const{ return m_ownershipControls; }
215 
220  inline bool OwnershipControlsHasBeenSet() const { return m_ownershipControlsHasBeenSet; }
221 
226  inline void SetOwnershipControls(const OwnershipControls& value) { m_ownershipControlsHasBeenSet = true; m_ownershipControls = value; }
227 
232  inline void SetOwnershipControls(OwnershipControls&& value) { m_ownershipControlsHasBeenSet = true; m_ownershipControls = std::move(value); }
233 
238  inline PutBucketOwnershipControlsRequest& WithOwnershipControls(const OwnershipControls& value) { SetOwnershipControls(value); return *this;}
239 
244  inline PutBucketOwnershipControlsRequest& WithOwnershipControls(OwnershipControls&& value) { SetOwnershipControls(std::move(value)); return *this;}
245 
246 
247 
248  inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
249 
250 
251  inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
252 
253 
254  inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
255 
256 
257  inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
258 
259 
260  inline PutBucketOwnershipControlsRequest& WithCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { SetCustomizedAccessLogTag(value); return *this;}
261 
262 
263  inline PutBucketOwnershipControlsRequest& WithCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { SetCustomizedAccessLogTag(std::move(value)); return *this;}
264 
265 
266  inline PutBucketOwnershipControlsRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
267 
268 
269  inline PutBucketOwnershipControlsRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
270 
271 
272  inline PutBucketOwnershipControlsRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
273 
274 
275  inline PutBucketOwnershipControlsRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
276 
277 
278  inline PutBucketOwnershipControlsRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
279 
280 
281  inline PutBucketOwnershipControlsRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
282 
283 
284  inline PutBucketOwnershipControlsRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
285 
286  private:
287 
288  Aws::String m_bucket;
289  bool m_bucketHasBeenSet;
290 
291  Aws::String m_contentMD5;
292  bool m_contentMD5HasBeenSet;
293 
294  Aws::String m_expectedBucketOwner;
295  bool m_expectedBucketOwnerHasBeenSet;
296 
297  OwnershipControls m_ownershipControls;
298  bool m_ownershipControlsHasBeenSet;
299 
300  Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
301  bool m_customizedAccessLogTagHasBeenSet;
302  };
303 
304 } // namespace Model
305 } // namespace S3
306 } // namespace Aws
Aws::S3::Model::PutBucketOwnershipControlsRequest
Definition: PutBucketOwnershipControlsRequest.h:28
Aws::S3::Model::PutBucketOwnershipControlsRequest::WithExpectedBucketOwner
PutBucketOwnershipControlsRequest & WithExpectedBucketOwner(const Aws::String &value)
Definition: PutBucketOwnershipControlsRequest.h:193
Aws::S3::Model::PutBucketOwnershipControlsRequest::WithBucket
PutBucketOwnershipControlsRequest & WithBucket(Aws::String &&value)
Definition: PutBucketOwnershipControlsRequest.h:87
Aws::S3::Model::PutBucketOwnershipControlsRequest::BucketHasBeenSet
bool BucketHasBeenSet() const
Definition: PutBucketOwnershipControlsRequest.h:57
Aws::Http::URI
Definition: URI.h:32
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
S3Request.h
Aws::S3::Model::PutBucketOwnershipControlsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::S3::Model::PutBucketOwnershipControlsRequest::SetOwnershipControls
void SetOwnershipControls(const OwnershipControls &value)
Definition: PutBucketOwnershipControlsRequest.h:226
Aws::S3::Model::PutBucketOwnershipControlsRequest::WithContentMD5
PutBucketOwnershipControlsRequest & WithContentMD5(const char *value)
Definition: PutBucketOwnershipControlsRequest.h:150
Aws::S3::Model::PutBucketOwnershipControlsRequest::WithContentMD5
PutBucketOwnershipControlsRequest & WithContentMD5(const Aws::String &value)
Definition: PutBucketOwnershipControlsRequest.h:136
Aws::S3::Model::PutBucketOwnershipControlsRequest::PutBucketOwnershipControlsRequest
PutBucketOwnershipControlsRequest()
Aws::S3::Model::PutBucketOwnershipControlsRequest::SetBucket
void SetBucket(const char *value)
Definition: PutBucketOwnershipControlsRequest.h:75
Aws::S3::Model::PutBucketOwnershipControlsRequest::CustomizedAccessLogTagHasBeenSet
bool CustomizedAccessLogTagHasBeenSet() const
Definition: PutBucketOwnershipControlsRequest.h:251
Aws::S3::Model::PutBucketOwnershipControlsRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(const Aws::String &value)
Definition: PutBucketOwnershipControlsRequest.h:172
Aws::S3::Model::PutBucketOwnershipControlsRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(const char *value)
Definition: PutBucketOwnershipControlsRequest.h:186
Aws::S3::Model::PutBucketOwnershipControlsRequest::ContentMD5HasBeenSet
bool ContentMD5HasBeenSet() const
Definition: PutBucketOwnershipControlsRequest.h:108
Aws::S3::Model::PutBucketOwnershipControlsRequest::SetBucket
void SetBucket(const Aws::String &value)
Definition: PutBucketOwnershipControlsRequest.h:63
Aws::S3::Model::PutBucketOwnershipControlsRequest::WithCustomizedAccessLogTag
PutBucketOwnershipControlsRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
Definition: PutBucketOwnershipControlsRequest.h:260
Aws::S3::Model::PutBucketOwnershipControlsRequest::WithBucket
PutBucketOwnershipControlsRequest & WithBucket(const Aws::String &value)
Definition: PutBucketOwnershipControlsRequest.h:81
Aws::S3::Model::PutBucketOwnershipControlsRequest::WithBucket
PutBucketOwnershipControlsRequest & WithBucket(const char *value)
Definition: PutBucketOwnershipControlsRequest.h:93
Aws::S3::Model::PutBucketOwnershipControlsRequest::AddCustomizedAccessLogTag
PutBucketOwnershipControlsRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
Definition: PutBucketOwnershipControlsRequest.h:266
S3_EXPORTS.h
Aws::S3::Model::PutBucketOwnershipControlsRequest::SetOwnershipControls
void SetOwnershipControls(OwnershipControls &&value)
Definition: PutBucketOwnershipControlsRequest.h:232
AWS_S3_API
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
Aws::S3::S3Request
Definition: S3Request.h:18
Aws::S3::Model::PutBucketOwnershipControlsRequest::WithOwnershipControls
PutBucketOwnershipControlsRequest & WithOwnershipControls(const OwnershipControls &value)
Definition: PutBucketOwnershipControlsRequest.h:238
Aws::S3::Model::PutBucketOwnershipControlsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::S3::Model::PutBucketOwnershipControlsRequest::WithCustomizedAccessLogTag
PutBucketOwnershipControlsRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
Definition: PutBucketOwnershipControlsRequest.h:263
Aws::S3::Model::PutBucketOwnershipControlsRequest::OwnershipControlsHasBeenSet
bool OwnershipControlsHasBeenSet() const
Definition: PutBucketOwnershipControlsRequest.h:220
Aws::S3::Model::PutBucketOwnershipControlsRequest::GetCustomizedAccessLogTag
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
Definition: PutBucketOwnershipControlsRequest.h:248
Aws::S3::Model::PutBucketOwnershipControlsRequest::AddCustomizedAccessLogTag
PutBucketOwnershipControlsRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
Definition: PutBucketOwnershipControlsRequest.h:269
Aws::S3::Model::PutBucketOwnershipControlsRequest::GetBucket
const Aws::String & GetBucket() const
Definition: PutBucketOwnershipControlsRequest.h:51
Aws::S3::Model::PutBucketOwnershipControlsRequest::AddCustomizedAccessLogTag
PutBucketOwnershipControlsRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
Definition: PutBucketOwnershipControlsRequest.h:284
Aws::S3::Model::PutBucketOwnershipControlsRequest::ShouldComputeContentMd5
bool ShouldComputeContentMd5() const override
Definition: PutBucketOwnershipControlsRequest.h:44
Aws::S3::Model::PutBucketOwnershipControlsRequest::ExpectedBucketOwnerHasBeenSet
bool ExpectedBucketOwnerHasBeenSet() const
Definition: PutBucketOwnershipControlsRequest.h:165
Aws::S3::Model::PutBucketOwnershipControlsRequest::GetOwnershipControls
const OwnershipControls & GetOwnershipControls() const
Definition: PutBucketOwnershipControlsRequest.h:214
AWSString.h
OwnershipControls.h
Aws::S3::Model::PutBucketOwnershipControlsRequest::WithExpectedBucketOwner
PutBucketOwnershipControlsRequest & WithExpectedBucketOwner(const char *value)
Definition: PutBucketOwnershipControlsRequest.h:207
Aws::S3::Model::PutBucketOwnershipControlsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutBucketOwnershipControlsRequest.h:36
Aws::S3::Model::PutBucketOwnershipControlsRequest::SetContentMD5
void SetContentMD5(const char *value)
Definition: PutBucketOwnershipControlsRequest.h:129
Aws::S3::Model::PutBucketOwnershipControlsRequest::AddCustomizedAccessLogTag
PutBucketOwnershipControlsRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
Definition: PutBucketOwnershipControlsRequest.h:272
Aws::S3::Model::PutBucketOwnershipControlsRequest::WithContentMD5
PutBucketOwnershipControlsRequest & WithContentMD5(Aws::String &&value)
Definition: PutBucketOwnershipControlsRequest.h:143
Aws::S3::Model::PutBucketOwnershipControlsRequest::AddCustomizedAccessLogTag
PutBucketOwnershipControlsRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
Definition: PutBucketOwnershipControlsRequest.h:278
Aws::S3::Model::PutBucketOwnershipControlsRequest::SetBucket
void SetBucket(Aws::String &&value)
Definition: PutBucketOwnershipControlsRequest.h:69
Aws::S3::Model::PutBucketOwnershipControlsRequest::SetCustomizedAccessLogTag
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
Definition: PutBucketOwnershipControlsRequest.h:257
Aws::S3::Model::PutBucketOwnershipControlsRequest::GetExpectedBucketOwner
const Aws::String & GetExpectedBucketOwner() const
Definition: PutBucketOwnershipControlsRequest.h:158
Aws::S3::Model::OwnershipControls
Definition: OwnershipControls.h:33
Aws::S3::Model::PutBucketOwnershipControlsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::S3::Model::PutBucketOwnershipControlsRequest::GetContentMD5
const Aws::String & GetContentMD5() const
Definition: PutBucketOwnershipControlsRequest.h:101
Aws::S3::Model::PutBucketOwnershipControlsRequest::AddCustomizedAccessLogTag
PutBucketOwnershipControlsRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
Definition: PutBucketOwnershipControlsRequest.h:275
Aws::S3::Model::PutBucketOwnershipControlsRequest::SetContentMD5
void SetContentMD5(Aws::String &&value)
Definition: PutBucketOwnershipControlsRequest.h:122
Aws
Definition: AccessManagementClient.h:15
Aws::S3::Model::PutBucketOwnershipControlsRequest::WithOwnershipControls
PutBucketOwnershipControlsRequest & WithOwnershipControls(OwnershipControls &&value)
Definition: PutBucketOwnershipControlsRequest.h:244
Aws::S3::Model::PutBucketOwnershipControlsRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(Aws::String &&value)
Definition: PutBucketOwnershipControlsRequest.h:179
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::S3::Model::PutBucketOwnershipControlsRequest::WithExpectedBucketOwner
PutBucketOwnershipControlsRequest & WithExpectedBucketOwner(Aws::String &&value)
Definition: PutBucketOwnershipControlsRequest.h:200
Aws::S3::Model::PutBucketOwnershipControlsRequest::AddCustomizedAccessLogTag
PutBucketOwnershipControlsRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
Definition: PutBucketOwnershipControlsRequest.h:281
AWSMap.h
Aws::S3::Model::PutBucketOwnershipControlsRequest::SetCustomizedAccessLogTag
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
Definition: PutBucketOwnershipControlsRequest.h:254
Aws::S3::ARNService::S3
static const char S3[]
Definition: S3ARN.h:25
Aws::S3::Model::PutBucketOwnershipControlsRequest::SetContentMD5
void SetContentMD5(const Aws::String &value)
Definition: PutBucketOwnershipControlsRequest.h:115
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19