AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
GetObjectAclRequest.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 "GetObjectAcl"; }
37
39
41
43
48
61 inline const Aws::String& GetBucket() const{ return m_bucket; }
62
75 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
76
89 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
90
103 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
104
117 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
118
131 inline GetObjectAclRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
132
145 inline GetObjectAclRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
146
159 inline GetObjectAclRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
160
161
165 inline const Aws::String& GetKey() const{ return m_key; }
166
170 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
171
175 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
176
180 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
181
185 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
186
190 inline GetObjectAclRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
191
195 inline GetObjectAclRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
196
200 inline GetObjectAclRequest& WithKey(const char* value) { SetKey(value); return *this;}
201
202
206 inline const Aws::String& GetVersionId() const{ return m_versionId; }
207
211 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
212
216 inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
217
221 inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
222
226 inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
227
231 inline GetObjectAclRequest& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
232
236 inline GetObjectAclRequest& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
237
241 inline GetObjectAclRequest& 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 GetObjectAclRequest& WithRequestPayer(const RequestPayer& value) { SetRequestPayer(value); return *this;}
258
259
260 inline GetObjectAclRequest& 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 GetObjectAclRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
311
317 inline GetObjectAclRequest& 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 GetObjectAclRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
340
341
342 inline GetObjectAclRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
343
344
345 inline GetObjectAclRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
346
347
348 inline GetObjectAclRequest& 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 GetObjectAclRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
352
353
354 inline GetObjectAclRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
355
356
357 inline GetObjectAclRequest& 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
void SetExpectedBucketOwner(Aws::String &&value)
void SetRequestPayer(const RequestPayer &value)
GetObjectAclRequest & WithRequestPayer(RequestPayer &&value)
GetObjectAclRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
GetObjectAclRequest & WithBucket(const char *value)
void SetRequestPayer(RequestPayer &&value)
GetObjectAclRequest & WithExpectedBucketOwner(const char *value)
void SetExpectedBucketOwner(const char *value)
GetObjectAclRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
GetObjectAclRequest & WithBucket(const Aws::String &value)
void SetVersionId(Aws::String &&value)
GetObjectAclRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
GetObjectAclRequest & WithKey(const char *value)
GetObjectAclRequest & WithVersionId(const char *value)
AWS_S3_API Aws::String SerializePayload() const override
const Aws::String & GetExpectedBucketOwner() const
GetObjectAclRequest & WithExpectedBucketOwner(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
GetObjectAclRequest & WithBucket(Aws::String &&value)
void SetVersionId(const Aws::String &value)
void SetBucket(const Aws::String &value)
const RequestPayer & GetRequestPayer() const
GetObjectAclRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
GetObjectAclRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
void SetKey(const Aws::String &value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
GetObjectAclRequest & WithVersionId(Aws::String &&value)
GetObjectAclRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
GetObjectAclRequest & WithRequestPayer(const RequestPayer &value)
const Aws::String & GetVersionId() const
void SetExpectedBucketOwner(const Aws::String &value)
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetObjectAclRequest & WithExpectedBucketOwner(Aws::String &&value)
const Aws::String & GetKey() const
GetObjectAclRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
GetObjectAclRequest & WithKey(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
GetObjectAclRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetObjectAclRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
const Aws::String & GetBucket() const
GetObjectAclRequest & WithKey(const Aws::String &value)
GetObjectAclRequest & WithVersionId(const Aws::String &value)
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