AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
PutBucketLifecycleConfigurationRequest.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-crt/S3CrtRequest.h>
10#include <aws/s3-crt/S3Crt_EXPORTS.h>
11#include <aws/s3-crt/model/BucketLifecycleConfiguration.h>
12#include <aws/s3-crt/model/ChecksumAlgorithm.h>
13#include <aws/s3-crt/model/TransitionDefaultMinimumObjectSize.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Http {
19class URI;
20} // namespace Http
21namespace S3Crt {
22namespace Model {
23
27 public:
28 AWS_S3CRT_API PutBucketLifecycleConfigurationRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "PutBucketLifecycleConfiguration"; }
35
36 AWS_S3CRT_API Aws::String SerializePayload() const override;
37
38 AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
41
42 AWS_S3CRT_API bool HasEmbeddedError(IOStream& body, const Http::HeaderValueCollection& header) const override;
43 AWS_S3CRT_API Aws::String GetChecksumAlgorithmName() const override;
44 inline bool RequestChecksumRequired() const override { return true; };
45
49 AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override;
50
52
55 inline const Aws::String& GetBucket() const { return m_bucket; }
56 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
57 template <typename BucketT = Aws::String>
58 void SetBucket(BucketT&& value) {
59 m_bucketHasBeenSet = true;
60 m_bucket = std::forward<BucketT>(value);
61 }
62 template <typename BucketT = Aws::String>
64 SetBucket(std::forward<BucketT>(value));
65 return *this;
66 }
68
70
82 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
83 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
85 m_checksumAlgorithmHasBeenSet = true;
86 m_checksumAlgorithm = value;
87 }
90 return *this;
91 }
93
95
98 inline const BucketLifecycleConfiguration& GetLifecycleConfiguration() const { return m_lifecycleConfiguration; }
99 inline bool LifecycleConfigurationHasBeenSet() const { return m_lifecycleConfigurationHasBeenSet; }
100 template <typename LifecycleConfigurationT = BucketLifecycleConfiguration>
101 void SetLifecycleConfiguration(LifecycleConfigurationT&& value) {
102 m_lifecycleConfigurationHasBeenSet = true;
103 m_lifecycleConfiguration = std::forward<LifecycleConfigurationT>(value);
104 }
105 template <typename LifecycleConfigurationT = BucketLifecycleConfiguration>
107 SetLifecycleConfiguration(std::forward<LifecycleConfigurationT>(value));
108 return *this;
109 }
111
113
120 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
121 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
122 template <typename ExpectedBucketOwnerT = Aws::String>
123 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
124 m_expectedBucketOwnerHasBeenSet = true;
125 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
126 }
127 template <typename ExpectedBucketOwnerT = Aws::String>
129 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
130 return *this;
131 }
133
135
150 inline TransitionDefaultMinimumObjectSize GetTransitionDefaultMinimumObjectSize() const { return m_transitionDefaultMinimumObjectSize; }
151 inline bool TransitionDefaultMinimumObjectSizeHasBeenSet() const { return m_transitionDefaultMinimumObjectSizeHasBeenSet; }
153 m_transitionDefaultMinimumObjectSizeHasBeenSet = true;
154 m_transitionDefaultMinimumObjectSize = value;
155 }
158 return *this;
159 }
161
163
164 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
165 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
166 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
167 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
168 m_customizedAccessLogTagHasBeenSet = true;
169 m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value);
170 }
171 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
173 SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value));
174 return *this;
175 }
176 template <typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
178 CustomizedAccessLogTagValueT&& value) {
179 m_customizedAccessLogTagHasBeenSet = true;
180 m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
181 return *this;
182 }
184 private:
185 Aws::String m_bucket;
186 bool m_bucketHasBeenSet = false;
187
189 bool m_checksumAlgorithmHasBeenSet = false;
190
191 BucketLifecycleConfiguration m_lifecycleConfiguration;
192 bool m_lifecycleConfigurationHasBeenSet = false;
193
194 Aws::String m_expectedBucketOwner;
195 bool m_expectedBucketOwnerHasBeenSet = false;
196
198 bool m_transitionDefaultMinimumObjectSizeHasBeenSet = false;
199
200 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
201 bool m_customizedAccessLogTagHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace S3Crt
206} // namespace Aws
AWS_S3CRT_API Aws::String GetChecksumAlgorithmName() const override
PutBucketLifecycleConfigurationRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
PutBucketLifecycleConfigurationRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
void SetTransitionDefaultMinimumObjectSize(TransitionDefaultMinimumObjectSize value)
PutBucketLifecycleConfigurationRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
PutBucketLifecycleConfigurationRequest & WithLifecycleConfiguration(LifecycleConfigurationT &&value)
AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override
PutBucketLifecycleConfigurationRequest & WithChecksumAlgorithm(ChecksumAlgorithm value)
AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
AWS_S3CRT_API Aws::String SerializePayload() const override
AWS_S3CRT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutBucketLifecycleConfigurationRequest & WithTransitionDefaultMinimumObjectSize(TransitionDefaultMinimumObjectSize value)
PutBucketLifecycleConfigurationRequest & WithBucket(BucketT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
Aws::Endpoint::EndpointParameters EndpointParameters
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