AWS SDK for C++

AWS SDK for C++ Version 1.11.844

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/S3Request.h>
10#include <aws/s3/S3_EXPORTS.h>
11#include <aws/s3/model/BucketLifecycleConfiguration.h>
12#include <aws/s3/model/ChecksumAlgorithm.h>
13#include <aws/s3/model/TransitionDefaultMinimumObjectSize.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Http {
19class URI;
20} // namespace Http
21namespace S3 {
22namespace Model {
23
27 public:
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_S3_API Aws::String SerializePayload() const override;
37
38 AWS_S3_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
41
42 AWS_S3_API bool HasEmbeddedError(IOStream& body, const Http::HeaderValueCollection& header) const override;
43 AWS_S3_API Aws::String GetChecksumAlgorithmName() const override;
44 AWS_S3_API bool ChecksumAlgorithmIsSet() const override;
45 inline bool RequestChecksumRequired() const override { return true; };
46
50 AWS_S3_API EndpointParameters GetEndpointContextParams() const override;
51
53
56 inline const Aws::String& GetBucket() const { return m_bucket; }
57 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
58 template <typename BucketT = Aws::String>
59 void SetBucket(BucketT&& value) {
60 m_bucketHasBeenSet = true;
61 m_bucket = std::forward<BucketT>(value);
62 }
63 template <typename BucketT = Aws::String>
65 SetBucket(std::forward<BucketT>(value));
66 return *this;
67 }
69
71
83 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
84 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
86 m_checksumAlgorithmHasBeenSet = true;
87 m_checksumAlgorithm = value;
88 }
91 return *this;
92 }
94
96
99 inline const BucketLifecycleConfiguration& GetLifecycleConfiguration() const { return m_lifecycleConfiguration; }
100 inline bool LifecycleConfigurationHasBeenSet() const { return m_lifecycleConfigurationHasBeenSet; }
101 template <typename LifecycleConfigurationT = BucketLifecycleConfiguration>
102 void SetLifecycleConfiguration(LifecycleConfigurationT&& value) {
103 m_lifecycleConfigurationHasBeenSet = true;
104 m_lifecycleConfiguration = std::forward<LifecycleConfigurationT>(value);
105 }
106 template <typename LifecycleConfigurationT = BucketLifecycleConfiguration>
108 SetLifecycleConfiguration(std::forward<LifecycleConfigurationT>(value));
109 return *this;
110 }
112
114
121 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
122 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
123 template <typename ExpectedBucketOwnerT = Aws::String>
124 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
125 m_expectedBucketOwnerHasBeenSet = true;
126 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
127 }
128 template <typename ExpectedBucketOwnerT = Aws::String>
130 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
131 return *this;
132 }
134
136
151 inline TransitionDefaultMinimumObjectSize GetTransitionDefaultMinimumObjectSize() const { return m_transitionDefaultMinimumObjectSize; }
152 inline bool TransitionDefaultMinimumObjectSizeHasBeenSet() const { return m_transitionDefaultMinimumObjectSizeHasBeenSet; }
154 m_transitionDefaultMinimumObjectSizeHasBeenSet = true;
155 m_transitionDefaultMinimumObjectSize = value;
156 }
159 return *this;
160 }
162
164
165 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
166 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
167 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
168 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
169 m_customizedAccessLogTagHasBeenSet = true;
170 m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value);
171 }
172 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
174 SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value));
175 return *this;
176 }
177 template <typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
179 CustomizedAccessLogTagValueT&& value) {
180 m_customizedAccessLogTagHasBeenSet = true;
181 m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
182 return *this;
183 }
185 private:
186 Aws::String m_bucket;
187
189
190 BucketLifecycleConfiguration m_lifecycleConfiguration;
191
192 Aws::String m_expectedBucketOwner;
193
195
196 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
197 bool m_bucketHasBeenSet = false;
198 bool m_checksumAlgorithmHasBeenSet = false;
199 bool m_lifecycleConfigurationHasBeenSet = false;
200 bool m_expectedBucketOwnerHasBeenSet = false;
201 bool m_transitionDefaultMinimumObjectSizeHasBeenSet = false;
202 bool m_customizedAccessLogTagHasBeenSet = false;
203};
204
205} // namespace Model
206} // namespace S3
207} // namespace Aws
AWS_S3_API bool ChecksumAlgorithmIsSet() const override
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
PutBucketLifecycleConfigurationRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
PutBucketLifecycleConfigurationRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
PutBucketLifecycleConfigurationRequest & WithBucket(BucketT &&value)
PutBucketLifecycleConfigurationRequest & WithLifecycleConfiguration(LifecycleConfigurationT &&value)
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
AWS_S3_API Aws::String SerializePayload() const override
AWS_S3_API Aws::String GetChecksumAlgorithmName() const override
PutBucketLifecycleConfigurationRequest & WithChecksumAlgorithm(ChecksumAlgorithm value)
void SetTransitionDefaultMinimumObjectSize(TransitionDefaultMinimumObjectSize value)
PutBucketLifecycleConfigurationRequest & WithTransitionDefaultMinimumObjectSize(TransitionDefaultMinimumObjectSize value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
PutBucketLifecycleConfigurationRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
AWS_S3_API EndpointParameters GetEndpointContextParams() 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