AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
HeadBucketRequest.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/S3Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.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:
29 AWS_S3_API HeadBucketRequest();
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
37 AWS_S3_API Aws::String SerializePayload() const override;
38
39 AWS_S3_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
42
43 AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override;
47 AWS_S3_API EndpointParameters GetEndpointContextParams() const override;
48
50
89 inline const Aws::String& GetBucket() const{ return m_bucket; }
90 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
91 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
92 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
93 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
94 inline HeadBucketRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
95 inline HeadBucketRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
96 inline HeadBucketRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
98
100
105 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
106 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
107 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
108 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
109 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
111 inline HeadBucketRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
112 inline HeadBucketRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
114
116
117 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
118 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
119 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
120 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
123 inline HeadBucketRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
124 inline HeadBucketRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
125 inline HeadBucketRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
126 inline HeadBucketRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
127 inline HeadBucketRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
128 inline HeadBucketRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
129 inline HeadBucketRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
131 private:
132
133 Aws::String m_bucket;
134 bool m_bucketHasBeenSet = false;
135
136 Aws::String m_expectedBucketOwner;
137 bool m_expectedBucketOwnerHasBeenSet = false;
138
139 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
140 bool m_customizedAccessLogTagHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace S3
145} // namespace Aws
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
AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
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_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String