AWS SDK for C++

AWS SDK for C++ Version 1.11.686

Loading...
Searching...
No Matches
DeleteBucketLifecycleRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3/S3Request.h>
10#include <aws/s3/S3_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace S3 {
19namespace Model {
20
24 public:
25 AWS_S3_API DeleteBucketLifecycleRequest() = default;
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 "DeleteBucketLifecycle"; }
32
33 AWS_S3_API Aws::String SerializePayload() const override;
34
35 AWS_S3_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
39 AWS_S3_API bool HasEmbeddedError(IOStream& body, const Http::HeaderValueCollection& header) const override;
43 AWS_S3_API EndpointParameters GetEndpointContextParams() const override;
44
46
49 inline const Aws::String& GetBucket() const { return m_bucket; }
50 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
51 template <typename BucketT = Aws::String>
52 void SetBucket(BucketT&& value) {
53 m_bucketHasBeenSet = true;
54 m_bucket = std::forward<BucketT>(value);
55 }
56 template <typename BucketT = Aws::String>
58 SetBucket(std::forward<BucketT>(value));
59 return *this;
60 }
62
64
71 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
72 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
73 template <typename ExpectedBucketOwnerT = Aws::String>
74 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
75 m_expectedBucketOwnerHasBeenSet = true;
76 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
77 }
78 template <typename ExpectedBucketOwnerT = Aws::String>
80 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
81 return *this;
82 }
84
86
87 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
88 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
89 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
90 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
91 m_customizedAccessLogTagHasBeenSet = true;
92 m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value);
93 }
94 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
95 DeleteBucketLifecycleRequest& WithCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
96 SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value));
97 return *this;
98 }
99 template <typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
100 DeleteBucketLifecycleRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
101 m_customizedAccessLogTagHasBeenSet = true;
102 m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_bucket;
108 bool m_bucketHasBeenSet = false;
109
110 Aws::String m_expectedBucketOwner;
111 bool m_expectedBucketOwnerHasBeenSet = false;
112
113 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
114 bool m_customizedAccessLogTagHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace S3
119} // namespace Aws
AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
AWS_S3_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
DeleteBucketLifecycleRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DeleteBucketLifecycleRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
void SetExpectedBucketOwner(ExpectedBucketOwnerT &&value)
DeleteBucketLifecycleRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
DeleteBucketLifecycleRequest & WithBucket(BucketT &&value)
virtual const char * GetServiceRequestName() const override
void SetCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::Endpoint::EndpointParameters EndpointParameters
Definition S3Request.h:19
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