AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
GetBucketMetricsConfigurationRequest.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>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace S3
20{
21namespace Model
22{
23
27 {
28 public:
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "GetBucketMetricsConfiguration"; }
36
38
40
42
47
51 inline const Aws::String& GetBucket() const{ return m_bucket; }
52
56 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
57
61 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
62
66 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
67
71 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
72
76 inline GetBucketMetricsConfigurationRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
77
81 inline GetBucketMetricsConfigurationRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
82
86 inline GetBucketMetricsConfigurationRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
87
88
92 inline const Aws::String& GetId() const{ return m_id; }
93
97 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
98
102 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
103
107 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
108
112 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
113
117 inline GetBucketMetricsConfigurationRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
118
122 inline GetBucketMetricsConfigurationRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
123
127 inline GetBucketMetricsConfigurationRequest& WithId(const char* value) { SetId(value); return *this;}
128
129
135 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
136
142 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
143
149 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
150
156 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
157
163 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
164
171
178
185
186
187
188 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
189
190
191 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
192
193
194 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
195
196
197 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
198
199
201
202
204
205
206 inline GetBucketMetricsConfigurationRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
207
208
209 inline GetBucketMetricsConfigurationRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
210
211
212 inline GetBucketMetricsConfigurationRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
213
214
215 inline GetBucketMetricsConfigurationRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
216
217
218 inline GetBucketMetricsConfigurationRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
219
220
221 inline GetBucketMetricsConfigurationRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
222
223
224 inline GetBucketMetricsConfigurationRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
225
226 private:
227
228 Aws::String m_bucket;
229 bool m_bucketHasBeenSet = false;
230
231 Aws::String m_id;
232 bool m_idHasBeenSet = false;
233
234 Aws::String m_expectedBucketOwner;
235 bool m_expectedBucketOwnerHasBeenSet = false;
236
237 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
238 bool m_customizedAccessLogTagHasBeenSet = false;
239 };
240
241} // namespace Model
242} // namespace S3
243} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
GetBucketMetricsConfigurationRequest & WithBucket(const char *value)
GetBucketMetricsConfigurationRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
GetBucketMetricsConfigurationRequest & WithExpectedBucketOwner(Aws::String &&value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
GetBucketMetricsConfigurationRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
GetBucketMetricsConfigurationRequest & WithId(const Aws::String &value)
GetBucketMetricsConfigurationRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
GetBucketMetricsConfigurationRequest & WithExpectedBucketOwner(const char *value)
GetBucketMetricsConfigurationRequest & WithExpectedBucketOwner(const Aws::String &value)
AWS_S3_API Aws::String SerializePayload() const override
GetBucketMetricsConfigurationRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetBucketMetricsConfigurationRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
GetBucketMetricsConfigurationRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
GetBucketMetricsConfigurationRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
GetBucketMetricsConfigurationRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
GetBucketMetricsConfigurationRequest & WithBucket(const Aws::String &value)
GetBucketMetricsConfigurationRequest & WithId(const char *value)
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
GetBucketMetricsConfigurationRequest & WithBucket(Aws::String &&value)
GetBucketMetricsConfigurationRequest & WithId(Aws::String &&value)
GetBucketMetricsConfigurationRequest & AddCustomizedAccessLogTag(const char *key, 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