AWS SDK for C++  1.9.109
AWS SDK for C++
GetBucketTaggingRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace S3Crt
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 "GetBucketTagging"; }
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 GetBucketTaggingRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
73 
77  inline GetBucketTaggingRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
78 
82  inline GetBucketTaggingRequest& 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 GetBucketTaggingRequest& WithExpectedBucketOwner(const Aws::String& value) { SetExpectedBucketOwner(value); return *this;}
126 
132  inline GetBucketTaggingRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
133 
139  inline GetBucketTaggingRequest& 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 GetBucketTaggingRequest& WithCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { SetCustomizedAccessLogTag(value); return *this;}
156 
157 
158  inline GetBucketTaggingRequest& WithCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { SetCustomizedAccessLogTag(std::move(value)); return *this;}
159 
160 
161  inline GetBucketTaggingRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
162 
163 
164  inline GetBucketTaggingRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
165 
166 
167  inline GetBucketTaggingRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
168 
169 
170  inline GetBucketTaggingRequest& 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 GetBucketTaggingRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
174 
175 
176  inline GetBucketTaggingRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
177 
178 
179  inline GetBucketTaggingRequest& 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 S3Crt
195 } // namespace Aws
Aws::S3Crt::Model::GetBucketTaggingRequest::GetBucket
const Aws::String & GetBucket() const
Definition: GetBucketTaggingRequest.h:47
Aws::Http::URI
Definition: URI.h:32
Aws::S3Crt::Model::GetBucketTaggingRequest::WithExpectedBucketOwner
GetBucketTaggingRequest & WithExpectedBucketOwner(const char *value)
Definition: GetBucketTaggingRequest.h:139
Aws::S3Crt::Model::GetBucketTaggingRequest::GetExpectedBucketOwner
const Aws::String & GetExpectedBucketOwner() const
Definition: GetBucketTaggingRequest.h:90
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::S3Crt::Model::GetBucketTaggingRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(const Aws::String &value)
Definition: GetBucketTaggingRequest.h:104
Aws::S3Crt::Model::GetBucketTaggingRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetBucketTaggingRequest.h:35
Aws::S3Crt::Model::GetBucketTaggingRequest::BucketHasBeenSet
bool BucketHasBeenSet() const
Definition: GetBucketTaggingRequest.h:52
Aws::S3Crt::Model::GetBucketTaggingRequest::WithExpectedBucketOwner
GetBucketTaggingRequest & WithExpectedBucketOwner(Aws::String &&value)
Definition: GetBucketTaggingRequest.h:132
Aws::S3Crt::Model::GetBucketTaggingRequest::GetBucketTaggingRequest
GetBucketTaggingRequest()
Aws::S3Crt::Model::GetBucketTaggingRequest::SetBucket
void SetBucket(const Aws::String &value)
Definition: GetBucketTaggingRequest.h:57
Aws::S3Crt::Model::GetBucketTaggingRequest::WithExpectedBucketOwner
GetBucketTaggingRequest & WithExpectedBucketOwner(const Aws::String &value)
Definition: GetBucketTaggingRequest.h:125
Aws::S3Crt::Model::GetBucketTaggingRequest::SetBucket
void SetBucket(Aws::String &&value)
Definition: GetBucketTaggingRequest.h:62
Aws::S3Crt::Model::GetBucketTaggingRequest::AddCustomizedAccessLogTag
GetBucketTaggingRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
Definition: GetBucketTaggingRequest.h:179
Aws::S3Crt::Model::GetBucketTaggingRequest::AddCustomizedAccessLogTag
GetBucketTaggingRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
Definition: GetBucketTaggingRequest.h:161
Aws::S3Crt::Model::GetBucketTaggingRequest::AddCustomizedAccessLogTag
GetBucketTaggingRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
Definition: GetBucketTaggingRequest.h:167
Aws::S3Crt::Model::GetBucketTaggingRequest::WithCustomizedAccessLogTag
GetBucketTaggingRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
Definition: GetBucketTaggingRequest.h:155
Aws::S3Crt::Model::GetBucketTaggingRequest::AddCustomizedAccessLogTag
GetBucketTaggingRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
Definition: GetBucketTaggingRequest.h:176
S3CrtRequest.h
Aws::S3Crt::Model::GetBucketTaggingRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_S3CRT_API
#define AWS_S3CRT_API
Definition: S3Crt_EXPORTS.h:28
Aws::S3Crt::Model::GetBucketTaggingRequest::WithBucket
GetBucketTaggingRequest & WithBucket(const Aws::String &value)
Definition: GetBucketTaggingRequest.h:72
Aws::S3Crt::Model::GetBucketTaggingRequest
Definition: GetBucketTaggingRequest.h:27
Aws::S3Crt::Model::GetBucketTaggingRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::S3Crt::Model::GetBucketTaggingRequest::CustomizedAccessLogTagHasBeenSet
bool CustomizedAccessLogTagHasBeenSet() const
Definition: GetBucketTaggingRequest.h:146
Aws::S3Crt::Model::GetBucketTaggingRequest::SetCustomizedAccessLogTag
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
Definition: GetBucketTaggingRequest.h:152
Aws::S3Crt::Model::GetBucketTaggingRequest::WithCustomizedAccessLogTag
GetBucketTaggingRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
Definition: GetBucketTaggingRequest.h:158
AWSString.h
Aws::S3Crt::S3CrtRequest
Definition: S3CrtRequest.h:18
Aws::S3Crt::Model::GetBucketTaggingRequest::ExpectedBucketOwnerHasBeenSet
bool ExpectedBucketOwnerHasBeenSet() const
Definition: GetBucketTaggingRequest.h:97
Aws::S3Crt::Model::GetBucketTaggingRequest::AddCustomizedAccessLogTag
GetBucketTaggingRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
Definition: GetBucketTaggingRequest.h:173
Aws::S3Crt::Model::GetBucketTaggingRequest::WithBucket
GetBucketTaggingRequest & WithBucket(Aws::String &&value)
Definition: GetBucketTaggingRequest.h:77
Aws::S3Crt::Model::GetBucketTaggingRequest::AddCustomizedAccessLogTag
GetBucketTaggingRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
Definition: GetBucketTaggingRequest.h:164
Aws::S3Crt::Model::GetBucketTaggingRequest::SetBucket
void SetBucket(const char *value)
Definition: GetBucketTaggingRequest.h:67
Aws
Definition: AccessManagementClient.h:15
Aws::S3Crt::Model::GetBucketTaggingRequest::GetCustomizedAccessLogTag
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
Definition: GetBucketTaggingRequest.h:143
Aws::S3Crt::Model::GetBucketTaggingRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(Aws::String &&value)
Definition: GetBucketTaggingRequest.h:111
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::S3Crt::Model::GetBucketTaggingRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(const char *value)
Definition: GetBucketTaggingRequest.h:118
Aws::S3Crt::Model::GetBucketTaggingRequest::SetCustomizedAccessLogTag
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
Definition: GetBucketTaggingRequest.h:149
Aws::S3Crt::Model::GetBucketTaggingRequest::WithBucket
GetBucketTaggingRequest & WithBucket(const char *value)
Definition: GetBucketTaggingRequest.h:82
AWSMap.h
Aws::S3Crt::Model::GetBucketTaggingRequest::AddCustomizedAccessLogTag
GetBucketTaggingRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
Definition: GetBucketTaggingRequest.h:170
Aws::S3Crt::Model::GetBucketTaggingRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
S3Crt_EXPORTS.h
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19