AWS SDK for C++  1.8.127
AWS SDK for C++
PutBucketTaggingRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace S3Control
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "PutBucketTagging"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37  inline bool ShouldComputeContentMd5() const override { return true; }
38 
39 
43  inline const Aws::String& GetAccountId() const{ return m_accountId; }
44 
48  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
49 
53  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
54 
58  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
59 
63  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
64 
68  inline PutBucketTaggingRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
69 
73  inline PutBucketTaggingRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
74 
78  inline PutBucketTaggingRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
79 
80 
94  inline const Aws::String& GetBucket() const{ return m_bucket; }
95 
109  inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
110 
124  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
125 
139  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
140 
154  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
155 
169  inline PutBucketTaggingRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
170 
184  inline PutBucketTaggingRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
185 
199  inline PutBucketTaggingRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
200 
201 
205  inline const Tagging& GetTagging() const{ return m_tagging; }
206 
210  inline bool TaggingHasBeenSet() const { return m_taggingHasBeenSet; }
211 
215  inline void SetTagging(const Tagging& value) { m_taggingHasBeenSet = true; m_tagging = value; }
216 
220  inline void SetTagging(Tagging&& value) { m_taggingHasBeenSet = true; m_tagging = std::move(value); }
221 
225  inline PutBucketTaggingRequest& WithTagging(const Tagging& value) { SetTagging(value); return *this;}
226 
230  inline PutBucketTaggingRequest& WithTagging(Tagging&& value) { SetTagging(std::move(value)); return *this;}
231 
232  private:
233 
234  Aws::String m_accountId;
235  bool m_accountIdHasBeenSet;
236 
237  Aws::String m_bucket;
238  bool m_bucketHasBeenSet;
239 
240  Tagging m_tagging;
241  bool m_taggingHasBeenSet;
242  };
243 
244 } // namespace Model
245 } // namespace S3Control
246 } // namespace Aws
Aws::S3Control::Model::PutBucketTaggingRequest::WithBucket
PutBucketTaggingRequest & WithBucket(const char *value)
Definition: PutBucketTaggingRequest.h:199
Aws::S3Control::Model::PutBucketTaggingRequest::GetTagging
const Tagging & GetTagging() const
Definition: PutBucketTaggingRequest.h:205
Tagging.h
Aws::S3Control::Model::PutBucketTaggingRequest::WithAccountId
PutBucketTaggingRequest & WithAccountId(const Aws::String &value)
Definition: PutBucketTaggingRequest.h:68
Aws::S3Control::S3ControlRequest
Definition: S3ControlRequest.h:17
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::S3Control::Model::PutBucketTaggingRequest::ShouldComputeContentMd5
bool ShouldComputeContentMd5() const override
Definition: PutBucketTaggingRequest.h:37
Aws::S3Control::Model::PutBucketTaggingRequest::WithBucket
PutBucketTaggingRequest & WithBucket(const Aws::String &value)
Definition: PutBucketTaggingRequest.h:169
Aws::S3Control::Model::PutBucketTaggingRequest::WithAccountId
PutBucketTaggingRequest & WithAccountId(Aws::String &&value)
Definition: PutBucketTaggingRequest.h:73
Aws::S3Control::Model::PutBucketTaggingRequest::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: PutBucketTaggingRequest.h:48
S3Control_EXPORTS.h
Aws::S3Control::Model::Tagging
Definition: Tagging.h:32
Aws::S3Control::Model::PutBucketTaggingRequest::SetTagging
void SetTagging(Tagging &&value)
Definition: PutBucketTaggingRequest.h:220
Aws::S3Control::Model::PutBucketTaggingRequest::WithTagging
PutBucketTaggingRequest & WithTagging(const Tagging &value)
Definition: PutBucketTaggingRequest.h:225
Aws::S3Control::Model::PutBucketTaggingRequest::BucketHasBeenSet
bool BucketHasBeenSet() const
Definition: PutBucketTaggingRequest.h:109
Aws::S3Control::Model::PutBucketTaggingRequest::SetBucket
void SetBucket(const Aws::String &value)
Definition: PutBucketTaggingRequest.h:124
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
Aws::S3Control::Model::PutBucketTaggingRequest
Definition: PutBucketTaggingRequest.h:23
Aws::S3Control::Model::PutBucketTaggingRequest::GetAccountId
const Aws::String & GetAccountId() const
Definition: PutBucketTaggingRequest.h:43
Aws::S3Control::Model::PutBucketTaggingRequest::WithAccountId
PutBucketTaggingRequest & WithAccountId(const char *value)
Definition: PutBucketTaggingRequest.h:78
Aws::S3Control::Model::PutBucketTaggingRequest::PutBucketTaggingRequest
PutBucketTaggingRequest()
AWSString.h
Aws::S3Control::Model::PutBucketTaggingRequest::SetBucket
void SetBucket(Aws::String &&value)
Definition: PutBucketTaggingRequest.h:139
Aws::S3Control::Model::PutBucketTaggingRequest::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: PutBucketTaggingRequest.h:58
Aws::S3Control::Model::PutBucketTaggingRequest::WithTagging
PutBucketTaggingRequest & WithTagging(Tagging &&value)
Definition: PutBucketTaggingRequest.h:230
Aws::S3Control::Model::PutBucketTaggingRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws
Definition: AccessManagementClient.h:15
Aws::S3Control::Model::PutBucketTaggingRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::S3Control::Model::PutBucketTaggingRequest::SetAccountId
void SetAccountId(const char *value)
Definition: PutBucketTaggingRequest.h:63
Aws::S3Control::Model::PutBucketTaggingRequest::TaggingHasBeenSet
bool TaggingHasBeenSet() const
Definition: PutBucketTaggingRequest.h:210
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
S3ControlRequest.h
Aws::S3Control::Model::PutBucketTaggingRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutBucketTaggingRequest.h:31
Aws::S3Control::Model::PutBucketTaggingRequest::SetBucket
void SetBucket(const char *value)
Definition: PutBucketTaggingRequest.h:154
Aws::S3Control::Model::PutBucketTaggingRequest::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: PutBucketTaggingRequest.h:53
Aws::S3Control::Model::PutBucketTaggingRequest::GetBucket
const Aws::String & GetBucket() const
Definition: PutBucketTaggingRequest.h:94
Aws::S3Control::Model::PutBucketTaggingRequest::SetTagging
void SetTagging(const Tagging &value)
Definition: PutBucketTaggingRequest.h:215
Aws::S3Control::Model::PutBucketTaggingRequest::WithBucket
PutBucketTaggingRequest & WithBucket(Aws::String &&value)
Definition: PutBucketTaggingRequest.h:184