AWS SDK for C++  1.9.125
AWS SDK for C++
PutBucketCorsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Http
17 {
18  class URI;
19 } //namespace Http
20 namespace S3Crt
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 "PutBucketCors"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41 
43 
44  inline bool ShouldComputeContentMd5() const override { return true; }
45 
46 
50  inline const Aws::String& GetBucket() const{ return m_bucket; }
51 
55  inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
56 
60  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
61 
65  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
66 
70  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
71 
75  inline PutBucketCorsRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
76 
80  inline PutBucketCorsRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
81 
85  inline PutBucketCorsRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
86 
87 
94  inline const CORSConfiguration& GetCORSConfiguration() const{ return m_cORSConfiguration; }
95 
102  inline bool CORSConfigurationHasBeenSet() const { return m_cORSConfigurationHasBeenSet; }
103 
110  inline void SetCORSConfiguration(const CORSConfiguration& value) { m_cORSConfigurationHasBeenSet = true; m_cORSConfiguration = value; }
111 
118  inline void SetCORSConfiguration(CORSConfiguration&& value) { m_cORSConfigurationHasBeenSet = true; m_cORSConfiguration = std::move(value); }
119 
126  inline PutBucketCorsRequest& WithCORSConfiguration(const CORSConfiguration& value) { SetCORSConfiguration(value); return *this;}
127 
134  inline PutBucketCorsRequest& WithCORSConfiguration(CORSConfiguration&& value) { SetCORSConfiguration(std::move(value)); return *this;}
135 
136 
145  inline const Aws::String& GetContentMD5() const{ return m_contentMD5; }
146 
155  inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
156 
165  inline void SetContentMD5(const Aws::String& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = value; }
166 
175  inline void SetContentMD5(Aws::String&& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = std::move(value); }
176 
185  inline void SetContentMD5(const char* value) { m_contentMD5HasBeenSet = true; m_contentMD5.assign(value); }
186 
195  inline PutBucketCorsRequest& WithContentMD5(const Aws::String& value) { SetContentMD5(value); return *this;}
196 
205  inline PutBucketCorsRequest& WithContentMD5(Aws::String&& value) { SetContentMD5(std::move(value)); return *this;}
206 
215  inline PutBucketCorsRequest& WithContentMD5(const char* value) { SetContentMD5(value); return *this;}
216 
217 
223  inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
224 
230  inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
231 
237  inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
238 
244  inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
245 
251  inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
252 
258  inline PutBucketCorsRequest& WithExpectedBucketOwner(const Aws::String& value) { SetExpectedBucketOwner(value); return *this;}
259 
265  inline PutBucketCorsRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
266 
272  inline PutBucketCorsRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
273 
274 
275 
276  inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
277 
278 
279  inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
280 
281 
282  inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
283 
284 
285  inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
286 
287 
288  inline PutBucketCorsRequest& WithCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { SetCustomizedAccessLogTag(value); return *this;}
289 
290 
291  inline PutBucketCorsRequest& WithCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { SetCustomizedAccessLogTag(std::move(value)); return *this;}
292 
293 
294  inline PutBucketCorsRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
295 
296 
297  inline PutBucketCorsRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
298 
299 
300  inline PutBucketCorsRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
301 
302 
303  inline PutBucketCorsRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
304 
305 
306  inline PutBucketCorsRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
307 
308 
309  inline PutBucketCorsRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
310 
311 
312  inline PutBucketCorsRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
313 
314  private:
315 
316  Aws::String m_bucket;
317  bool m_bucketHasBeenSet;
318 
319  CORSConfiguration m_cORSConfiguration;
320  bool m_cORSConfigurationHasBeenSet;
321 
322  Aws::String m_contentMD5;
323  bool m_contentMD5HasBeenSet;
324 
325  Aws::String m_expectedBucketOwner;
326  bool m_expectedBucketOwnerHasBeenSet;
327 
328  Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
329  bool m_customizedAccessLogTagHasBeenSet;
330  };
331 
332 } // namespace Model
333 } // namespace S3Crt
334 } // namespace Aws
Aws::S3Crt::Model::PutBucketCorsRequest::GetCustomizedAccessLogTag
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
Definition: PutBucketCorsRequest.h:276
Aws::S3Crt::Model::PutBucketCorsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutBucketCorsRequest.h:36
Aws::S3Crt::Model::PutBucketCorsRequest::GetCORSConfiguration
const CORSConfiguration & GetCORSConfiguration() const
Definition: PutBucketCorsRequest.h:94
Aws::Http::URI
Definition: URI.h:32
Aws::S3Crt::Model::PutBucketCorsRequest::WithCORSConfiguration
PutBucketCorsRequest & WithCORSConfiguration(const CORSConfiguration &value)
Definition: PutBucketCorsRequest.h:126
Aws::S3Crt::Model::PutBucketCorsRequest::SetCustomizedAccessLogTag
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
Definition: PutBucketCorsRequest.h:285
Aws::S3Crt::Model::PutBucketCorsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::S3Crt::Model::PutBucketCorsRequest::SetBucket
void SetBucket(const char *value)
Definition: PutBucketCorsRequest.h:70
Aws::S3Crt::Model::PutBucketCorsRequest::ContentMD5HasBeenSet
bool ContentMD5HasBeenSet() const
Definition: PutBucketCorsRequest.h:155
Aws::S3Crt::Model::PutBucketCorsRequest::CustomizedAccessLogTagHasBeenSet
bool CustomizedAccessLogTagHasBeenSet() const
Definition: PutBucketCorsRequest.h:279
Aws::S3Crt::Model::PutBucketCorsRequest::AddCustomizedAccessLogTag
PutBucketCorsRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
Definition: PutBucketCorsRequest.h:306
Aws::S3Crt::Model::PutBucketCorsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::S3Crt::Model::PutBucketCorsRequest::AddCustomizedAccessLogTag
PutBucketCorsRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
Definition: PutBucketCorsRequest.h:300
Aws::S3Crt::Model::PutBucketCorsRequest::AddCustomizedAccessLogTag
PutBucketCorsRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
Definition: PutBucketCorsRequest.h:309
Aws::S3Crt::Model::PutBucketCorsRequest::WithBucket
PutBucketCorsRequest & WithBucket(Aws::String &&value)
Definition: PutBucketCorsRequest.h:80
Aws::S3Crt::Model::PutBucketCorsRequest
Definition: PutBucketCorsRequest.h:28
Aws::S3Crt::Model::PutBucketCorsRequest::WithBucket
PutBucketCorsRequest & WithBucket(const Aws::String &value)
Definition: PutBucketCorsRequest.h:75
Aws::S3Crt::Model::PutBucketCorsRequest::SetCORSConfiguration
void SetCORSConfiguration(const CORSConfiguration &value)
Definition: PutBucketCorsRequest.h:110
Aws::S3Crt::Model::PutBucketCorsRequest::SetCORSConfiguration
void SetCORSConfiguration(CORSConfiguration &&value)
Definition: PutBucketCorsRequest.h:118
Aws::S3Crt::Model::PutBucketCorsRequest::SetBucket
void SetBucket(Aws::String &&value)
Definition: PutBucketCorsRequest.h:65
Aws::S3Crt::Model::PutBucketCorsRequest::WithContentMD5
PutBucketCorsRequest & WithContentMD5(Aws::String &&value)
Definition: PutBucketCorsRequest.h:205
Aws::S3Crt::Model::PutBucketCorsRequest::WithExpectedBucketOwner
PutBucketCorsRequest & WithExpectedBucketOwner(Aws::String &&value)
Definition: PutBucketCorsRequest.h:265
Aws::S3Crt::Model::PutBucketCorsRequest::WithCustomizedAccessLogTag
PutBucketCorsRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
Definition: PutBucketCorsRequest.h:288
Aws::S3Crt::Model::PutBucketCorsRequest::WithBucket
PutBucketCorsRequest & WithBucket(const char *value)
Definition: PutBucketCorsRequest.h:85
S3CrtRequest.h
Aws::S3Crt::Model::PutBucketCorsRequest::WithExpectedBucketOwner
PutBucketCorsRequest & WithExpectedBucketOwner(const Aws::String &value)
Definition: PutBucketCorsRequest.h:258
Aws::S3Crt::Model::PutBucketCorsRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(const Aws::String &value)
Definition: PutBucketCorsRequest.h:237
AWS_S3CRT_API
#define AWS_S3CRT_API
Definition: S3Crt_EXPORTS.h:28
Aws::S3Crt::Model::PutBucketCorsRequest::AddCustomizedAccessLogTag
PutBucketCorsRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
Definition: PutBucketCorsRequest.h:303
Aws::S3Crt::Model::PutBucketCorsRequest::CORSConfigurationHasBeenSet
bool CORSConfigurationHasBeenSet() const
Definition: PutBucketCorsRequest.h:102
Aws::S3Crt::Model::PutBucketCorsRequest::AddCustomizedAccessLogTag
PutBucketCorsRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
Definition: PutBucketCorsRequest.h:294
Aws::S3Crt::Model::PutBucketCorsRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(Aws::String &&value)
Definition: PutBucketCorsRequest.h:244
Aws::S3Crt::Model::PutBucketCorsRequest::WithCustomizedAccessLogTag
PutBucketCorsRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
Definition: PutBucketCorsRequest.h:291
Aws::S3Crt::Model::PutBucketCorsRequest::WithCORSConfiguration
PutBucketCorsRequest & WithCORSConfiguration(CORSConfiguration &&value)
Definition: PutBucketCorsRequest.h:134
AWSString.h
Aws::S3Crt::S3CrtRequest
Definition: S3CrtRequest.h:18
Aws::S3Crt::Model::PutBucketCorsRequest::SetContentMD5
void SetContentMD5(Aws::String &&value)
Definition: PutBucketCorsRequest.h:175
Aws::S3Crt::Model::PutBucketCorsRequest::AddCustomizedAccessLogTag
PutBucketCorsRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
Definition: PutBucketCorsRequest.h:297
Aws::S3Crt::Model::PutBucketCorsRequest::ShouldComputeContentMd5
bool ShouldComputeContentMd5() const override
Definition: PutBucketCorsRequest.h:44
Aws::S3Crt::Model::PutBucketCorsRequest::WithContentMD5
PutBucketCorsRequest & WithContentMD5(const char *value)
Definition: PutBucketCorsRequest.h:215
Aws::S3Crt::Model::PutBucketCorsRequest::ExpectedBucketOwnerHasBeenSet
bool ExpectedBucketOwnerHasBeenSet() const
Definition: PutBucketCorsRequest.h:230
Aws::S3Crt::Model::PutBucketCorsRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(const char *value)
Definition: PutBucketCorsRequest.h:251
CORSConfiguration.h
Aws::S3Crt::Model::PutBucketCorsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::S3Crt::Model::PutBucketCorsRequest::SetContentMD5
void SetContentMD5(const Aws::String &value)
Definition: PutBucketCorsRequest.h:165
Aws::S3Crt::Model::PutBucketCorsRequest::BucketHasBeenSet
bool BucketHasBeenSet() const
Definition: PutBucketCorsRequest.h:55
Aws
Definition: AccessManagementClient.h:15
Aws::S3Crt::Model::PutBucketCorsRequest::GetContentMD5
const Aws::String & GetContentMD5() const
Definition: PutBucketCorsRequest.h:145
Aws::S3Crt::Model::PutBucketCorsRequest::GetExpectedBucketOwner
const Aws::String & GetExpectedBucketOwner() const
Definition: PutBucketCorsRequest.h:223
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::S3Crt::Model::PutBucketCorsRequest::WithExpectedBucketOwner
PutBucketCorsRequest & WithExpectedBucketOwner(const char *value)
Definition: PutBucketCorsRequest.h:272
Aws::S3Crt::Model::PutBucketCorsRequest::PutBucketCorsRequest
PutBucketCorsRequest()
Aws::S3Crt::Model::PutBucketCorsRequest::WithContentMD5
PutBucketCorsRequest & WithContentMD5(const Aws::String &value)
Definition: PutBucketCorsRequest.h:195
Aws::S3Crt::Model::PutBucketCorsRequest::SetCustomizedAccessLogTag
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
Definition: PutBucketCorsRequest.h:282
Aws::S3Crt::Model::CORSConfiguration
Definition: CORSConfiguration.h:36
Aws::S3Crt::Model::PutBucketCorsRequest::SetBucket
void SetBucket(const Aws::String &value)
Definition: PutBucketCorsRequest.h:60
Aws::S3Crt::Model::PutBucketCorsRequest::GetBucket
const Aws::String & GetBucket() const
Definition: PutBucketCorsRequest.h:50
AWSMap.h
Aws::S3Crt::Model::PutBucketCorsRequest::AddCustomizedAccessLogTag
PutBucketCorsRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
Definition: PutBucketCorsRequest.h:312
S3Crt_EXPORTS.h
Aws::S3Crt::Model::PutBucketCorsRequest::SetContentMD5
void SetContentMD5(const char *value)
Definition: PutBucketCorsRequest.h:185
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19