AWS SDK for C++  1.9.14
AWS SDK for C++
GetBucketLocationRequest.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 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace S3
20 {
21 namespace 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 "GetBucketLocation"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40 
42 
43 
47  inline const Aws::String& GetBucket() const{ return m_bucket; }
48 
52  inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
53 
57  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
58 
62  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
63 
67  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
68 
72  inline GetBucketLocationRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
73 
77  inline GetBucketLocationRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
78 
82  inline GetBucketLocationRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
83 
84 
90  inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
91 
97  inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
98 
104  inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
105 
111  inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
112 
118  inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
119 
125  inline GetBucketLocationRequest& WithExpectedBucketOwner(const Aws::String& value) { SetExpectedBucketOwner(value); return *this;}
126 
132  inline GetBucketLocationRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
133 
139  inline GetBucketLocationRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
140 
141 
142 
143  inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
144 
145 
146  inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
147 
148 
149  inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
150 
151 
152  inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
153 
154 
155  inline GetBucketLocationRequest& WithCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { SetCustomizedAccessLogTag(value); return *this;}
156 
157 
158  inline GetBucketLocationRequest& WithCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { SetCustomizedAccessLogTag(std::move(value)); return *this;}
159 
160 
161  inline GetBucketLocationRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
162 
163 
164  inline GetBucketLocationRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
165 
166 
167  inline GetBucketLocationRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
168 
169 
170  inline GetBucketLocationRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
171 
172 
173  inline GetBucketLocationRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
174 
175 
176  inline GetBucketLocationRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
177 
178 
179  inline GetBucketLocationRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
180 
181  private:
182 
183  Aws::String m_bucket;
184  bool m_bucketHasBeenSet;
185 
186  Aws::String m_expectedBucketOwner;
187  bool m_expectedBucketOwnerHasBeenSet;
188 
189  Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
190  bool m_customizedAccessLogTagHasBeenSet;
191  };
192 
193 } // namespace Model
194 } // namespace S3
195 } // namespace Aws
Aws::S3::Model::GetBucketLocationRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::Http::URI
Definition: URI.h:32
Aws::S3::Model::GetBucketLocationRequest::SetBucket
void SetBucket(const char *value)
Definition: GetBucketLocationRequest.h:67
Aws::S3::Model::GetBucketLocationRequest::GetExpectedBucketOwner
const Aws::String & GetExpectedBucketOwner() const
Definition: GetBucketLocationRequest.h:90
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::S3::Model::GetBucketLocationRequest::WithCustomizedAccessLogTag
GetBucketLocationRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
Definition: GetBucketLocationRequest.h:158
S3Request.h
Aws::S3::Model::GetBucketLocationRequest::ExpectedBucketOwnerHasBeenSet
bool ExpectedBucketOwnerHasBeenSet() const
Definition: GetBucketLocationRequest.h:97
Aws::S3::Model::GetBucketLocationRequest::WithExpectedBucketOwner
GetBucketLocationRequest & WithExpectedBucketOwner(Aws::String &&value)
Definition: GetBucketLocationRequest.h:132
Aws::S3::Model::GetBucketLocationRequest::SetCustomizedAccessLogTag
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
Definition: GetBucketLocationRequest.h:149
Aws::S3::Model::GetBucketLocationRequest::AddCustomizedAccessLogTag
GetBucketLocationRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
Definition: GetBucketLocationRequest.h:167
Aws::S3::Model::GetBucketLocationRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(Aws::String &&value)
Definition: GetBucketLocationRequest.h:111
Aws::S3::Model::GetBucketLocationRequest::SetBucket
void SetBucket(const Aws::String &value)
Definition: GetBucketLocationRequest.h:57
Aws::S3::Model::GetBucketLocationRequest::AddCustomizedAccessLogTag
GetBucketLocationRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
Definition: GetBucketLocationRequest.h:170
Aws::S3::Model::GetBucketLocationRequest::AddCustomizedAccessLogTag
GetBucketLocationRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
Definition: GetBucketLocationRequest.h:173
Aws::S3::Model::GetBucketLocationRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::S3::Model::GetBucketLocationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetBucketLocationRequest.h:35
Aws::S3::Model::GetBucketLocationRequest::WithBucket
GetBucketLocationRequest & WithBucket(const Aws::String &value)
Definition: GetBucketLocationRequest.h:72
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::GetBucketLocationRequest::AddCustomizedAccessLogTag
GetBucketLocationRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
Definition: GetBucketLocationRequest.h:161
Aws::S3::Model::GetBucketLocationRequest::BucketHasBeenSet
bool BucketHasBeenSet() const
Definition: GetBucketLocationRequest.h:52
Aws::S3::Model::GetBucketLocationRequest::AddCustomizedAccessLogTag
GetBucketLocationRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
Definition: GetBucketLocationRequest.h:179
Aws::S3::Model::GetBucketLocationRequest::GetBucket
const Aws::String & GetBucket() const
Definition: GetBucketLocationRequest.h:47
Aws::S3::Model::GetBucketLocationRequest::GetCustomizedAccessLogTag
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
Definition: GetBucketLocationRequest.h:143
Aws::S3::Model::GetBucketLocationRequest
Definition: GetBucketLocationRequest.h:27
AWSString.h
Aws::S3::Model::GetBucketLocationRequest::AddCustomizedAccessLogTag
GetBucketLocationRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
Definition: GetBucketLocationRequest.h:164
Aws::S3::Model::GetBucketLocationRequest::SetCustomizedAccessLogTag
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
Definition: GetBucketLocationRequest.h:152
Aws::S3::Model::GetBucketLocationRequest::SetBucket
void SetBucket(Aws::String &&value)
Definition: GetBucketLocationRequest.h:62
Aws::S3::Model::GetBucketLocationRequest::WithExpectedBucketOwner
GetBucketLocationRequest & WithExpectedBucketOwner(const char *value)
Definition: GetBucketLocationRequest.h:139
Aws::S3::Model::GetBucketLocationRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(const char *value)
Definition: GetBucketLocationRequest.h:118
Aws
Definition: AccessManagementClient.h:15
Aws::S3::Model::GetBucketLocationRequest::WithBucket
GetBucketLocationRequest & WithBucket(const char *value)
Definition: GetBucketLocationRequest.h:82
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::S3::Model::GetBucketLocationRequest::WithBucket
GetBucketLocationRequest & WithBucket(Aws::String &&value)
Definition: GetBucketLocationRequest.h:77
Aws::S3::Model::GetBucketLocationRequest::WithCustomizedAccessLogTag
GetBucketLocationRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
Definition: GetBucketLocationRequest.h:155
Aws::S3::Model::GetBucketLocationRequest::AddCustomizedAccessLogTag
GetBucketLocationRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
Definition: GetBucketLocationRequest.h:176
Aws::S3::Model::GetBucketLocationRequest::WithExpectedBucketOwner
GetBucketLocationRequest & WithExpectedBucketOwner(const Aws::String &value)
Definition: GetBucketLocationRequest.h:125
Aws::S3::Model::GetBucketLocationRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(const Aws::String &value)
Definition: GetBucketLocationRequest.h:104
Aws::S3::Model::GetBucketLocationRequest::GetBucketLocationRequest
GetBucketLocationRequest()
Aws::S3::Model::GetBucketLocationRequest::SerializePayload
Aws::String SerializePayload() const override
AWSMap.h
Aws::S3::ARNService::S3
static const char S3[]
Definition: S3ARN.h:25
Aws::S3::Model::GetBucketLocationRequest::CustomizedAccessLogTagHasBeenSet
bool CustomizedAccessLogTagHasBeenSet() const
Definition: GetBucketLocationRequest.h:146
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19