AWS SDK for C++  1.9.109
AWS SDK for C++
PutBucketAccelerateConfigurationRequest.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 "PutBucketAccelerateConfiguration"; }
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 PutBucketAccelerateConfigurationRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
74 
78  inline PutBucketAccelerateConfigurationRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
79 
83  inline PutBucketAccelerateConfigurationRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
84 
85 
89  inline const AccelerateConfiguration& GetAccelerateConfiguration() const{ return m_accelerateConfiguration; }
90 
94  inline bool AccelerateConfigurationHasBeenSet() const { return m_accelerateConfigurationHasBeenSet; }
95 
99  inline void SetAccelerateConfiguration(const AccelerateConfiguration& value) { m_accelerateConfigurationHasBeenSet = true; m_accelerateConfiguration = value; }
100 
104  inline void SetAccelerateConfiguration(AccelerateConfiguration&& value) { m_accelerateConfigurationHasBeenSet = true; m_accelerateConfiguration = std::move(value); }
105 
109  inline PutBucketAccelerateConfigurationRequest& WithAccelerateConfiguration(const AccelerateConfiguration& value) { SetAccelerateConfiguration(value); return *this;}
110 
114  inline PutBucketAccelerateConfigurationRequest& WithAccelerateConfiguration(AccelerateConfiguration&& value) { SetAccelerateConfiguration(std::move(value)); return *this;}
115 
116 
122  inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
123 
129  inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
130 
136  inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
137 
143  inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
144 
150  inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
151 
157  inline PutBucketAccelerateConfigurationRequest& WithExpectedBucketOwner(const Aws::String& value) { SetExpectedBucketOwner(value); return *this;}
158 
164  inline PutBucketAccelerateConfigurationRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
165 
171  inline PutBucketAccelerateConfigurationRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
172 
173 
174 
175  inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
176 
177 
178  inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
179 
180 
181  inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
182 
183 
184  inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
185 
186 
187  inline PutBucketAccelerateConfigurationRequest& WithCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { SetCustomizedAccessLogTag(value); return *this;}
188 
189 
190  inline PutBucketAccelerateConfigurationRequest& WithCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { SetCustomizedAccessLogTag(std::move(value)); return *this;}
191 
192 
193  inline PutBucketAccelerateConfigurationRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
194 
195 
196  inline PutBucketAccelerateConfigurationRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
197 
198 
199  inline PutBucketAccelerateConfigurationRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
200 
201 
202  inline PutBucketAccelerateConfigurationRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
203 
204 
205  inline PutBucketAccelerateConfigurationRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
206 
207 
208  inline PutBucketAccelerateConfigurationRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
209 
210 
211  inline PutBucketAccelerateConfigurationRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
212 
213  private:
214 
215  Aws::String m_bucket;
216  bool m_bucketHasBeenSet;
217 
218  AccelerateConfiguration m_accelerateConfiguration;
219  bool m_accelerateConfigurationHasBeenSet;
220 
221  Aws::String m_expectedBucketOwner;
222  bool m_expectedBucketOwnerHasBeenSet;
223 
224  Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
225  bool m_customizedAccessLogTagHasBeenSet;
226  };
227 
228 } // namespace Model
229 } // namespace S3
230 } // namespace Aws
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::WithCustomizedAccessLogTag
PutBucketAccelerateConfigurationRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
Definition: PutBucketAccelerateConfigurationRequest.h:187
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutBucketAccelerateConfigurationRequest.h:36
Aws::Http::URI
Definition: URI.h:32
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::BucketHasBeenSet
bool BucketHasBeenSet() const
Definition: PutBucketAccelerateConfigurationRequest.h:53
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(Aws::String &&value)
Definition: PutBucketAccelerateConfigurationRequest.h:143
S3Request.h
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::GetCustomizedAccessLogTag
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
Definition: PutBucketAccelerateConfigurationRequest.h:175
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::GetBucket
const Aws::String & GetBucket() const
Definition: PutBucketAccelerateConfigurationRequest.h:48
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(const char *value)
Definition: PutBucketAccelerateConfigurationRequest.h:150
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::ExpectedBucketOwnerHasBeenSet
bool ExpectedBucketOwnerHasBeenSet() const
Definition: PutBucketAccelerateConfigurationRequest.h:129
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::AddCustomizedAccessLogTag
PutBucketAccelerateConfigurationRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
Definition: PutBucketAccelerateConfigurationRequest.h:208
S3_EXPORTS.h
AWS_S3_API
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::GetAccelerateConfiguration
const AccelerateConfiguration & GetAccelerateConfiguration() const
Definition: PutBucketAccelerateConfigurationRequest.h:89
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::SetAccelerateConfiguration
void SetAccelerateConfiguration(const AccelerateConfiguration &value)
Definition: PutBucketAccelerateConfigurationRequest.h:99
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::AddCustomizedAccessLogTag
PutBucketAccelerateConfigurationRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
Definition: PutBucketAccelerateConfigurationRequest.h:199
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::CustomizedAccessLogTagHasBeenSet
bool CustomizedAccessLogTagHasBeenSet() const
Definition: PutBucketAccelerateConfigurationRequest.h:178
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::WithBucket
PutBucketAccelerateConfigurationRequest & WithBucket(const char *value)
Definition: PutBucketAccelerateConfigurationRequest.h:83
Aws::S3::S3Request
Definition: S3Request.h:18
Aws::S3::Model::AccelerateConfiguration
Definition: AccelerateConfiguration.h:35
Aws::S3::Model::PutBucketAccelerateConfigurationRequest
Definition: PutBucketAccelerateConfigurationRequest.h:28
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::WithExpectedBucketOwner
PutBucketAccelerateConfigurationRequest & WithExpectedBucketOwner(Aws::String &&value)
Definition: PutBucketAccelerateConfigurationRequest.h:164
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::WithExpectedBucketOwner
PutBucketAccelerateConfigurationRequest & WithExpectedBucketOwner(const Aws::String &value)
Definition: PutBucketAccelerateConfigurationRequest.h:157
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::AddCustomizedAccessLogTag
PutBucketAccelerateConfigurationRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
Definition: PutBucketAccelerateConfigurationRequest.h:205
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::WithAccelerateConfiguration
PutBucketAccelerateConfigurationRequest & WithAccelerateConfiguration(AccelerateConfiguration &&value)
Definition: PutBucketAccelerateConfigurationRequest.h:114
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::WithBucket
PutBucketAccelerateConfigurationRequest & WithBucket(Aws::String &&value)
Definition: PutBucketAccelerateConfigurationRequest.h:78
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::SetCustomizedAccessLogTag
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
Definition: PutBucketAccelerateConfigurationRequest.h:184
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::SetBucket
void SetBucket(const Aws::String &value)
Definition: PutBucketAccelerateConfigurationRequest.h:58
AWSString.h
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::WithAccelerateConfiguration
PutBucketAccelerateConfigurationRequest & WithAccelerateConfiguration(const AccelerateConfiguration &value)
Definition: PutBucketAccelerateConfigurationRequest.h:109
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::WithBucket
PutBucketAccelerateConfigurationRequest & WithBucket(const Aws::String &value)
Definition: PutBucketAccelerateConfigurationRequest.h:73
AccelerateConfiguration.h
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::GetExpectedBucketOwner
const Aws::String & GetExpectedBucketOwner() const
Definition: PutBucketAccelerateConfigurationRequest.h:122
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::AddCustomizedAccessLogTag
PutBucketAccelerateConfigurationRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
Definition: PutBucketAccelerateConfigurationRequest.h:196
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::AddCustomizedAccessLogTag
PutBucketAccelerateConfigurationRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
Definition: PutBucketAccelerateConfigurationRequest.h:202
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::AddCustomizedAccessLogTag
PutBucketAccelerateConfigurationRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
Definition: PutBucketAccelerateConfigurationRequest.h:193
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::AddCustomizedAccessLogTag
PutBucketAccelerateConfigurationRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
Definition: PutBucketAccelerateConfigurationRequest.h:211
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::WithExpectedBucketOwner
PutBucketAccelerateConfigurationRequest & WithExpectedBucketOwner(const char *value)
Definition: PutBucketAccelerateConfigurationRequest.h:171
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::SetAccelerateConfiguration
void SetAccelerateConfiguration(AccelerateConfiguration &&value)
Definition: PutBucketAccelerateConfigurationRequest.h:104
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::WithCustomizedAccessLogTag
PutBucketAccelerateConfigurationRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
Definition: PutBucketAccelerateConfigurationRequest.h:190
Aws
Definition: AccessManagementClient.h:15
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::AccelerateConfigurationHasBeenSet
bool AccelerateConfigurationHasBeenSet() const
Definition: PutBucketAccelerateConfigurationRequest.h:94
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(const Aws::String &value)
Definition: PutBucketAccelerateConfigurationRequest.h:136
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::SetBucket
void SetBucket(const char *value)
Definition: PutBucketAccelerateConfigurationRequest.h:68
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::SetBucket
void SetBucket(Aws::String &&value)
Definition: PutBucketAccelerateConfigurationRequest.h:63
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::SetCustomizedAccessLogTag
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
Definition: PutBucketAccelerateConfigurationRequest.h:181
Aws::S3::Model::PutBucketAccelerateConfigurationRequest::PutBucketAccelerateConfigurationRequest
PutBucketAccelerateConfigurationRequest()
AWSMap.h
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