AWS SDK for C++  1.9.109
AWS SDK for C++
PutBucketNotificationConfigurationRequest.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 "PutBucketNotificationConfiguration"; }
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 PutBucketNotificationConfigurationRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
74 
78  inline PutBucketNotificationConfigurationRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
79 
83  inline PutBucketNotificationConfigurationRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
84 
85 
86 
87  inline const NotificationConfiguration& GetNotificationConfiguration() const{ return m_notificationConfiguration; }
88 
89 
90  inline bool NotificationConfigurationHasBeenSet() const { return m_notificationConfigurationHasBeenSet; }
91 
92 
93  inline void SetNotificationConfiguration(const NotificationConfiguration& value) { m_notificationConfigurationHasBeenSet = true; m_notificationConfiguration = value; }
94 
95 
96  inline void SetNotificationConfiguration(NotificationConfiguration&& value) { m_notificationConfigurationHasBeenSet = true; m_notificationConfiguration = std::move(value); }
97 
98 
99  inline PutBucketNotificationConfigurationRequest& WithNotificationConfiguration(const NotificationConfiguration& value) { SetNotificationConfiguration(value); return *this;}
100 
101 
102  inline PutBucketNotificationConfigurationRequest& WithNotificationConfiguration(NotificationConfiguration&& value) { SetNotificationConfiguration(std::move(value)); return *this;}
103 
104 
110  inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
111 
117  inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
118 
124  inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
125 
131  inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
132 
138  inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
139 
145  inline PutBucketNotificationConfigurationRequest& WithExpectedBucketOwner(const Aws::String& value) { SetExpectedBucketOwner(value); return *this;}
146 
152  inline PutBucketNotificationConfigurationRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
153 
159  inline PutBucketNotificationConfigurationRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
160 
161 
162 
163  inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
164 
165 
166  inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
167 
168 
169  inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
170 
171 
172  inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
173 
174 
175  inline PutBucketNotificationConfigurationRequest& WithCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { SetCustomizedAccessLogTag(value); return *this;}
176 
177 
178  inline PutBucketNotificationConfigurationRequest& WithCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { SetCustomizedAccessLogTag(std::move(value)); return *this;}
179 
180 
181  inline PutBucketNotificationConfigurationRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
182 
183 
184  inline PutBucketNotificationConfigurationRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
185 
186 
187  inline PutBucketNotificationConfigurationRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
188 
189 
190  inline PutBucketNotificationConfigurationRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
191 
192 
193  inline PutBucketNotificationConfigurationRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
194 
195 
196  inline PutBucketNotificationConfigurationRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
197 
198 
199  inline PutBucketNotificationConfigurationRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
200 
201  private:
202 
203  Aws::String m_bucket;
204  bool m_bucketHasBeenSet;
205 
206  NotificationConfiguration m_notificationConfiguration;
207  bool m_notificationConfigurationHasBeenSet;
208 
209  Aws::String m_expectedBucketOwner;
210  bool m_expectedBucketOwnerHasBeenSet;
211 
212  Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
213  bool m_customizedAccessLogTagHasBeenSet;
214  };
215 
216 } // namespace Model
217 } // namespace S3
218 } // namespace Aws
Aws::S3::Model::PutBucketNotificationConfigurationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutBucketNotificationConfigurationRequest.h:36
Aws::S3::Model::PutBucketNotificationConfigurationRequest::SetNotificationConfiguration
void SetNotificationConfiguration(const NotificationConfiguration &value)
Definition: PutBucketNotificationConfigurationRequest.h:93
Aws::S3::Model::PutBucketNotificationConfigurationRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(const Aws::String &value)
Definition: PutBucketNotificationConfigurationRequest.h:124
Aws::Http::URI
Definition: URI.h:32
Aws::S3::Model::PutBucketNotificationConfigurationRequest::WithExpectedBucketOwner
PutBucketNotificationConfigurationRequest & WithExpectedBucketOwner(const Aws::String &value)
Definition: PutBucketNotificationConfigurationRequest.h:145
Aws::S3::Model::PutBucketNotificationConfigurationRequest::CustomizedAccessLogTagHasBeenSet
bool CustomizedAccessLogTagHasBeenSet() const
Definition: PutBucketNotificationConfigurationRequest.h:166
Aws::S3::Model::PutBucketNotificationConfigurationRequest::WithNotificationConfiguration
PutBucketNotificationConfigurationRequest & WithNotificationConfiguration(const NotificationConfiguration &value)
Definition: PutBucketNotificationConfigurationRequest.h:99
Aws::S3::Model::PutBucketNotificationConfigurationRequest::WithExpectedBucketOwner
PutBucketNotificationConfigurationRequest & WithExpectedBucketOwner(Aws::String &&value)
Definition: PutBucketNotificationConfigurationRequest.h:152
Aws::S3::Model::PutBucketNotificationConfigurationRequest::SetBucket
void SetBucket(const Aws::String &value)
Definition: PutBucketNotificationConfigurationRequest.h:58
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
S3Request.h
Aws::S3::Model::PutBucketNotificationConfigurationRequest::AddCustomizedAccessLogTag
PutBucketNotificationConfigurationRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
Definition: PutBucketNotificationConfigurationRequest.h:181
Aws::S3::Model::PutBucketNotificationConfigurationRequest::GetExpectedBucketOwner
const Aws::String & GetExpectedBucketOwner() const
Definition: PutBucketNotificationConfigurationRequest.h:110
Aws::S3::Model::PutBucketNotificationConfigurationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::S3::Model::PutBucketNotificationConfigurationRequest::WithExpectedBucketOwner
PutBucketNotificationConfigurationRequest & WithExpectedBucketOwner(const char *value)
Definition: PutBucketNotificationConfigurationRequest.h:159
Aws::S3::Model::PutBucketNotificationConfigurationRequest::AddCustomizedAccessLogTag
PutBucketNotificationConfigurationRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
Definition: PutBucketNotificationConfigurationRequest.h:187
NotificationConfiguration.h
Aws::S3::Model::PutBucketNotificationConfigurationRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::S3::Model::PutBucketNotificationConfigurationRequest::ExpectedBucketOwnerHasBeenSet
bool ExpectedBucketOwnerHasBeenSet() const
Definition: PutBucketNotificationConfigurationRequest.h:117
S3_EXPORTS.h
AWS_S3_API
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
Aws::S3::S3Request
Definition: S3Request.h:18
Aws::S3::Model::PutBucketNotificationConfigurationRequest::WithBucket
PutBucketNotificationConfigurationRequest & WithBucket(const Aws::String &value)
Definition: PutBucketNotificationConfigurationRequest.h:73
Aws::S3::Model::PutBucketNotificationConfigurationRequest::GetBucket
const Aws::String & GetBucket() const
Definition: PutBucketNotificationConfigurationRequest.h:48
Aws::S3::Model::PutBucketNotificationConfigurationRequest::AddCustomizedAccessLogTag
PutBucketNotificationConfigurationRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
Definition: PutBucketNotificationConfigurationRequest.h:190
Aws::S3::Model::PutBucketNotificationConfigurationRequest::PutBucketNotificationConfigurationRequest
PutBucketNotificationConfigurationRequest()
Aws::S3::Model::PutBucketNotificationConfigurationRequest::SetBucket
void SetBucket(Aws::String &&value)
Definition: PutBucketNotificationConfigurationRequest.h:63
Aws::S3::Model::PutBucketNotificationConfigurationRequest::GetNotificationConfiguration
const NotificationConfiguration & GetNotificationConfiguration() const
Definition: PutBucketNotificationConfigurationRequest.h:87
Aws::S3::Model::PutBucketNotificationConfigurationRequest::WithCustomizedAccessLogTag
PutBucketNotificationConfigurationRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
Definition: PutBucketNotificationConfigurationRequest.h:175
Aws::S3::Model::PutBucketNotificationConfigurationRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(Aws::String &&value)
Definition: PutBucketNotificationConfigurationRequest.h:131
Aws::S3::Model::PutBucketNotificationConfigurationRequest::WithCustomizedAccessLogTag
PutBucketNotificationConfigurationRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
Definition: PutBucketNotificationConfigurationRequest.h:178
Aws::S3::Model::PutBucketNotificationConfigurationRequest::WithNotificationConfiguration
PutBucketNotificationConfigurationRequest & WithNotificationConfiguration(NotificationConfiguration &&value)
Definition: PutBucketNotificationConfigurationRequest.h:102
Aws::S3::Model::PutBucketNotificationConfigurationRequest::BucketHasBeenSet
bool BucketHasBeenSet() const
Definition: PutBucketNotificationConfigurationRequest.h:53
AWSString.h
Aws::S3::Model::PutBucketNotificationConfigurationRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(const char *value)
Definition: PutBucketNotificationConfigurationRequest.h:138
Aws::S3::Model::PutBucketNotificationConfigurationRequest::AddCustomizedAccessLogTag
PutBucketNotificationConfigurationRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
Definition: PutBucketNotificationConfigurationRequest.h:199
Aws::S3::Model::PutBucketNotificationConfigurationRequest::GetCustomizedAccessLogTag
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
Definition: PutBucketNotificationConfigurationRequest.h:163
Aws::S3::Model::PutBucketNotificationConfigurationRequest::WithBucket
PutBucketNotificationConfigurationRequest & WithBucket(Aws::String &&value)
Definition: PutBucketNotificationConfigurationRequest.h:78
Aws::S3::Model::PutBucketNotificationConfigurationRequest::AddCustomizedAccessLogTag
PutBucketNotificationConfigurationRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
Definition: PutBucketNotificationConfigurationRequest.h:184
Aws::S3::Model::PutBucketNotificationConfigurationRequest::SetBucket
void SetBucket(const char *value)
Definition: PutBucketNotificationConfigurationRequest.h:68
Aws::S3::Model::PutBucketNotificationConfigurationRequest::SetNotificationConfiguration
void SetNotificationConfiguration(NotificationConfiguration &&value)
Definition: PutBucketNotificationConfigurationRequest.h:96
Aws
Definition: AccessManagementClient.h:15
Aws::S3::Model::PutBucketNotificationConfigurationRequest::SetCustomizedAccessLogTag
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
Definition: PutBucketNotificationConfigurationRequest.h:172
Aws::S3::Model::PutBucketNotificationConfigurationRequest::AddCustomizedAccessLogTag
PutBucketNotificationConfigurationRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
Definition: PutBucketNotificationConfigurationRequest.h:193
Aws::S3::Model::PutBucketNotificationConfigurationRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::S3::Model::PutBucketNotificationConfigurationRequest::SetCustomizedAccessLogTag
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
Definition: PutBucketNotificationConfigurationRequest.h:169
Aws::S3::Model::PutBucketNotificationConfigurationRequest::WithBucket
PutBucketNotificationConfigurationRequest & WithBucket(const char *value)
Definition: PutBucketNotificationConfigurationRequest.h:83
Aws::S3::Model::PutBucketNotificationConfigurationRequest::AddCustomizedAccessLogTag
PutBucketNotificationConfigurationRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
Definition: PutBucketNotificationConfigurationRequest.h:196
Aws::S3::Model::PutBucketNotificationConfigurationRequest
Definition: PutBucketNotificationConfigurationRequest.h:28
AWSMap.h
Aws::S3::Model::NotificationConfiguration
Definition: NotificationConfiguration.h:36
Aws::S3::ARNService::S3
static const char S3[]
Definition: S3ARN.h:25
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::S3::Model::PutBucketNotificationConfigurationRequest::NotificationConfigurationHasBeenSet
bool NotificationConfigurationHasBeenSet() const
Definition: PutBucketNotificationConfigurationRequest.h:90