AWS SDK for C++

AWS SDK for C++ Version 1.11.695

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 inline bool RequestChecksumRequired() const override { return true; };
43
47 AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override;
48
50
54 inline const Aws::String& GetBucket() const { return m_bucket; }
55 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
56 template <typename BucketT = Aws::String>
57 void SetBucket(BucketT&& value) {
58 m_bucketHasBeenSet = true;
59 m_bucket = std::forward<BucketT>(value);
60 }
61 template <typename BucketT = Aws::String>
63 SetBucket(std::forward<BucketT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetContentMD5() const { return m_contentMD5; }
73 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
74 template <typename ContentMD5T = Aws::String>
75 void SetContentMD5(ContentMD5T&& value) {
76 m_contentMD5HasBeenSet = true;
77 m_contentMD5 = std::forward<ContentMD5T>(value);
78 }
79 template <typename ContentMD5T = Aws::String>
81 SetContentMD5(std::forward<ContentMD5T>(value));
82 return *this;
83 }
85
87
90 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
91 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
93 m_checksumAlgorithmHasBeenSet = true;
94 m_checksumAlgorithm = value;
95 }
98 return *this;
99 }
101
103
106 inline const MetadataConfiguration& GetMetadataConfiguration() const { return m_metadataConfiguration; }
107 inline bool MetadataConfigurationHasBeenSet() const { return m_metadataConfigurationHasBeenSet; }
108 template <typename MetadataConfigurationT = MetadataConfiguration>
109 void SetMetadataConfiguration(MetadataConfigurationT&& value) {
110 m_metadataConfigurationHasBeenSet = true;
111 m_metadataConfiguration = std::forward<MetadataConfigurationT>(value);
112 }
113 template <typename MetadataConfigurationT = MetadataConfiguration>
115 SetMetadataConfiguration(std::forward<MetadataConfigurationT>(value));
116 return *this;
117 }
119
121
125 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
126 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
127 template <typename ExpectedBucketOwnerT = Aws::String>
128 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
129 m_expectedBucketOwnerHasBeenSet = true;
130 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
131 }
132 template <typename ExpectedBucketOwnerT = Aws::String>
134 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
135 return *this;
136 }
138
140
141 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
142 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
143 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
144 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
145 m_customizedAccessLogTagHasBeenSet = true;
146 m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value);
147 }
148 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
150 SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value));
151 return *this;
152 }
153 template <typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
155 CustomizedAccessLogTagValueT&& value) {
156 m_customizedAccessLogTagHasBeenSet = true;
157 m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
158 return *this;
159 }
161 private:
162 Aws::String m_bucket;
163 bool m_bucketHasBeenSet = false;
164
165 Aws::String m_contentMD5;
166 bool m_contentMD5HasBeenSet = false;
167
169 bool m_checksumAlgorithmHasBeenSet = false;
170
171 MetadataConfiguration m_metadataConfiguration;
172 bool m_metadataConfigurationHasBeenSet = false;
173
174 Aws::String m_expectedBucketOwner;
175 bool m_expectedBucketOwnerHasBeenSet = false;
176
177 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
178 bool m_customizedAccessLogTagHasBeenSet = false;
179};
180
181} // namespace Model
182} // namespace S3Crt
183} // namespace Aws
CreateBucketMetadataConfigurationRequest & WithContentMD5(ContentMD5T &&value)
CreateBucketMetadataConfigurationRequest & WithChecksumAlgorithm(ChecksumAlgorithm value)
AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI &uri) 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