AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
PutBucketLoggingRequest.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 "PutBucketLogging"; }
38
40
42
44
46
51
55 inline const Aws::String& GetBucket() const{ return m_bucket; }
56
60 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
61
65 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
66
70 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
71
75 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
76
80 inline PutBucketLoggingRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
81
85 inline PutBucketLoggingRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
86
90 inline PutBucketLoggingRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
91
92
96 inline const BucketLoggingStatus& GetBucketLoggingStatus() const{ return m_bucketLoggingStatus; }
97
101 inline bool BucketLoggingStatusHasBeenSet() const { return m_bucketLoggingStatusHasBeenSet; }
102
106 inline void SetBucketLoggingStatus(const BucketLoggingStatus& value) { m_bucketLoggingStatusHasBeenSet = true; m_bucketLoggingStatus = value; }
107
111 inline void SetBucketLoggingStatus(BucketLoggingStatus&& value) { m_bucketLoggingStatusHasBeenSet = true; m_bucketLoggingStatus = std::move(value); }
112
117
122
123
129 inline const Aws::String& GetContentMD5() const{ return m_contentMD5; }
130
136 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
137
143 inline void SetContentMD5(const Aws::String& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = value; }
144
150 inline void SetContentMD5(Aws::String&& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = std::move(value); }
151
157 inline void SetContentMD5(const char* value) { m_contentMD5HasBeenSet = true; m_contentMD5.assign(value); }
158
164 inline PutBucketLoggingRequest& WithContentMD5(const Aws::String& value) { SetContentMD5(value); return *this;}
165
171 inline PutBucketLoggingRequest& WithContentMD5(Aws::String&& value) { SetContentMD5(std::move(value)); return *this;}
172
178 inline PutBucketLoggingRequest& WithContentMD5(const char* value) { SetContentMD5(value); return *this;}
179
180
193 inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
194
207 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
208
221 inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
222
235 inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); }
236
250
263 inline PutBucketLoggingRequest& WithChecksumAlgorithm(ChecksumAlgorithm&& value) { SetChecksumAlgorithm(std::move(value)); return *this;}
264
265
271 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
272
278 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
279
285 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
286
292 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
293
299 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
300
307
313 inline PutBucketLoggingRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
314
320 inline PutBucketLoggingRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
321
322
323
324 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
325
326
327 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
328
329
330 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
331
332
333 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
334
335
337
338
340
341
342 inline PutBucketLoggingRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
343
344
345 inline PutBucketLoggingRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
346
347
348 inline PutBucketLoggingRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
349
350
351 inline PutBucketLoggingRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
352
353
354 inline PutBucketLoggingRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
355
356
357 inline PutBucketLoggingRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
358
359
360 inline PutBucketLoggingRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
361
362 private:
363
364 Aws::String m_bucket;
365 bool m_bucketHasBeenSet = false;
366
367 BucketLoggingStatus m_bucketLoggingStatus;
368 bool m_bucketLoggingStatusHasBeenSet = false;
369
370 Aws::String m_contentMD5;
371 bool m_contentMD5HasBeenSet = false;
372
373 ChecksumAlgorithm m_checksumAlgorithm;
374 bool m_checksumAlgorithmHasBeenSet = false;
375
376 Aws::String m_expectedBucketOwner;
377 bool m_expectedBucketOwnerHasBeenSet = false;
378
379 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
380 bool m_customizedAccessLogTagHasBeenSet = false;
381 };
382
383} // namespace Model
384} // namespace S3
385} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
PutBucketLoggingRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
PutBucketLoggingRequest & WithExpectedBucketOwner(const char *value)
void SetContentMD5(const Aws::String &value)
PutBucketLoggingRequest & WithBucket(const Aws::String &value)
PutBucketLoggingRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
PutBucketLoggingRequest & WithContentMD5(Aws::String &&value)
PutBucketLoggingRequest & WithContentMD5(const Aws::String &value)
PutBucketLoggingRequest & WithChecksumAlgorithm(ChecksumAlgorithm &&value)
PutBucketLoggingRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
const ChecksumAlgorithm & GetChecksumAlgorithm() const
void SetBucketLoggingStatus(const BucketLoggingStatus &value)
PutBucketLoggingRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
virtual const char * GetServiceRequestName() const override
void SetChecksumAlgorithm(const ChecksumAlgorithm &value)
PutBucketLoggingRequest & WithBucket(Aws::String &&value)
PutBucketLoggingRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
void SetBucket(const Aws::String &value)
PutBucketLoggingRequest & WithBucketLoggingStatus(const BucketLoggingStatus &value)
AWS_S3_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
PutBucketLoggingRequest & WithChecksumAlgorithm(const ChecksumAlgorithm &value)
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutBucketLoggingRequest & WithContentMD5(const char *value)
PutBucketLoggingRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
void SetExpectedBucketOwner(const Aws::String &value)
PutBucketLoggingRequest & WithBucketLoggingStatus(BucketLoggingStatus &&value)
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
void SetBucketLoggingStatus(BucketLoggingStatus &&value)
PutBucketLoggingRequest & WithExpectedBucketOwner(const Aws::String &value)
PutBucketLoggingRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
PutBucketLoggingRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
const BucketLoggingStatus & GetBucketLoggingStatus() const
void SetChecksumAlgorithm(ChecksumAlgorithm &&value)
AWS_S3_API Aws::String GetChecksumAlgorithmName() const override
PutBucketLoggingRequest & WithBucket(const char *value)
PutBucketLoggingRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::String & GetExpectedBucketOwner() const
PutBucketLoggingRequest & WithExpectedBucketOwner(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