AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
GetObjectLegalHoldRequest.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 "GetObjectLegalHold"; }
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 GetObjectLegalHoldRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
126
138 inline GetObjectLegalHoldRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
139
151 inline GetObjectLegalHoldRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
152
153
157 inline const Aws::String& GetKey() const{ return m_key; }
158
162 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
163
167 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
168
172 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
173
177 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
178
182 inline GetObjectLegalHoldRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
183
187 inline GetObjectLegalHoldRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
188
192 inline GetObjectLegalHoldRequest& WithKey(const char* value) { SetKey(value); return *this;}
193
194
199 inline const Aws::String& GetVersionId() const{ return m_versionId; }
200
205 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
206
211 inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
212
217 inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
218
223 inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
224
229 inline GetObjectLegalHoldRequest& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
230
235 inline GetObjectLegalHoldRequest& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
236
241 inline GetObjectLegalHoldRequest& WithVersionId(const char* value) { SetVersionId(value); return *this;}
242
243
244
245 inline const RequestPayer& GetRequestPayer() const{ return m_requestPayer; }
246
247
248 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
249
250
251 inline void SetRequestPayer(const RequestPayer& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
252
253
254 inline void SetRequestPayer(RequestPayer&& value) { m_requestPayerHasBeenSet = true; m_requestPayer = std::move(value); }
255
256
257 inline GetObjectLegalHoldRequest& WithRequestPayer(const RequestPayer& value) { SetRequestPayer(value); return *this;}
258
259
260 inline GetObjectLegalHoldRequest& WithRequestPayer(RequestPayer&& value) { SetRequestPayer(std::move(value)); return *this;}
261
262
268 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
269
275 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
276
282 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
283
289 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
290
296 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
297
304
310 inline GetObjectLegalHoldRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
311
317 inline GetObjectLegalHoldRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
318
319
320
321 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
322
323
324 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
325
326
327 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
328
329
330 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
331
332
334
335
337
338
339 inline GetObjectLegalHoldRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
340
341
342 inline GetObjectLegalHoldRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
343
344
345 inline GetObjectLegalHoldRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
346
347
348 inline GetObjectLegalHoldRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
349
350
351 inline GetObjectLegalHoldRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
352
353
354 inline GetObjectLegalHoldRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
355
356
357 inline GetObjectLegalHoldRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
358
359 private:
360
361 Aws::String m_bucket;
362 bool m_bucketHasBeenSet = false;
363
364 Aws::String m_key;
365 bool m_keyHasBeenSet = false;
366
367 Aws::String m_versionId;
368 bool m_versionIdHasBeenSet = false;
369
370 RequestPayer m_requestPayer;
371 bool m_requestPayerHasBeenSet = false;
372
373 Aws::String m_expectedBucketOwner;
374 bool m_expectedBucketOwnerHasBeenSet = false;
375
376 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
377 bool m_customizedAccessLogTagHasBeenSet = false;
378 };
379
380} // namespace Model
381} // namespace S3
382} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
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