AWS SDK for C++

AWS SDK for C++ Version 1.11.831

Loading...
Searching...
No Matches
DeleteObjectAnnotationRequest.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/RequestPayer.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace S3Crt {
20namespace Model {
21
25 public:
26 AWS_S3CRT_API DeleteObjectAnnotationRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "DeleteObjectAnnotation"; }
33
34 AWS_S3CRT_API Aws::String SerializePayload() const override;
35
36 AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
37
39
43 AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override;
44
46
49 inline const Aws::String& GetBucket() const { return m_bucket; }
50 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
51 template <typename BucketT = Aws::String>
52 void SetBucket(BucketT&& value) {
53 m_bucketHasBeenSet = true;
54 m_bucket = std::forward<BucketT>(value);
55 }
56 template <typename BucketT = Aws::String>
58 SetBucket(std::forward<BucketT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetKey() const { return m_key; }
68 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
69 template <typename KeyT = Aws::String>
70 void SetKey(KeyT&& value) {
71 m_keyHasBeenSet = true;
72 m_key = std::forward<KeyT>(value);
73 }
74 template <typename KeyT = Aws::String>
76 SetKey(std::forward<KeyT>(value));
77 return *this;
78 }
80
82
87 inline const Aws::String& GetAnnotationName() const { return m_annotationName; }
88 inline bool AnnotationNameHasBeenSet() const { return m_annotationNameHasBeenSet; }
89 template <typename AnnotationNameT = Aws::String>
90 void SetAnnotationName(AnnotationNameT&& value) {
91 m_annotationNameHasBeenSet = true;
92 m_annotationName = std::forward<AnnotationNameT>(value);
93 }
94 template <typename AnnotationNameT = Aws::String>
96 SetAnnotationName(std::forward<AnnotationNameT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::String& GetVersionId() const { return m_versionId; }
106 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
107 template <typename VersionIdT = Aws::String>
108 void SetVersionId(VersionIdT&& value) {
109 m_versionIdHasBeenSet = true;
110 m_versionId = std::forward<VersionIdT>(value);
111 }
112 template <typename VersionIdT = Aws::String>
114 SetVersionId(std::forward<VersionIdT>(value));
115 return *this;
116 }
118
120
121 inline RequestPayer GetRequestPayer() const { return m_requestPayer; }
122 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
123 inline void SetRequestPayer(RequestPayer value) {
124 m_requestPayerHasBeenSet = true;
125 m_requestPayer = value;
126 }
128 SetRequestPayer(value);
129 return *this;
130 }
132
134
137 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
138 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
139 template <typename ExpectedBucketOwnerT = Aws::String>
140 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
141 m_expectedBucketOwnerHasBeenSet = true;
142 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
143 }
144 template <typename ExpectedBucketOwnerT = Aws::String>
146 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
147 return *this;
148 }
150
152
156 inline const Aws::String& GetObjectIfMatch() const { return m_objectIfMatch; }
157 inline bool ObjectIfMatchHasBeenSet() const { return m_objectIfMatchHasBeenSet; }
158 template <typename ObjectIfMatchT = Aws::String>
159 void SetObjectIfMatch(ObjectIfMatchT&& value) {
160 m_objectIfMatchHasBeenSet = true;
161 m_objectIfMatch = std::forward<ObjectIfMatchT>(value);
162 }
163 template <typename ObjectIfMatchT = Aws::String>
165 SetObjectIfMatch(std::forward<ObjectIfMatchT>(value));
166 return *this;
167 }
169
171
172 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
173 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
174 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
175 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
176 m_customizedAccessLogTagHasBeenSet = true;
177 m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value);
178 }
179 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
181 SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value));
182 return *this;
183 }
184 template <typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
185 DeleteObjectAnnotationRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
186 m_customizedAccessLogTagHasBeenSet = true;
187 m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
188 return *this;
189 }
191 private:
192 Aws::String m_bucket;
193
194 Aws::String m_key;
195
196 Aws::String m_annotationName;
197
198 Aws::String m_versionId;
199
200 RequestPayer m_requestPayer{RequestPayer::NOT_SET};
201
202 Aws::String m_expectedBucketOwner;
203
204 Aws::String m_objectIfMatch;
205
206 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
207 bool m_bucketHasBeenSet = false;
208 bool m_keyHasBeenSet = false;
209 bool m_annotationNameHasBeenSet = false;
210 bool m_versionIdHasBeenSet = false;
211 bool m_requestPayerHasBeenSet = false;
212 bool m_expectedBucketOwnerHasBeenSet = false;
213 bool m_objectIfMatchHasBeenSet = false;
214 bool m_customizedAccessLogTagHasBeenSet = false;
215};
216
217} // namespace Model
218} // namespace S3Crt
219} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
DeleteObjectAnnotationRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
DeleteObjectAnnotationRequest & WithKey(KeyT &&value)
void SetCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
virtual const char * GetServiceRequestName() const override
AWS_S3CRT_API Aws::String SerializePayload() const override
AWS_S3CRT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
DeleteObjectAnnotationRequest & WithObjectIfMatch(ObjectIfMatchT &&value)
DeleteObjectAnnotationRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
DeleteObjectAnnotationRequest & WithAnnotationName(AnnotationNameT &&value)
DeleteObjectAnnotationRequest & WithRequestPayer(RequestPayer value)
DeleteObjectAnnotationRequest & WithVersionId(VersionIdT &&value)
AWS_S3CRT_API DeleteObjectAnnotationRequest()=default
DeleteObjectAnnotationRequest & WithBucket(BucketT &&value)
DeleteObjectAnnotationRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&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