AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutBucketLifecycleConfigurationRequest.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/S3Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3/model/ChecksumAlgorithm.h>
11#include <aws/s3/model/BucketLifecycleConfiguration.h>
12#include <aws/s3/model/TransitionDefaultMinimumObjectSize.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Http
19{
20 class URI;
21} //namespace Http
22namespace S3
23{
24namespace Model
25{
26
30 {
31 public:
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "PutBucketLifecycleConfiguration"; }
39
40 AWS_S3_API Aws::String SerializePayload() const override;
41
42 AWS_S3_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43
45
46 AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override;
47 AWS_S3_API Aws::String GetChecksumAlgorithmName() const override;
48 inline bool RequestChecksumRequired() const override { return true; };
49
53 AWS_S3_API EndpointParameters GetEndpointContextParams() const override;
54
56
59 inline const Aws::String& GetBucket() const { return m_bucket; }
60 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
61 template<typename BucketT = Aws::String>
62 void SetBucket(BucketT&& value) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
63 template<typename BucketT = Aws::String>
64 PutBucketLifecycleConfigurationRequest& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
66
68
80 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
81 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
82 inline void SetChecksumAlgorithm(ChecksumAlgorithm value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
85
87
90 inline const BucketLifecycleConfiguration& GetLifecycleConfiguration() const { return m_lifecycleConfiguration; }
91 inline bool LifecycleConfigurationHasBeenSet() const { return m_lifecycleConfigurationHasBeenSet; }
92 template<typename LifecycleConfigurationT = BucketLifecycleConfiguration>
93 void SetLifecycleConfiguration(LifecycleConfigurationT&& value) { m_lifecycleConfigurationHasBeenSet = true; m_lifecycleConfiguration = std::forward<LifecycleConfigurationT>(value); }
94 template<typename LifecycleConfigurationT = BucketLifecycleConfiguration>
95 PutBucketLifecycleConfigurationRequest& WithLifecycleConfiguration(LifecycleConfigurationT&& value) { SetLifecycleConfiguration(std::forward<LifecycleConfigurationT>(value)); return *this;}
97
99
106 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
107 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
108 template<typename ExpectedBucketOwnerT = Aws::String>
109 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value); }
110 template<typename ExpectedBucketOwnerT = Aws::String>
111 PutBucketLifecycleConfigurationRequest& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) { SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value)); return *this;}
113
115
130 inline TransitionDefaultMinimumObjectSize GetTransitionDefaultMinimumObjectSize() const { return m_transitionDefaultMinimumObjectSize; }
131 inline bool TransitionDefaultMinimumObjectSizeHasBeenSet() const { return m_transitionDefaultMinimumObjectSizeHasBeenSet; }
132 inline void SetTransitionDefaultMinimumObjectSize(TransitionDefaultMinimumObjectSize value) { m_transitionDefaultMinimumObjectSizeHasBeenSet = true; m_transitionDefaultMinimumObjectSize = value; }
135
137
138 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
139 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
140 template<typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
141 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value); }
142 template<typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
143 PutBucketLifecycleConfigurationRequest& WithCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) { SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value)); return *this;}
144 template<typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
145 PutBucketLifecycleConfigurationRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
146 m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value)); return *this;
147 }
149 private:
150
151 Aws::String m_bucket;
152 bool m_bucketHasBeenSet = false;
153
155 bool m_checksumAlgorithmHasBeenSet = false;
156
157 BucketLifecycleConfiguration m_lifecycleConfiguration;
158 bool m_lifecycleConfigurationHasBeenSet = false;
159
160 Aws::String m_expectedBucketOwner;
161 bool m_expectedBucketOwnerHasBeenSet = false;
162
164 bool m_transitionDefaultMinimumObjectSizeHasBeenSet = false;
165
166 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
167 bool m_customizedAccessLogTagHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace S3
172} // namespace Aws
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:22
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