AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
HeadBucketRequest.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 "HeadBucket"; }
36
38
40
42
47
67 inline const Aws::String& GetBucket() const{ return m_bucket; }
68
88 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
89
109 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
110
130 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
131
151 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
152
172 inline HeadBucketRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
173
193 inline HeadBucketRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
194
214 inline HeadBucketRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
215
216
222 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
223
229 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
230
236 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
237
243 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
244
250 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
251
258
264 inline HeadBucketRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
265
271 inline HeadBucketRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
272
273
274
275 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
276
277
278 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
279
280
281 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
282
283
284 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
285
286
288
289
291
292
293 inline HeadBucketRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
294
295
296 inline HeadBucketRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
297
298
299 inline HeadBucketRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
300
301
302 inline HeadBucketRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
303
304
305 inline HeadBucketRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
306
307
308 inline HeadBucketRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
309
310
311 inline HeadBucketRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
312
313 private:
314
315 Aws::String m_bucket;
316 bool m_bucketHasBeenSet = false;
317
318 Aws::String m_expectedBucketOwner;
319 bool m_expectedBucketOwnerHasBeenSet = false;
320
321 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
322 bool m_customizedAccessLogTagHasBeenSet = false;
323 };
324
325} // namespace Model
326} // namespace S3
327} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
const Aws::String & GetExpectedBucketOwner() const
HeadBucketRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
HeadBucketRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
HeadBucketRequest & WithBucket(Aws::String &&value)
HeadBucketRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
HeadBucketRequest & WithBucket(const Aws::String &value)
HeadBucketRequest & WithExpectedBucketOwner(const Aws::String &value)
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
HeadBucketRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
HeadBucketRequest & WithExpectedBucketOwner(Aws::String &&value)
HeadBucketRequest & WithBucket(const char *value)
virtual const char * GetServiceRequestName() const override
void SetBucket(const Aws::String &value)
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
HeadBucketRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
void SetBucket(const char *value)
HeadBucketRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
HeadBucketRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
void SetExpectedBucketOwner(const Aws::String &value)
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::String & GetBucket() const
HeadBucketRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
void SetExpectedBucketOwner(Aws::String &&value)
HeadBucketRequest & WithExpectedBucketOwner(const char *value)
void SetExpectedBucketOwner(const char *value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
HeadBucketRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
AWS_S3_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
void SetBucket(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