AWS SDK for C++

AWS SDK for C++ Version 1.11.831

Loading...
Searching...
No Matches
GetObjectAnnotationRequest.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/ChecksumMode.h>
12#include <aws/s3-crt/model/RequestPayer.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Http {
18class URI;
19} // namespace Http
20namespace S3Crt {
21namespace Model {
22
26 public:
27 AWS_S3CRT_API GetObjectAnnotationRequest() = default;
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 "GetObjectAnnotation"; }
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 bool ShouldValidateResponseChecksum() const override;
42
44
48 AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override;
49
51
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& GetKey() const { return m_key; }
73 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
74 template <typename KeyT = Aws::String>
75 void SetKey(KeyT&& value) {
76 m_keyHasBeenSet = true;
77 m_key = std::forward<KeyT>(value);
78 }
79 template <typename KeyT = Aws::String>
81 SetKey(std::forward<KeyT>(value));
82 return *this;
83 }
85
87
91 inline const Aws::String& GetAnnotationName() const { return m_annotationName; }
92 inline bool AnnotationNameHasBeenSet() const { return m_annotationNameHasBeenSet; }
93 template <typename AnnotationNameT = Aws::String>
94 void SetAnnotationName(AnnotationNameT&& value) {
95 m_annotationNameHasBeenSet = true;
96 m_annotationName = std::forward<AnnotationNameT>(value);
97 }
98 template <typename AnnotationNameT = Aws::String>
100 SetAnnotationName(std::forward<AnnotationNameT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetVersionId() const { return m_versionId; }
110 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
111 template <typename VersionIdT = Aws::String>
112 void SetVersionId(VersionIdT&& value) {
113 m_versionIdHasBeenSet = true;
114 m_versionId = std::forward<VersionIdT>(value);
115 }
116 template <typename VersionIdT = Aws::String>
118 SetVersionId(std::forward<VersionIdT>(value));
119 return *this;
120 }
122
124
125 inline RequestPayer GetRequestPayer() const { return m_requestPayer; }
126 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
127 inline void SetRequestPayer(RequestPayer value) {
128 m_requestPayerHasBeenSet = true;
129 m_requestPayer = value;
130 }
132 SetRequestPayer(value);
133 return *this;
134 }
136
138
142 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
143 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
144 template <typename ExpectedBucketOwnerT = Aws::String>
145 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
146 m_expectedBucketOwnerHasBeenSet = true;
147 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
148 }
149 template <typename ExpectedBucketOwnerT = Aws::String>
151 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
152 return *this;
153 }
155
157
161 inline ChecksumMode GetChecksumMode() const { return m_checksumMode; }
162 inline bool ChecksumModeHasBeenSet() const { return m_checksumModeHasBeenSet; }
163 inline void SetChecksumMode(ChecksumMode value) {
164 m_checksumModeHasBeenSet = true;
165 m_checksumMode = value;
166 }
168 SetChecksumMode(value);
169 return *this;
170 }
172
174
175 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
176 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
177 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
178 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
179 m_customizedAccessLogTagHasBeenSet = true;
180 m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value);
181 }
182 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
183 GetObjectAnnotationRequest& WithCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
184 SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value));
185 return *this;
186 }
187 template <typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
188 GetObjectAnnotationRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
189 m_customizedAccessLogTagHasBeenSet = true;
190 m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
191 return *this;
192 }
194 private:
195 Aws::String m_bucket;
196
197 Aws::String m_key;
198
199 Aws::String m_annotationName;
200
201 Aws::String m_versionId;
202
203 RequestPayer m_requestPayer{RequestPayer::NOT_SET};
204
205 Aws::String m_expectedBucketOwner;
206
207 ChecksumMode m_checksumMode{ChecksumMode::NOT_SET};
208
209 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
210 bool m_bucketHasBeenSet = false;
211 bool m_keyHasBeenSet = false;
212 bool m_annotationNameHasBeenSet = false;
213 bool m_versionIdHasBeenSet = false;
214 bool m_requestPayerHasBeenSet = false;
215 bool m_expectedBucketOwnerHasBeenSet = false;
216 bool m_checksumModeHasBeenSet = false;
217 bool m_customizedAccessLogTagHasBeenSet = false;
218};
219
220} // namespace Model
221} // namespace S3Crt
222} // namespace Aws
AWS_S3CRT_API bool ShouldValidateResponseChecksum() const override
AWS_S3CRT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetExpectedBucketOwner(ExpectedBucketOwnerT &&value)
GetObjectAnnotationRequest & WithChecksumMode(ChecksumMode value)
GetObjectAnnotationRequest & WithKey(KeyT &&value)
GetObjectAnnotationRequest & WithBucket(BucketT &&value)
AWS_S3CRT_API Aws::Vector< Aws::String > GetResponseChecksumAlgorithmNames() const override
void SetCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
AWS_S3CRT_API Aws::String SerializePayload() const override
GetObjectAnnotationRequest & WithVersionId(VersionIdT &&value)
AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetObjectAnnotationRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
GetObjectAnnotationRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
AWS_S3CRT_API GetObjectAnnotationRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
virtual const char * GetServiceRequestName() const override
GetObjectAnnotationRequest & WithRequestPayer(RequestPayer value)
GetObjectAnnotationRequest & WithAnnotationName(AnnotationNameT &&value)
GetObjectAnnotationRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override
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
std::vector< T, Aws::Allocator< T > > Vector