AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetObjectTorrentRequest.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/S3Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3/model/RequestPayer.h>
11#include <aws/core/utils/memory/stl/AWSMap.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 "GetObjectTorrent"; }
37
38 AWS_S3_API Aws::String SerializePayload() const override;
39
40 AWS_S3_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
43
47 AWS_S3_API EndpointParameters GetEndpointContextParams() const override;
48
50
54 inline const Aws::String& GetBucket() const{ return m_bucket; }
55 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
56 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
57 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
58 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
59 inline GetObjectTorrentRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
60 inline GetObjectTorrentRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
61 inline GetObjectTorrentRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
63
65
68 inline const Aws::String& GetKey() const{ return m_key; }
69 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
70 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
71 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
72 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
73 inline GetObjectTorrentRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
74 inline GetObjectTorrentRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
75 inline GetObjectTorrentRequest& WithKey(const char* value) { SetKey(value); return *this;}
77
79
80 inline const RequestPayer& GetRequestPayer() const{ return m_requestPayer; }
81 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
82 inline void SetRequestPayer(const RequestPayer& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
83 inline void SetRequestPayer(RequestPayer&& value) { m_requestPayerHasBeenSet = true; m_requestPayer = std::move(value); }
84 inline GetObjectTorrentRequest& WithRequestPayer(const RequestPayer& value) { SetRequestPayer(value); return *this;}
85 inline GetObjectTorrentRequest& WithRequestPayer(RequestPayer&& value) { SetRequestPayer(std::move(value)); return *this;}
87
89
94 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
95 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
96 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
97 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
98 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
100 inline GetObjectTorrentRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
101 inline GetObjectTorrentRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
103
105
106 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
107 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
108 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
109 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
112 inline GetObjectTorrentRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
113 inline GetObjectTorrentRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
114 inline GetObjectTorrentRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
115 inline GetObjectTorrentRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
116 inline GetObjectTorrentRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
117 inline GetObjectTorrentRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
118 inline GetObjectTorrentRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
120 private:
121
122 Aws::String m_bucket;
123 bool m_bucketHasBeenSet = false;
124
125 Aws::String m_key;
126 bool m_keyHasBeenSet = false;
127
128 RequestPayer m_requestPayer;
129 bool m_requestPayerHasBeenSet = false;
130
131 Aws::String m_expectedBucketOwner;
132 bool m_expectedBucketOwnerHasBeenSet = false;
133
134 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
135 bool m_customizedAccessLogTagHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace S3
140} // namespace Aws
GetObjectTorrentRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
GetObjectTorrentRequest & WithRequestPayer(const RequestPayer &value)
GetObjectTorrentRequest & WithExpectedBucketOwner(Aws::String &&value)
GetObjectTorrentRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetObjectTorrentRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
GetObjectTorrentRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
GetObjectTorrentRequest & WithBucket(const char *value)
GetObjectTorrentRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
GetObjectTorrentRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetObjectTorrentRequest & WithRequestPayer(RequestPayer &&value)
GetObjectTorrentRequest & WithKey(Aws::String &&value)
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
GetObjectTorrentRequest & WithBucket(const Aws::String &value)
GetObjectTorrentRequest & WithKey(const char *value)
GetObjectTorrentRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
GetObjectTorrentRequest & WithBucket(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetExpectedBucketOwner(const Aws::String &value)
void SetRequestPayer(const RequestPayer &value)
GetObjectTorrentRequest & WithExpectedBucketOwner(const Aws::String &value)
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::String & GetExpectedBucketOwner() const
GetObjectTorrentRequest & WithExpectedBucketOwner(const char *value)
GetObjectTorrentRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
AWS_S3_API Aws::String SerializePayload() const override
GetObjectTorrentRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
GetObjectTorrentRequest & WithKey(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