AWS SDK for C++  1.9.104
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 
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
Aws::S3::Model::PutBucketMetricsConfigurationRequest::WithExpectedBucketOwner
PutBucketMetricsConfigurationRequest & WithExpectedBucketOwner(Aws::String &&value)
Definition: PutBucketMetricsConfigurationRequest.h:205
Aws::S3::Model::PutBucketMetricsConfigurationRequest::WithMetricsConfiguration
PutBucketMetricsConfigurationRequest & WithMetricsConfiguration(MetricsConfiguration &&value)
Definition: PutBucketMetricsConfigurationRequest.h:155
Aws::Http::URI
Definition: URI.h:32
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
S3Request.h
Aws::S3::Model::PutBucketMetricsConfigurationRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(Aws::String &&value)
Definition: PutBucketMetricsConfigurationRequest.h:184
Aws::S3::Model::PutBucketMetricsConfigurationRequest::AddCustomizedAccessLogTag
PutBucketMetricsConfigurationRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
Definition: PutBucketMetricsConfigurationRequest.h:246
Aws::S3::Model::PutBucketMetricsConfigurationRequest::MetricsConfigurationHasBeenSet
bool MetricsConfigurationHasBeenSet() const
Definition: PutBucketMetricsConfigurationRequest.h:135
Aws::S3::Model::PutBucketMetricsConfigurationRequest::ExpectedBucketOwnerHasBeenSet
bool ExpectedBucketOwnerHasBeenSet() const
Definition: PutBucketMetricsConfigurationRequest.h:170
Aws::S3::Model::PutBucketMetricsConfigurationRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(const Aws::String &value)
Definition: PutBucketMetricsConfigurationRequest.h:177
Aws::S3::Model::PutBucketMetricsConfigurationRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::S3::Model::PutBucketMetricsConfigurationRequest::SetMetricsConfiguration
void SetMetricsConfiguration(const MetricsConfiguration &value)
Definition: PutBucketMetricsConfigurationRequest.h:140
Aws::S3::Model::PutBucketMetricsConfigurationRequest::AddCustomizedAccessLogTag
PutBucketMetricsConfigurationRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
Definition: PutBucketMetricsConfigurationRequest.h:249
Aws::S3::Model::PutBucketMetricsConfigurationRequest
Definition: PutBucketMetricsConfigurationRequest.h:28
Aws::S3::Model::PutBucketMetricsConfigurationRequest::SetId
void SetId(const Aws::String &value)
Definition: PutBucketMetricsConfigurationRequest.h:99
Aws::S3::Model::PutBucketMetricsConfigurationRequest::IdHasBeenSet
bool IdHasBeenSet() const
Definition: PutBucketMetricsConfigurationRequest.h:94
Aws::S3::Model::PutBucketMetricsConfigurationRequest::GetExpectedBucketOwner
const Aws::String & GetExpectedBucketOwner() const
Definition: PutBucketMetricsConfigurationRequest.h:163
Aws::S3::Model::PutBucketMetricsConfigurationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutBucketMetricsConfigurationRequest.h:36
Aws::S3::Model::PutBucketMetricsConfigurationRequest::WithExpectedBucketOwner
PutBucketMetricsConfigurationRequest & WithExpectedBucketOwner(const char *value)
Definition: PutBucketMetricsConfigurationRequest.h:212
S3_EXPORTS.h
AWS_S3_API
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
Aws::S3::Model::PutBucketMetricsConfigurationRequest::WithId
PutBucketMetricsConfigurationRequest & WithId(const char *value)
Definition: PutBucketMetricsConfigurationRequest.h:124
Aws::S3::Model::PutBucketMetricsConfigurationRequest::GetId
const Aws::String & GetId() const
Definition: PutBucketMetricsConfigurationRequest.h:89
Aws::S3::S3Request
Definition: S3Request.h:18
Aws::S3::Model::PutBucketMetricsConfigurationRequest::GetMetricsConfiguration
const MetricsConfiguration & GetMetricsConfiguration() const
Definition: PutBucketMetricsConfigurationRequest.h:130
Aws::S3::Model::PutBucketMetricsConfigurationRequest::WithBucket
PutBucketMetricsConfigurationRequest & WithBucket(Aws::String &&value)
Definition: PutBucketMetricsConfigurationRequest.h:78
Aws::S3::Model::PutBucketMetricsConfigurationRequest::PutBucketMetricsConfigurationRequest
PutBucketMetricsConfigurationRequest()
Aws::S3::Model::PutBucketMetricsConfigurationRequest::SetId
void SetId(Aws::String &&value)
Definition: PutBucketMetricsConfigurationRequest.h:104
Aws::S3::Model::PutBucketMetricsConfigurationRequest::AddCustomizedAccessLogTag
PutBucketMetricsConfigurationRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
Definition: PutBucketMetricsConfigurationRequest.h:252
Aws::S3::Model::PutBucketMetricsConfigurationRequest::WithBucket
PutBucketMetricsConfigurationRequest & WithBucket(const char *value)
Definition: PutBucketMetricsConfigurationRequest.h:83
AWSString.h
Aws::S3::Model::PutBucketMetricsConfigurationRequest::WithId
PutBucketMetricsConfigurationRequest & WithId(Aws::String &&value)
Definition: PutBucketMetricsConfigurationRequest.h:119
Aws::S3::Model::PutBucketMetricsConfigurationRequest::GetBucket
const Aws::String & GetBucket() const
Definition: PutBucketMetricsConfigurationRequest.h:48
Aws::S3::Model::PutBucketMetricsConfigurationRequest::AddCustomizedAccessLogTag
PutBucketMetricsConfigurationRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
Definition: PutBucketMetricsConfigurationRequest.h:240
Aws::S3::Model::PutBucketMetricsConfigurationRequest::WithCustomizedAccessLogTag
PutBucketMetricsConfigurationRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
Definition: PutBucketMetricsConfigurationRequest.h:231
Aws::S3::Model::PutBucketMetricsConfigurationRequest::SetCustomizedAccessLogTag
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
Definition: PutBucketMetricsConfigurationRequest.h:222
Aws::S3::Model::PutBucketMetricsConfigurationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::S3::Model::PutBucketMetricsConfigurationRequest::SetId
void SetId(const char *value)
Definition: PutBucketMetricsConfigurationRequest.h:109
Aws::S3::Model::PutBucketMetricsConfigurationRequest::BucketHasBeenSet
bool BucketHasBeenSet() const
Definition: PutBucketMetricsConfigurationRequest.h:53
Aws::S3::Model::PutBucketMetricsConfigurationRequest::WithId
PutBucketMetricsConfigurationRequest & WithId(const Aws::String &value)
Definition: PutBucketMetricsConfigurationRequest.h:114
Aws::S3::Model::PutBucketMetricsConfigurationRequest::SetBucket
void SetBucket(const Aws::String &value)
Definition: PutBucketMetricsConfigurationRequest.h:58
Aws::S3::Model::PutBucketMetricsConfigurationRequest::SetMetricsConfiguration
void SetMetricsConfiguration(MetricsConfiguration &&value)
Definition: PutBucketMetricsConfigurationRequest.h:145
Aws::S3::Model::PutBucketMetricsConfigurationRequest::WithBucket
PutBucketMetricsConfigurationRequest & WithBucket(const Aws::String &value)
Definition: PutBucketMetricsConfigurationRequest.h:73
Aws
Definition: AccessManagementClient.h:15
Aws::S3::Model::PutBucketMetricsConfigurationRequest::WithCustomizedAccessLogTag
PutBucketMetricsConfigurationRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
Definition: PutBucketMetricsConfigurationRequest.h:228
Aws::S3::Model::PutBucketMetricsConfigurationRequest::GetCustomizedAccessLogTag
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
Definition: PutBucketMetricsConfigurationRequest.h:216
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::S3::Model::PutBucketMetricsConfigurationRequest::AddCustomizedAccessLogTag
PutBucketMetricsConfigurationRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
Definition: PutBucketMetricsConfigurationRequest.h:237
Aws::S3::Model::PutBucketMetricsConfigurationRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(const char *value)
Definition: PutBucketMetricsConfigurationRequest.h:191
Aws::S3::Model::PutBucketMetricsConfigurationRequest::AddCustomizedAccessLogTag
PutBucketMetricsConfigurationRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
Definition: PutBucketMetricsConfigurationRequest.h:234
Aws::S3::Model::PutBucketMetricsConfigurationRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::S3::Model::PutBucketMetricsConfigurationRequest::CustomizedAccessLogTagHasBeenSet
bool CustomizedAccessLogTagHasBeenSet() const
Definition: PutBucketMetricsConfigurationRequest.h:219
Aws::S3::Model::PutBucketMetricsConfigurationRequest::SetBucket
void SetBucket(Aws::String &&value)
Definition: PutBucketMetricsConfigurationRequest.h:63
AWSMap.h
Aws::S3::Model::MetricsConfiguration
Definition: MetricsConfiguration.h:38
Aws::S3::ARNService::S3
static const char S3[]
Definition: S3ARN.h:25
Aws::S3::Model::PutBucketMetricsConfigurationRequest::SetCustomizedAccessLogTag
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
Definition: PutBucketMetricsConfigurationRequest.h:225
Aws::S3::Model::PutBucketMetricsConfigurationRequest::AddCustomizedAccessLogTag
PutBucketMetricsConfigurationRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
Definition: PutBucketMetricsConfigurationRequest.h:243
MetricsConfiguration.h
Aws::S3::Model::PutBucketMetricsConfigurationRequest::WithMetricsConfiguration
PutBucketMetricsConfigurationRequest & WithMetricsConfiguration(const MetricsConfiguration &value)
Definition: PutBucketMetricsConfigurationRequest.h:150
Aws::S3::Model::PutBucketMetricsConfigurationRequest::WithExpectedBucketOwner
PutBucketMetricsConfigurationRequest & WithExpectedBucketOwner(const Aws::String &value)
Definition: PutBucketMetricsConfigurationRequest.h:198
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::S3::Model::PutBucketMetricsConfigurationRequest::SetBucket
void SetBucket(const char *value)
Definition: PutBucketMetricsConfigurationRequest.h:68