AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
GetObjectRetentionRequest.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/S3Request.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace S3
21{
22namespace Model
23{
24
28 {
29 public:
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "GetObjectRetention"; }
37
39
41
43
48
60 inline const Aws::String& GetBucket() const{ return m_bucket; }
61
73 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
74
86 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
87
99 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
100
112 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
113
125 inline GetObjectRetentionRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
126
138 inline GetObjectRetentionRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
139
151 inline GetObjectRetentionRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
152
153
158 inline const Aws::String& GetKey() const{ return m_key; }
159
164 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
165
170 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
171
176 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
177
182 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
183
188 inline GetObjectRetentionRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
189
194 inline GetObjectRetentionRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
195
200 inline GetObjectRetentionRequest& WithKey(const char* value) { SetKey(value); return *this;}
201
202
207 inline const Aws::String& GetVersionId() const{ return m_versionId; }
208
213 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
214
219 inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
220
225 inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
226
231 inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
232
237 inline GetObjectRetentionRequest& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
238
243 inline GetObjectRetentionRequest& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
244
249 inline GetObjectRetentionRequest& WithVersionId(const char* value) { SetVersionId(value); return *this;}
250
251
252
253 inline const RequestPayer& GetRequestPayer() const{ return m_requestPayer; }
254
255
256 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
257
258
259 inline void SetRequestPayer(const RequestPayer& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
260
261
262 inline void SetRequestPayer(RequestPayer&& value) { m_requestPayerHasBeenSet = true; m_requestPayer = std::move(value); }
263
264
265 inline GetObjectRetentionRequest& WithRequestPayer(const RequestPayer& value) { SetRequestPayer(value); return *this;}
266
267
268 inline GetObjectRetentionRequest& WithRequestPayer(RequestPayer&& value) { SetRequestPayer(std::move(value)); return *this;}
269
270
276 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
277
283 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
284
290 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
291
297 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
298
304 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
305
312
318 inline GetObjectRetentionRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
319
325 inline GetObjectRetentionRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
326
327
328
329 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
330
331
332 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
333
334
335 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
336
337
338 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
339
340
342
343
345
346
347 inline GetObjectRetentionRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
348
349
350 inline GetObjectRetentionRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
351
352
353 inline GetObjectRetentionRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
354
355
356 inline GetObjectRetentionRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
357
358
359 inline GetObjectRetentionRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
360
361
362 inline GetObjectRetentionRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
363
364
365 inline GetObjectRetentionRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
366
367 private:
368
369 Aws::String m_bucket;
370 bool m_bucketHasBeenSet = false;
371
372 Aws::String m_key;
373 bool m_keyHasBeenSet = false;
374
375 Aws::String m_versionId;
376 bool m_versionIdHasBeenSet = false;
377
378 RequestPayer m_requestPayer;
379 bool m_requestPayerHasBeenSet = false;
380
381 Aws::String m_expectedBucketOwner;
382 bool m_expectedBucketOwnerHasBeenSet = false;
383
384 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
385 bool m_customizedAccessLogTagHasBeenSet = false;
386 };
387
388} // namespace Model
389} // namespace S3
390} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
GetObjectRetentionRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
GetObjectRetentionRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
GetObjectRetentionRequest & WithVersionId(Aws::String &&value)
GetObjectRetentionRequest & WithExpectedBucketOwner(const Aws::String &value)
GetObjectRetentionRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
GetObjectRetentionRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
GetObjectRetentionRequest & WithRequestPayer(const RequestPayer &value)
GetObjectRetentionRequest & WithBucket(Aws::String &&value)
void SetExpectedBucketOwner(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
GetObjectRetentionRequest & WithVersionId(const Aws::String &value)
GetObjectRetentionRequest & WithRequestPayer(RequestPayer &&value)
GetObjectRetentionRequest & WithBucket(const Aws::String &value)
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
GetObjectRetentionRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
GetObjectRetentionRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetObjectRetentionRequest & WithExpectedBucketOwner(Aws::String &&value)
GetObjectRetentionRequest & WithBucket(const char *value)
GetObjectRetentionRequest & WithKey(Aws::String &&value)
GetObjectRetentionRequest & WithVersionId(const char *value)
GetObjectRetentionRequest & WithKey(const Aws::String &value)
GetObjectRetentionRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
GetObjectRetentionRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
GetObjectRetentionRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
GetObjectRetentionRequest & WithExpectedBucketOwner(const char *value)
GetObjectRetentionRequest & WithKey(const char *value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_S3_API Aws::String SerializePayload() 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_string< char, std::char_traits< char >, Aws::Allocator< char > > String