AWS SDK for C++  1.9.125
AWS SDK for C++
PutBucketLoggingRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Http
17 {
18  class URI;
19 } //namespace Http
20 namespace S3Crt
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 "PutBucketLogging"; }
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 
50  inline const Aws::String& GetBucket() const{ return m_bucket; }
51 
55  inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
56 
60  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
61 
65  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
66 
70  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
71 
75  inline PutBucketLoggingRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
76 
80  inline PutBucketLoggingRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
81 
85  inline PutBucketLoggingRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
86 
87 
91  inline const BucketLoggingStatus& GetBucketLoggingStatus() const{ return m_bucketLoggingStatus; }
92 
96  inline bool BucketLoggingStatusHasBeenSet() const { return m_bucketLoggingStatusHasBeenSet; }
97 
101  inline void SetBucketLoggingStatus(const BucketLoggingStatus& value) { m_bucketLoggingStatusHasBeenSet = true; m_bucketLoggingStatus = value; }
102 
106  inline void SetBucketLoggingStatus(BucketLoggingStatus&& value) { m_bucketLoggingStatusHasBeenSet = true; m_bucketLoggingStatus = std::move(value); }
107 
111  inline PutBucketLoggingRequest& WithBucketLoggingStatus(const BucketLoggingStatus& value) { SetBucketLoggingStatus(value); return *this;}
112 
116  inline PutBucketLoggingRequest& WithBucketLoggingStatus(BucketLoggingStatus&& value) { SetBucketLoggingStatus(std::move(value)); return *this;}
117 
118 
124  inline const Aws::String& GetContentMD5() const{ return m_contentMD5; }
125 
131  inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
132 
138  inline void SetContentMD5(const Aws::String& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = value; }
139 
145  inline void SetContentMD5(Aws::String&& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = std::move(value); }
146 
152  inline void SetContentMD5(const char* value) { m_contentMD5HasBeenSet = true; m_contentMD5.assign(value); }
153 
159  inline PutBucketLoggingRequest& WithContentMD5(const Aws::String& value) { SetContentMD5(value); return *this;}
160 
166  inline PutBucketLoggingRequest& WithContentMD5(Aws::String&& value) { SetContentMD5(std::move(value)); return *this;}
167 
173  inline PutBucketLoggingRequest& WithContentMD5(const char* value) { SetContentMD5(value); return *this;}
174 
175 
181  inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
182 
188  inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
189 
195  inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
196 
202  inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
203 
209  inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
210 
216  inline PutBucketLoggingRequest& WithExpectedBucketOwner(const Aws::String& value) { SetExpectedBucketOwner(value); return *this;}
217 
223  inline PutBucketLoggingRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
224 
230  inline PutBucketLoggingRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
231 
232 
233 
234  inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
235 
236 
237  inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
238 
239 
240  inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
241 
242 
243  inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
244 
245 
246  inline PutBucketLoggingRequest& WithCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { SetCustomizedAccessLogTag(value); return *this;}
247 
248 
249  inline PutBucketLoggingRequest& WithCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { SetCustomizedAccessLogTag(std::move(value)); return *this;}
250 
251 
252  inline PutBucketLoggingRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
253 
254 
255  inline PutBucketLoggingRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
256 
257 
258  inline PutBucketLoggingRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
259 
260 
261  inline PutBucketLoggingRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
262 
263 
264  inline PutBucketLoggingRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
265 
266 
267  inline PutBucketLoggingRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
268 
269 
270  inline PutBucketLoggingRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
271 
272  private:
273 
274  Aws::String m_bucket;
275  bool m_bucketHasBeenSet;
276 
277  BucketLoggingStatus m_bucketLoggingStatus;
278  bool m_bucketLoggingStatusHasBeenSet;
279 
280  Aws::String m_contentMD5;
281  bool m_contentMD5HasBeenSet;
282 
283  Aws::String m_expectedBucketOwner;
284  bool m_expectedBucketOwnerHasBeenSet;
285 
286  Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
287  bool m_customizedAccessLogTagHasBeenSet;
288  };
289 
290 } // namespace Model
291 } // namespace S3Crt
292 } // namespace Aws
Aws::S3Crt::Model::BucketLoggingStatus
Definition: BucketLoggingStatus.h:31
BucketLoggingStatus.h
Aws::S3Crt::Model::PutBucketLoggingRequest::ShouldComputeContentMd5
bool ShouldComputeContentMd5() const override
Definition: PutBucketLoggingRequest.h:44
Aws::S3Crt::Model::PutBucketLoggingRequest::GetContentMD5
const Aws::String & GetContentMD5() const
Definition: PutBucketLoggingRequest.h:124
Aws::S3Crt::Model::PutBucketLoggingRequest::CustomizedAccessLogTagHasBeenSet
bool CustomizedAccessLogTagHasBeenSet() const
Definition: PutBucketLoggingRequest.h:237
Aws::S3Crt::Model::PutBucketLoggingRequest::SetBucket
void SetBucket(Aws::String &&value)
Definition: PutBucketLoggingRequest.h:65
Aws::S3Crt::Model::PutBucketLoggingRequest::AddCustomizedAccessLogTag
PutBucketLoggingRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
Definition: PutBucketLoggingRequest.h:255
Aws::Http::URI
Definition: URI.h:32
Aws::S3Crt::Model::PutBucketLoggingRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(const char *value)
Definition: PutBucketLoggingRequest.h:209
Aws::S3Crt::Model::PutBucketLoggingRequest
Definition: PutBucketLoggingRequest.h:28
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::S3Crt::Model::PutBucketLoggingRequest::WithBucketLoggingStatus
PutBucketLoggingRequest & WithBucketLoggingStatus(const BucketLoggingStatus &value)
Definition: PutBucketLoggingRequest.h:111
Aws::S3Crt::Model::PutBucketLoggingRequest::ContentMD5HasBeenSet
bool ContentMD5HasBeenSet() const
Definition: PutBucketLoggingRequest.h:131
Aws::S3Crt::Model::PutBucketLoggingRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(const Aws::String &value)
Definition: PutBucketLoggingRequest.h:195
Aws::S3Crt::Model::PutBucketLoggingRequest::SetContentMD5
void SetContentMD5(const char *value)
Definition: PutBucketLoggingRequest.h:152
Aws::S3Crt::Model::PutBucketLoggingRequest::ExpectedBucketOwnerHasBeenSet
bool ExpectedBucketOwnerHasBeenSet() const
Definition: PutBucketLoggingRequest.h:188
Aws::S3Crt::Model::PutBucketLoggingRequest::AddCustomizedAccessLogTag
PutBucketLoggingRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
Definition: PutBucketLoggingRequest.h:264
Aws::S3Crt::Model::PutBucketLoggingRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::S3Crt::Model::PutBucketLoggingRequest::BucketHasBeenSet
bool BucketHasBeenSet() const
Definition: PutBucketLoggingRequest.h:55
Aws::S3Crt::Model::PutBucketLoggingRequest::SetBucket
void SetBucket(const char *value)
Definition: PutBucketLoggingRequest.h:70
Aws::S3Crt::Model::PutBucketLoggingRequest::SetBucket
void SetBucket(const Aws::String &value)
Definition: PutBucketLoggingRequest.h:60
S3CrtRequest.h
Aws::S3Crt::Model::PutBucketLoggingRequest::AddCustomizedAccessLogTag
PutBucketLoggingRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
Definition: PutBucketLoggingRequest.h:267
AWS_S3CRT_API
#define AWS_S3CRT_API
Definition: S3Crt_EXPORTS.h:28
Aws::S3Crt::Model::PutBucketLoggingRequest::GetBucket
const Aws::String & GetBucket() const
Definition: PutBucketLoggingRequest.h:50
Aws::S3Crt::Model::PutBucketLoggingRequest::WithCustomizedAccessLogTag
PutBucketLoggingRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
Definition: PutBucketLoggingRequest.h:246
Aws::S3Crt::Model::PutBucketLoggingRequest::GetExpectedBucketOwner
const Aws::String & GetExpectedBucketOwner() const
Definition: PutBucketLoggingRequest.h:181
Aws::S3Crt::Model::PutBucketLoggingRequest::WithContentMD5
PutBucketLoggingRequest & WithContentMD5(const Aws::String &value)
Definition: PutBucketLoggingRequest.h:159
Aws::S3Crt::Model::PutBucketLoggingRequest::AddCustomizedAccessLogTag
PutBucketLoggingRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
Definition: PutBucketLoggingRequest.h:252
Aws::S3Crt::Model::PutBucketLoggingRequest::SetBucketLoggingStatus
void SetBucketLoggingStatus(BucketLoggingStatus &&value)
Definition: PutBucketLoggingRequest.h:106
AWSString.h
Aws::S3Crt::S3CrtRequest
Definition: S3CrtRequest.h:18
Aws::S3Crt::Model::PutBucketLoggingRequest::SetCustomizedAccessLogTag
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
Definition: PutBucketLoggingRequest.h:240
Aws::S3Crt::Model::PutBucketLoggingRequest::WithExpectedBucketOwner
PutBucketLoggingRequest & WithExpectedBucketOwner(const char *value)
Definition: PutBucketLoggingRequest.h:230
Aws::S3Crt::Model::PutBucketLoggingRequest::AddCustomizedAccessLogTag
PutBucketLoggingRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
Definition: PutBucketLoggingRequest.h:261
Aws::S3Crt::Model::PutBucketLoggingRequest::WithContentMD5
PutBucketLoggingRequest & WithContentMD5(Aws::String &&value)
Definition: PutBucketLoggingRequest.h:166
Aws::S3Crt::Model::PutBucketLoggingRequest::SetContentMD5
void SetContentMD5(const Aws::String &value)
Definition: PutBucketLoggingRequest.h:138
Aws::S3Crt::Model::PutBucketLoggingRequest::BucketLoggingStatusHasBeenSet
bool BucketLoggingStatusHasBeenSet() const
Definition: PutBucketLoggingRequest.h:96
Aws::S3Crt::Model::PutBucketLoggingRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(Aws::String &&value)
Definition: PutBucketLoggingRequest.h:202
Aws::S3Crt::Model::PutBucketLoggingRequest::PutBucketLoggingRequest
PutBucketLoggingRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::S3Crt::Model::PutBucketLoggingRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::S3Crt::Model::PutBucketLoggingRequest::GetBucketLoggingStatus
const BucketLoggingStatus & GetBucketLoggingStatus() const
Definition: PutBucketLoggingRequest.h:91
Aws::S3Crt::Model::PutBucketLoggingRequest::SetBucketLoggingStatus
void SetBucketLoggingStatus(const BucketLoggingStatus &value)
Definition: PutBucketLoggingRequest.h:101
Aws::S3Crt::Model::PutBucketLoggingRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::S3Crt::Model::PutBucketLoggingRequest::SetCustomizedAccessLogTag
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
Definition: PutBucketLoggingRequest.h:243
Aws::S3Crt::Model::PutBucketLoggingRequest::WithExpectedBucketOwner
PutBucketLoggingRequest & WithExpectedBucketOwner(const Aws::String &value)
Definition: PutBucketLoggingRequest.h:216
Aws::S3Crt::Model::PutBucketLoggingRequest::SetContentMD5
void SetContentMD5(Aws::String &&value)
Definition: PutBucketLoggingRequest.h:145
Aws::S3Crt::Model::PutBucketLoggingRequest::WithCustomizedAccessLogTag
PutBucketLoggingRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
Definition: PutBucketLoggingRequest.h:249
Aws::S3Crt::Model::PutBucketLoggingRequest::WithBucket
PutBucketLoggingRequest & WithBucket(const char *value)
Definition: PutBucketLoggingRequest.h:85
Aws::S3Crt::Model::PutBucketLoggingRequest::WithBucket
PutBucketLoggingRequest & WithBucket(const Aws::String &value)
Definition: PutBucketLoggingRequest.h:75
AWSMap.h
Aws::S3Crt::Model::PutBucketLoggingRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutBucketLoggingRequest.h:36
Aws::S3Crt::Model::PutBucketLoggingRequest::AddCustomizedAccessLogTag
PutBucketLoggingRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
Definition: PutBucketLoggingRequest.h:258
Aws::S3Crt::Model::PutBucketLoggingRequest::WithBucket
PutBucketLoggingRequest & WithBucket(Aws::String &&value)
Definition: PutBucketLoggingRequest.h:80
Aws::S3Crt::Model::PutBucketLoggingRequest::WithBucketLoggingStatus
PutBucketLoggingRequest & WithBucketLoggingStatus(BucketLoggingStatus &&value)
Definition: PutBucketLoggingRequest.h:116
Aws::S3Crt::Model::PutBucketLoggingRequest::GetCustomizedAccessLogTag
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
Definition: PutBucketLoggingRequest.h:234
S3Crt_EXPORTS.h
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::S3Crt::Model::PutBucketLoggingRequest::AddCustomizedAccessLogTag
PutBucketLoggingRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
Definition: PutBucketLoggingRequest.h:270
Aws::S3Crt::Model::PutBucketLoggingRequest::WithContentMD5
PutBucketLoggingRequest & WithContentMD5(const char *value)
Definition: PutBucketLoggingRequest.h:173
Aws::S3Crt::Model::PutBucketLoggingRequest::WithExpectedBucketOwner
PutBucketLoggingRequest & WithExpectedBucketOwner(Aws::String &&value)
Definition: PutBucketLoggingRequest.h:223