AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
PutBucketAnalyticsConfigurationRequest.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 "PutBucketAnalyticsConfiguration"; }
37
39
41
43
48
52 inline const Aws::String& GetBucket() const{ return m_bucket; }
53
57 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
58
62 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
63
67 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
68
72 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
73
77 inline PutBucketAnalyticsConfigurationRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
78
82 inline PutBucketAnalyticsConfigurationRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
83
87 inline PutBucketAnalyticsConfigurationRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
88
89
93 inline const Aws::String& GetId() const{ return m_id; }
94
98 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
99
103 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
104
108 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
109
113 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
114
118 inline PutBucketAnalyticsConfigurationRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
119
123 inline PutBucketAnalyticsConfigurationRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
124
128 inline PutBucketAnalyticsConfigurationRequest& WithId(const char* value) { SetId(value); return *this;}
129
130
134 inline const AnalyticsConfiguration& GetAnalyticsConfiguration() const{ return m_analyticsConfiguration; }
135
139 inline bool AnalyticsConfigurationHasBeenSet() const { return m_analyticsConfigurationHasBeenSet; }
140
144 inline void SetAnalyticsConfiguration(const AnalyticsConfiguration& value) { m_analyticsConfigurationHasBeenSet = true; m_analyticsConfiguration = value; }
145
149 inline void SetAnalyticsConfiguration(AnalyticsConfiguration&& value) { m_analyticsConfigurationHasBeenSet = true; m_analyticsConfiguration = std::move(value); }
150
155
160
161
167 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
168
174 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
175
181 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
182
188 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
189
195 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
196
203
210
217
218
219
220 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
221
222
223 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
224
225
226 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
227
228
229 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
230
231
233
234
236
237
238 inline PutBucketAnalyticsConfigurationRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
239
240
241 inline PutBucketAnalyticsConfigurationRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
242
243
244 inline PutBucketAnalyticsConfigurationRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
245
246
247 inline PutBucketAnalyticsConfigurationRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
248
249
250 inline PutBucketAnalyticsConfigurationRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
251
252
253 inline PutBucketAnalyticsConfigurationRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
254
255
256 inline PutBucketAnalyticsConfigurationRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
257
258 private:
259
260 Aws::String m_bucket;
261 bool m_bucketHasBeenSet = false;
262
263 Aws::String m_id;
264 bool m_idHasBeenSet = false;
265
266 AnalyticsConfiguration m_analyticsConfiguration;
267 bool m_analyticsConfigurationHasBeenSet = false;
268
269 Aws::String m_expectedBucketOwner;
270 bool m_expectedBucketOwnerHasBeenSet = false;
271
272 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
273 bool m_customizedAccessLogTagHasBeenSet = false;
274 };
275
276} // namespace Model
277} // namespace S3
278} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
PutBucketAnalyticsConfigurationRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
PutBucketAnalyticsConfigurationRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
PutBucketAnalyticsConfigurationRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
PutBucketAnalyticsConfigurationRequest & WithAnalyticsConfiguration(const AnalyticsConfiguration &value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
PutBucketAnalyticsConfigurationRequest & WithId(const char *value)
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
PutBucketAnalyticsConfigurationRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
PutBucketAnalyticsConfigurationRequest & WithId(Aws::String &&value)
PutBucketAnalyticsConfigurationRequest & WithExpectedBucketOwner(const Aws::String &value)
AWS_S3_API Aws::String SerializePayload() const override
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
PutBucketAnalyticsConfigurationRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
PutBucketAnalyticsConfigurationRequest & WithExpectedBucketOwner(Aws::String &&value)
PutBucketAnalyticsConfigurationRequest & WithBucket(const Aws::String &value)
PutBucketAnalyticsConfigurationRequest & WithId(const Aws::String &value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
PutBucketAnalyticsConfigurationRequest & WithBucket(const char *value)
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutBucketAnalyticsConfigurationRequest & WithAnalyticsConfiguration(AnalyticsConfiguration &&value)
PutBucketAnalyticsConfigurationRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
PutBucketAnalyticsConfigurationRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
PutBucketAnalyticsConfigurationRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
PutBucketAnalyticsConfigurationRequest & WithExpectedBucketOwner(const char *value)
PutBucketAnalyticsConfigurationRequest & WithBucket(Aws::String &&value)
PutBucketAnalyticsConfigurationRequest & 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