AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
CreateBucketMetadataConfigurationRequest.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/ChecksumAlgorithm.h>
12#include <aws/s3-crt/model/MetadataConfiguration.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Http {
18class URI;
19} // namespace Http
20namespace S3Crt {
21namespace Model {
22
26 public:
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateBucketMetadataConfiguration"; }
34
35 AWS_S3CRT_API Aws::String SerializePayload() const override;
36
37 AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
38
40
41 AWS_S3CRT_API Aws::String GetChecksumAlgorithmName() const override;
42 AWS_S3CRT_API bool ChecksumAlgorithmIsSet() const override;
43 inline bool RequestChecksumRequired() const override { return true; };
44
48 AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override;
49
51
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
73 inline const Aws::String& GetContentMD5() const { return m_contentMD5; }
74 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
75 template <typename ContentMD5T = Aws::String>
76 void SetContentMD5(ContentMD5T&& value) {
77 m_contentMD5HasBeenSet = true;
78 m_contentMD5 = std::forward<ContentMD5T>(value);
79 }
80 template <typename ContentMD5T = Aws::String>
82 SetContentMD5(std::forward<ContentMD5T>(value));
83 return *this;
84 }
86
88
91 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
92 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
94 m_checksumAlgorithmHasBeenSet = true;
95 m_checksumAlgorithm = value;
96 }
99 return *this;
100 }
102
104
107 inline const MetadataConfiguration& GetMetadataConfiguration() const { return m_metadataConfiguration; }
108 inline bool MetadataConfigurationHasBeenSet() const { return m_metadataConfigurationHasBeenSet; }
109 template <typename MetadataConfigurationT = MetadataConfiguration>
110 void SetMetadataConfiguration(MetadataConfigurationT&& value) {
111 m_metadataConfigurationHasBeenSet = true;
112 m_metadataConfiguration = std::forward<MetadataConfigurationT>(value);
113 }
114 template <typename MetadataConfigurationT = MetadataConfiguration>
116 SetMetadataConfiguration(std::forward<MetadataConfigurationT>(value));
117 return *this;
118 }
120
122
126 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
127 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
128 template <typename ExpectedBucketOwnerT = Aws::String>
129 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
130 m_expectedBucketOwnerHasBeenSet = true;
131 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
132 }
133 template <typename ExpectedBucketOwnerT = Aws::String>
135 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
136 return *this;
137 }
139
141
142 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
143 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
144 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
145 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
146 m_customizedAccessLogTagHasBeenSet = true;
147 m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value);
148 }
149 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
151 SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value));
152 return *this;
153 }
154 template <typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
156 CustomizedAccessLogTagValueT&& value) {
157 m_customizedAccessLogTagHasBeenSet = true;
158 m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
159 return *this;
160 }
162 private:
163 Aws::String m_bucket;
164
165 Aws::String m_contentMD5;
166
168
169 MetadataConfiguration m_metadataConfiguration;
170
171 Aws::String m_expectedBucketOwner;
172
173 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
174 bool m_bucketHasBeenSet = false;
175 bool m_contentMD5HasBeenSet = false;
176 bool m_checksumAlgorithmHasBeenSet = false;
177 bool m_metadataConfigurationHasBeenSet = false;
178 bool m_expectedBucketOwnerHasBeenSet = false;
179 bool m_customizedAccessLogTagHasBeenSet = false;
180};
181
182} // namespace Model
183} // namespace S3Crt
184} // namespace Aws
CreateBucketMetadataConfigurationRequest & WithContentMD5(ContentMD5T &&value)
CreateBucketMetadataConfigurationRequest & WithChecksumAlgorithm(ChecksumAlgorithm value)
AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_S3CRT_API bool ChecksumAlgorithmIsSet() const override
CreateBucketMetadataConfigurationRequest & WithMetadataConfiguration(MetadataConfigurationT &&value)
CreateBucketMetadataConfigurationRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
CreateBucketMetadataConfigurationRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override
AWS_S3CRT_API Aws::String SerializePayload() const override
CreateBucketMetadataConfigurationRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
CreateBucketMetadataConfigurationRequest & WithBucket(BucketT &&value)
AWS_S3CRT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_S3CRT_API Aws::String GetChecksumAlgorithmName() const override
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_string< char, std::char_traits< char >, Aws::Allocator< char > > String