AWS SDK for C++  1.8.55
AWS SDK for C++
PutBucketMetricsConfigurationRequest.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 "PutBucketMetricsConfiguration"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41 
42  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
43 
44 
48  inline const Aws::String& GetBucket() const{ return m_bucket; }
49 
53  inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
54 
58  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
59 
63  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
64 
68  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
69 
73  inline PutBucketMetricsConfigurationRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
74 
78  inline PutBucketMetricsConfigurationRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
79 
83  inline PutBucketMetricsConfigurationRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
84 
85 
89  inline const Aws::String& GetId() const{ return m_id; }
90 
94  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
95 
99  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
100 
104  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
105 
109  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
110 
114  inline PutBucketMetricsConfigurationRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
115 
119  inline PutBucketMetricsConfigurationRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
120 
124  inline PutBucketMetricsConfigurationRequest& WithId(const char* value) { SetId(value); return *this;}
125 
126 
130  inline const MetricsConfiguration& GetMetricsConfiguration() const{ return m_metricsConfiguration; }
131 
135  inline bool MetricsConfigurationHasBeenSet() const { return m_metricsConfigurationHasBeenSet; }
136 
140  inline void SetMetricsConfiguration(const MetricsConfiguration& value) { m_metricsConfigurationHasBeenSet = true; m_metricsConfiguration = value; }
141 
145  inline void SetMetricsConfiguration(MetricsConfiguration&& value) { m_metricsConfigurationHasBeenSet = true; m_metricsConfiguration = std::move(value); }
146 
150  inline PutBucketMetricsConfigurationRequest& WithMetricsConfiguration(const MetricsConfiguration& value) { SetMetricsConfiguration(value); return *this;}
151 
155  inline PutBucketMetricsConfigurationRequest& WithMetricsConfiguration(MetricsConfiguration&& value) { SetMetricsConfiguration(std::move(value)); return *this;}
156 
157 
163  inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
164 
170  inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
171 
177  inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
178 
184  inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
185 
191  inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
192 
198  inline PutBucketMetricsConfigurationRequest& WithExpectedBucketOwner(const Aws::String& value) { SetExpectedBucketOwner(value); return *this;}
199 
205  inline PutBucketMetricsConfigurationRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
206 
212  inline PutBucketMetricsConfigurationRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
213 
214 
215 
216  inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
217 
218 
219  inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
220 
221 
222  inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
223 
224 
225  inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
226 
227 
228  inline PutBucketMetricsConfigurationRequest& WithCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { SetCustomizedAccessLogTag(value); return *this;}
229 
230 
231  inline PutBucketMetricsConfigurationRequest& WithCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { SetCustomizedAccessLogTag(std::move(value)); return *this;}
232 
233 
234  inline PutBucketMetricsConfigurationRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
235 
236 
237  inline PutBucketMetricsConfigurationRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
238 
239 
240  inline PutBucketMetricsConfigurationRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
241 
242 
243  inline PutBucketMetricsConfigurationRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
244 
245 
246  inline PutBucketMetricsConfigurationRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
247 
248 
249  inline PutBucketMetricsConfigurationRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
250 
251 
252  inline PutBucketMetricsConfigurationRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
253 
254  private:
255 
256  Aws::String m_bucket;
257  bool m_bucketHasBeenSet;
258 
259  Aws::String m_id;
260  bool m_idHasBeenSet;
261 
262  MetricsConfiguration m_metricsConfiguration;
263  bool m_metricsConfigurationHasBeenSet;
264 
265  Aws::String m_expectedBucketOwner;
266  bool m_expectedBucketOwnerHasBeenSet;
267 
268  Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
269  bool m_customizedAccessLogTagHasBeenSet;
270  };
271 
272 } // namespace Model
273 } // namespace S3
274 } // namespace Aws
PutBucketMetricsConfigurationRequest & WithId(Aws::String &&value)
PutBucketMetricsConfigurationRequest & WithId(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
PutBucketMetricsConfigurationRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
PutBucketMetricsConfigurationRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
PutBucketMetricsConfigurationRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
PutBucketMetricsConfigurationRequest & WithMetricsConfiguration(MetricsConfiguration &&value)
PutBucketMetricsConfigurationRequest & WithExpectedBucketOwner(const char *value)
PutBucketMetricsConfigurationRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
PutBucketMetricsConfigurationRequest & WithBucket(Aws::String &&value)
PutBucketMetricsConfigurationRequest & WithBucket(const Aws::String &value)
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
PutBucketMetricsConfigurationRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
PutBucketMetricsConfigurationRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
PutBucketMetricsConfigurationRequest & WithId(const Aws::String &value)
PutBucketMetricsConfigurationRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
PutBucketMetricsConfigurationRequest & WithMetricsConfiguration(const MetricsConfiguration &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PutBucketMetricsConfigurationRequest & WithExpectedBucketOwner(const Aws::String &value)
PutBucketMetricsConfigurationRequest & WithBucket(const char *value)
PutBucketMetricsConfigurationRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
PutBucketMetricsConfigurationRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
PutBucketMetricsConfigurationRequest & WithExpectedBucketOwner(Aws::String &&value)