AWS SDK for C++  1.8.55
AWS SDK for C++
GetBucketAnalyticsConfigurationRequest.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 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace S3
20 {
21 namespace 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 "GetBucketAnalyticsConfiguration"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40 
41  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42 
43 
48  inline const Aws::String& GetBucket() const{ return m_bucket; }
49 
54  inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
55 
60  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
61 
66  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
67 
72  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
73 
78  inline GetBucketAnalyticsConfigurationRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
79 
84  inline GetBucketAnalyticsConfigurationRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
85 
90  inline GetBucketAnalyticsConfigurationRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
91 
92 
96  inline const Aws::String& GetId() const{ return m_id; }
97 
101  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
102 
106  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
107 
111  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
112 
116  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
117 
121  inline GetBucketAnalyticsConfigurationRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
122 
126  inline GetBucketAnalyticsConfigurationRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
127 
131  inline GetBucketAnalyticsConfigurationRequest& WithId(const char* value) { SetId(value); return *this;}
132 
133 
139  inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
140 
146  inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
147 
153  inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
154 
160  inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
161 
167  inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
168 
174  inline GetBucketAnalyticsConfigurationRequest& WithExpectedBucketOwner(const Aws::String& value) { SetExpectedBucketOwner(value); return *this;}
175 
181  inline GetBucketAnalyticsConfigurationRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
182 
188  inline GetBucketAnalyticsConfigurationRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
189 
190 
191 
192  inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
193 
194 
195  inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
196 
197 
198  inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
199 
200 
201  inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
202 
203 
204  inline GetBucketAnalyticsConfigurationRequest& WithCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { SetCustomizedAccessLogTag(value); return *this;}
205 
206 
207  inline GetBucketAnalyticsConfigurationRequest& WithCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { SetCustomizedAccessLogTag(std::move(value)); return *this;}
208 
209 
210  inline GetBucketAnalyticsConfigurationRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
211 
212 
213  inline GetBucketAnalyticsConfigurationRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
214 
215 
216  inline GetBucketAnalyticsConfigurationRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
217 
218 
219  inline GetBucketAnalyticsConfigurationRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
220 
221 
222  inline GetBucketAnalyticsConfigurationRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
223 
224 
225  inline GetBucketAnalyticsConfigurationRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
226 
227 
228  inline GetBucketAnalyticsConfigurationRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
229 
230  private:
231 
232  Aws::String m_bucket;
233  bool m_bucketHasBeenSet;
234 
235  Aws::String m_id;
236  bool m_idHasBeenSet;
237 
238  Aws::String m_expectedBucketOwner;
239  bool m_expectedBucketOwnerHasBeenSet;
240 
241  Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
242  bool m_customizedAccessLogTagHasBeenSet;
243  };
244 
245 } // namespace Model
246 } // namespace S3
247 } // namespace Aws
GetBucketAnalyticsConfigurationRequest & WithExpectedBucketOwner(const Aws::String &value)
GetBucketAnalyticsConfigurationRequest & WithBucket(const Aws::String &value)
GetBucketAnalyticsConfigurationRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
GetBucketAnalyticsConfigurationRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&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
GetBucketAnalyticsConfigurationRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
GetBucketAnalyticsConfigurationRequest & WithId(const char *value)
GetBucketAnalyticsConfigurationRequest & WithBucket(Aws::String &&value)
GetBucketAnalyticsConfigurationRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
GetBucketAnalyticsConfigurationRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
GetBucketAnalyticsConfigurationRequest & WithId(Aws::String &&value)
GetBucketAnalyticsConfigurationRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
GetBucketAnalyticsConfigurationRequest & WithExpectedBucketOwner(const char *value)
GetBucketAnalyticsConfigurationRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetBucketAnalyticsConfigurationRequest & WithExpectedBucketOwner(Aws::String &&value)
GetBucketAnalyticsConfigurationRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
GetBucketAnalyticsConfigurationRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
GetBucketAnalyticsConfigurationRequest & WithBucket(const char *value)
GetBucketAnalyticsConfigurationRequest & WithId(const Aws::String &value)