AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutBucketLoggingRequest.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/BucketLoggingStatus.h>
11#include <aws/s3/model/ChecksumAlgorithm.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 "PutBucketLogging"; }
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
57 inline const Aws::String& GetBucket() const{ return m_bucket; }
58 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
59 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
60 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
61 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
62 inline PutBucketLoggingRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
63 inline PutBucketLoggingRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
64 inline PutBucketLoggingRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
66
68
71 inline const BucketLoggingStatus& GetBucketLoggingStatus() const{ return m_bucketLoggingStatus; }
72 inline bool BucketLoggingStatusHasBeenSet() const { return m_bucketLoggingStatusHasBeenSet; }
73 inline void SetBucketLoggingStatus(const BucketLoggingStatus& value) { m_bucketLoggingStatusHasBeenSet = true; m_bucketLoggingStatus = value; }
74 inline void SetBucketLoggingStatus(BucketLoggingStatus&& value) { m_bucketLoggingStatusHasBeenSet = true; m_bucketLoggingStatus = std::move(value); }
78
80
85 inline const Aws::String& GetContentMD5() const{ return m_contentMD5; }
86 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
87 inline void SetContentMD5(const Aws::String& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = value; }
88 inline void SetContentMD5(Aws::String&& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = std::move(value); }
89 inline void SetContentMD5(const char* value) { m_contentMD5HasBeenSet = true; m_contentMD5.assign(value); }
90 inline PutBucketLoggingRequest& WithContentMD5(const Aws::String& value) { SetContentMD5(value); return *this;}
91 inline PutBucketLoggingRequest& WithContentMD5(Aws::String&& value) { SetContentMD5(std::move(value)); return *this;}
92 inline PutBucketLoggingRequest& WithContentMD5(const char* value) { SetContentMD5(value); return *this;}
94
96
108 inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
109 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
110 inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
111 inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); }
113 inline PutBucketLoggingRequest& WithChecksumAlgorithm(ChecksumAlgorithm&& value) { SetChecksumAlgorithm(std::move(value)); return *this;}
115
117
122 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
123 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
124 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
125 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
126 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
128 inline PutBucketLoggingRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
129 inline PutBucketLoggingRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
131
133
134 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
135 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
136 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
137 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
140 inline PutBucketLoggingRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
141 inline PutBucketLoggingRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
142 inline PutBucketLoggingRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
143 inline PutBucketLoggingRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
144 inline PutBucketLoggingRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
145 inline PutBucketLoggingRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
146 inline PutBucketLoggingRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
148 private:
149
150 Aws::String m_bucket;
151 bool m_bucketHasBeenSet = false;
152
153 BucketLoggingStatus m_bucketLoggingStatus;
154 bool m_bucketLoggingStatusHasBeenSet = false;
155
156 Aws::String m_contentMD5;
157 bool m_contentMD5HasBeenSet = false;
158
159 ChecksumAlgorithm m_checksumAlgorithm;
160 bool m_checksumAlgorithmHasBeenSet = false;
161
162 Aws::String m_expectedBucketOwner;
163 bool m_expectedBucketOwnerHasBeenSet = false;
164
165 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
166 bool m_customizedAccessLogTagHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace S3
171} // namespace Aws
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
AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) 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)
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)
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_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String