AWS SDK for C++  1.9.104
AWS SDK for C++
DeleteObjectTaggingRequest.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 "DeleteObjectTagging"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40 
42 
43 
63  inline const Aws::String& GetBucket() const{ return m_bucket; }
64 
84  inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
85 
105  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
106 
126  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
127 
147  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
148 
168  inline DeleteObjectTaggingRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
169 
189  inline DeleteObjectTaggingRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
190 
210  inline DeleteObjectTaggingRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
211 
212 
217  inline const Aws::String& GetKey() const{ return m_key; }
218 
223  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
224 
229  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
230 
235  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
236 
241  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
242 
247  inline DeleteObjectTaggingRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
248 
253  inline DeleteObjectTaggingRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
254 
259  inline DeleteObjectTaggingRequest& WithKey(const char* value) { SetKey(value); return *this;}
260 
261 
265  inline const Aws::String& GetVersionId() const{ return m_versionId; }
266 
270  inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
271 
275  inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
276 
280  inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
281 
285  inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
286 
290  inline DeleteObjectTaggingRequest& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
291 
295  inline DeleteObjectTaggingRequest& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
296 
300  inline DeleteObjectTaggingRequest& WithVersionId(const char* value) { SetVersionId(value); return *this;}
301 
302 
308  inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
309 
315  inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
316 
322  inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
323 
329  inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
330 
336  inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
337 
343  inline DeleteObjectTaggingRequest& WithExpectedBucketOwner(const Aws::String& value) { SetExpectedBucketOwner(value); return *this;}
344 
350  inline DeleteObjectTaggingRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
351 
357  inline DeleteObjectTaggingRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
358 
359 
360 
361  inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
362 
363 
364  inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
365 
366 
367  inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
368 
369 
370  inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
371 
372 
373  inline DeleteObjectTaggingRequest& WithCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { SetCustomizedAccessLogTag(value); return *this;}
374 
375 
376  inline DeleteObjectTaggingRequest& WithCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { SetCustomizedAccessLogTag(std::move(value)); return *this;}
377 
378 
379  inline DeleteObjectTaggingRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
380 
381 
382  inline DeleteObjectTaggingRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
383 
384 
385  inline DeleteObjectTaggingRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
386 
387 
388  inline DeleteObjectTaggingRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
389 
390 
391  inline DeleteObjectTaggingRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
392 
393 
394  inline DeleteObjectTaggingRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
395 
396 
397  inline DeleteObjectTaggingRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
398 
399  private:
400 
401  Aws::String m_bucket;
402  bool m_bucketHasBeenSet;
403 
404  Aws::String m_key;
405  bool m_keyHasBeenSet;
406 
407  Aws::String m_versionId;
408  bool m_versionIdHasBeenSet;
409 
410  Aws::String m_expectedBucketOwner;
411  bool m_expectedBucketOwnerHasBeenSet;
412 
413  Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
414  bool m_customizedAccessLogTagHasBeenSet;
415  };
416 
417 } // namespace Model
418 } // namespace S3
419 } // namespace Aws
Aws::S3::Model::DeleteObjectTaggingRequest::WithCustomizedAccessLogTag
DeleteObjectTaggingRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
Definition: DeleteObjectTaggingRequest.h:376
Aws::Http::URI
Definition: URI.h:32
Aws::S3::Model::DeleteObjectTaggingRequest::WithKey
DeleteObjectTaggingRequest & WithKey(Aws::String &&value)
Definition: DeleteObjectTaggingRequest.h:253
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
S3Request.h
Aws::S3::Model::DeleteObjectTaggingRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(const Aws::String &value)
Definition: DeleteObjectTaggingRequest.h:322
Aws::S3::Model::DeleteObjectTaggingRequest::SetVersionId
void SetVersionId(const Aws::String &value)
Definition: DeleteObjectTaggingRequest.h:275
Aws::S3::Model::DeleteObjectTaggingRequest::SetKey
void SetKey(const Aws::String &value)
Definition: DeleteObjectTaggingRequest.h:229
Aws::S3::Model::DeleteObjectTaggingRequest::SetBucket
void SetBucket(Aws::String &&value)
Definition: DeleteObjectTaggingRequest.h:126
Aws::S3::Model::DeleteObjectTaggingRequest::GetCustomizedAccessLogTag
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
Definition: DeleteObjectTaggingRequest.h:361
Aws::S3::Model::DeleteObjectTaggingRequest::ExpectedBucketOwnerHasBeenSet
bool ExpectedBucketOwnerHasBeenSet() const
Definition: DeleteObjectTaggingRequest.h:315
Aws::S3::Model::DeleteObjectTaggingRequest::WithBucket
DeleteObjectTaggingRequest & WithBucket(Aws::String &&value)
Definition: DeleteObjectTaggingRequest.h:189
Aws::S3::Model::DeleteObjectTaggingRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::S3::Model::DeleteObjectTaggingRequest::WithVersionId
DeleteObjectTaggingRequest & WithVersionId(Aws::String &&value)
Definition: DeleteObjectTaggingRequest.h:295
Aws::S3::Model::DeleteObjectTaggingRequest
Definition: DeleteObjectTaggingRequest.h:27
Aws::S3::Model::DeleteObjectTaggingRequest::WithExpectedBucketOwner
DeleteObjectTaggingRequest & WithExpectedBucketOwner(const Aws::String &value)
Definition: DeleteObjectTaggingRequest.h:343
Aws::S3::Model::DeleteObjectTaggingRequest::SetBucket
void SetBucket(const Aws::String &value)
Definition: DeleteObjectTaggingRequest.h:105
Aws::S3::Model::DeleteObjectTaggingRequest::GetVersionId
const Aws::String & GetVersionId() const
Definition: DeleteObjectTaggingRequest.h:265
Aws::S3::Model::DeleteObjectTaggingRequest::AddCustomizedAccessLogTag
DeleteObjectTaggingRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
Definition: DeleteObjectTaggingRequest.h:382
Aws::S3::Model::DeleteObjectTaggingRequest::GetKey
const Aws::String & GetKey() const
Definition: DeleteObjectTaggingRequest.h:217
Aws::S3::Model::DeleteObjectTaggingRequest::WithVersionId
DeleteObjectTaggingRequest & WithVersionId(const char *value)
Definition: DeleteObjectTaggingRequest.h:300
Aws::S3::Model::DeleteObjectTaggingRequest::BucketHasBeenSet
bool BucketHasBeenSet() const
Definition: DeleteObjectTaggingRequest.h:84
Aws::S3::Model::DeleteObjectTaggingRequest::AddCustomizedAccessLogTag
DeleteObjectTaggingRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
Definition: DeleteObjectTaggingRequest.h:379
S3_EXPORTS.h
Aws::S3::Model::DeleteObjectTaggingRequest::WithVersionId
DeleteObjectTaggingRequest & WithVersionId(const Aws::String &value)
Definition: DeleteObjectTaggingRequest.h:290
AWS_S3_API
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
Aws::S3::Model::DeleteObjectTaggingRequest::WithExpectedBucketOwner
DeleteObjectTaggingRequest & WithExpectedBucketOwner(const char *value)
Definition: DeleteObjectTaggingRequest.h:357
Aws::S3::S3Request
Definition: S3Request.h:18
Aws::S3::Model::DeleteObjectTaggingRequest::AddCustomizedAccessLogTag
DeleteObjectTaggingRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
Definition: DeleteObjectTaggingRequest.h:388
Aws::S3::Model::DeleteObjectTaggingRequest::CustomizedAccessLogTagHasBeenSet
bool CustomizedAccessLogTagHasBeenSet() const
Definition: DeleteObjectTaggingRequest.h:364
Aws::S3::Model::DeleteObjectTaggingRequest::WithCustomizedAccessLogTag
DeleteObjectTaggingRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
Definition: DeleteObjectTaggingRequest.h:373
Aws::S3::Model::DeleteObjectTaggingRequest::WithKey
DeleteObjectTaggingRequest & WithKey(const Aws::String &value)
Definition: DeleteObjectTaggingRequest.h:247
Aws::S3::Model::DeleteObjectTaggingRequest::SetKey
void SetKey(Aws::String &&value)
Definition: DeleteObjectTaggingRequest.h:235
Aws::S3::Model::DeleteObjectTaggingRequest::AddCustomizedAccessLogTag
DeleteObjectTaggingRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
Definition: DeleteObjectTaggingRequest.h:394
Aws::S3::Model::DeleteObjectTaggingRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteObjectTaggingRequest.h:35
Aws::S3::Model::DeleteObjectTaggingRequest::SetCustomizedAccessLogTag
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
Definition: DeleteObjectTaggingRequest.h:370
Aws::S3::Model::DeleteObjectTaggingRequest::AddCustomizedAccessLogTag
DeleteObjectTaggingRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
Definition: DeleteObjectTaggingRequest.h:385
Aws::S3::Model::DeleteObjectTaggingRequest::GetExpectedBucketOwner
const Aws::String & GetExpectedBucketOwner() const
Definition: DeleteObjectTaggingRequest.h:308
Aws::S3::Model::DeleteObjectTaggingRequest::VersionIdHasBeenSet
bool VersionIdHasBeenSet() const
Definition: DeleteObjectTaggingRequest.h:270
Aws::S3::Model::DeleteObjectTaggingRequest::SetVersionId
void SetVersionId(Aws::String &&value)
Definition: DeleteObjectTaggingRequest.h:280
AWSString.h
Aws::S3::Model::DeleteObjectTaggingRequest::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: DeleteObjectTaggingRequest.h:223
Aws::S3::Model::DeleteObjectTaggingRequest::WithKey
DeleteObjectTaggingRequest & WithKey(const char *value)
Definition: DeleteObjectTaggingRequest.h:259
Aws::S3::Model::DeleteObjectTaggingRequest::WithBucket
DeleteObjectTaggingRequest & WithBucket(const char *value)
Definition: DeleteObjectTaggingRequest.h:210
Aws::S3::Model::DeleteObjectTaggingRequest::DeleteObjectTaggingRequest
DeleteObjectTaggingRequest()
Aws::S3::Model::DeleteObjectTaggingRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::S3::Model::DeleteObjectTaggingRequest::SetCustomizedAccessLogTag
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
Definition: DeleteObjectTaggingRequest.h:367
Aws::S3::Model::DeleteObjectTaggingRequest::WithExpectedBucketOwner
DeleteObjectTaggingRequest & WithExpectedBucketOwner(Aws::String &&value)
Definition: DeleteObjectTaggingRequest.h:350
Aws
Definition: AccessManagementClient.h:15
Aws::S3::Model::DeleteObjectTaggingRequest::SetBucket
void SetBucket(const char *value)
Definition: DeleteObjectTaggingRequest.h:147
Aws::S3::Model::DeleteObjectTaggingRequest::SetVersionId
void SetVersionId(const char *value)
Definition: DeleteObjectTaggingRequest.h:285
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::S3::Model::DeleteObjectTaggingRequest::GetBucket
const Aws::String & GetBucket() const
Definition: DeleteObjectTaggingRequest.h:63
Aws::S3::Model::DeleteObjectTaggingRequest::WithBucket
DeleteObjectTaggingRequest & WithBucket(const Aws::String &value)
Definition: DeleteObjectTaggingRequest.h:168
Aws::S3::Model::DeleteObjectTaggingRequest::AddCustomizedAccessLogTag
DeleteObjectTaggingRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
Definition: DeleteObjectTaggingRequest.h:391
Aws::S3::Model::DeleteObjectTaggingRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(Aws::String &&value)
Definition: DeleteObjectTaggingRequest.h:329
AWSMap.h
Aws::S3::Model::DeleteObjectTaggingRequest::AddCustomizedAccessLogTag
DeleteObjectTaggingRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
Definition: DeleteObjectTaggingRequest.h:397
Aws::S3::ARNService::S3
static const char S3[]
Definition: S3ARN.h:25
Aws::S3::Model::DeleteObjectTaggingRequest::SetKey
void SetKey(const char *value)
Definition: DeleteObjectTaggingRequest.h:241
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::S3::Model::DeleteObjectTaggingRequest::SetExpectedBucketOwner
void SetExpectedBucketOwner(const char *value)
Definition: DeleteObjectTaggingRequest.h:336
Aws::S3::Model::DeleteObjectTaggingRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override