AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
GetObjectTorrentRequest.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/S3Request.h>
10#include <aws/s3/S3_EXPORTS.h>
11#include <aws/s3/model/RequestPayer.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace S3 {
20namespace Model {
21
25 public:
26 AWS_S3_API GetObjectTorrentRequest() = 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 "GetObjectTorrent"; }
33
34 AWS_S3_API Aws::String SerializePayload() const override;
35
36 AWS_S3_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
37
39
43 AWS_S3_API EndpointParameters GetEndpointContextParams() const override;
44
46
50 inline const Aws::String& GetBucket() const { return m_bucket; }
51 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
52 template <typename BucketT = Aws::String>
53 void SetBucket(BucketT&& value) {
54 m_bucketHasBeenSet = true;
55 m_bucket = std::forward<BucketT>(value);
56 }
57 template <typename BucketT = Aws::String>
59 SetBucket(std::forward<BucketT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetKey() const { return m_key; }
69 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
70 template <typename KeyT = Aws::String>
71 void SetKey(KeyT&& value) {
72 m_keyHasBeenSet = true;
73 m_key = std::forward<KeyT>(value);
74 }
75 template <typename KeyT = Aws::String>
77 SetKey(std::forward<KeyT>(value));
78 return *this;
79 }
81
83
84 inline RequestPayer GetRequestPayer() const { return m_requestPayer; }
85 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
86 inline void SetRequestPayer(RequestPayer value) {
87 m_requestPayerHasBeenSet = true;
88 m_requestPayer = value;
89 }
91 SetRequestPayer(value);
92 return *this;
93 }
95
97
102 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
103 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
104 template <typename ExpectedBucketOwnerT = Aws::String>
105 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
106 m_expectedBucketOwnerHasBeenSet = true;
107 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
108 }
109 template <typename ExpectedBucketOwnerT = Aws::String>
110 GetObjectTorrentRequest& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
111 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
112 return *this;
113 }
115
117
118 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
119 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
120 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
121 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
122 m_customizedAccessLogTagHasBeenSet = true;
123 m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value);
124 }
125 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
126 GetObjectTorrentRequest& WithCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
127 SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value));
128 return *this;
129 }
130 template <typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
131 GetObjectTorrentRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
132 m_customizedAccessLogTagHasBeenSet = true;
133 m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
134 return *this;
135 }
137 private:
138 Aws::String m_bucket;
139 bool m_bucketHasBeenSet = false;
140
141 Aws::String m_key;
142 bool m_keyHasBeenSet = false;
143
144 RequestPayer m_requestPayer{RequestPayer::NOT_SET};
145 bool m_requestPayerHasBeenSet = false;
146
147 Aws::String m_expectedBucketOwner;
148 bool m_expectedBucketOwnerHasBeenSet = false;
149
150 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
151 bool m_customizedAccessLogTagHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace S3
156} // namespace Aws
GetObjectTorrentRequest & WithKey(KeyT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetObjectTorrentRequest & WithBucket(BucketT &&value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
void SetCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
AWS_S3_API GetObjectTorrentRequest()=default
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetExpectedBucketOwner(ExpectedBucketOwnerT &&value)
GetObjectTorrentRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
GetObjectTorrentRequest & WithRequestPayer(RequestPayer value)
GetObjectTorrentRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
virtual const char * GetServiceRequestName() const override
AWS_S3_API Aws::String SerializePayload() const override
GetObjectTorrentRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
Aws::Endpoint::EndpointParameters EndpointParameters
Definition S3Request.h:19
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