AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
30 AWS_S3_API GetObjectTorrentRequest() = default;
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 template<typename BucketT = Aws::String>
57 void SetBucket(BucketT&& value) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
58 template<typename BucketT = Aws::String>
59 GetObjectTorrentRequest& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
61
63
66 inline const Aws::String& GetKey() const { return m_key; }
67 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
68 template<typename KeyT = Aws::String>
69 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
70 template<typename KeyT = Aws::String>
71 GetObjectTorrentRequest& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
73
75
76 inline RequestPayer GetRequestPayer() const { return m_requestPayer; }
77 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
78 inline void SetRequestPayer(RequestPayer value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
81
83
88 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
89 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
90 template<typename ExpectedBucketOwnerT = Aws::String>
91 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value); }
92 template<typename ExpectedBucketOwnerT = Aws::String>
93 GetObjectTorrentRequest& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) { SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value)); return *this;}
95
97
98 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
99 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
100 template<typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
101 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value); }
102 template<typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
103 GetObjectTorrentRequest& WithCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) { SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value)); return *this;}
104 template<typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
105 GetObjectTorrentRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
106 m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value)); return *this;
107 }
109 private:
110
111 Aws::String m_bucket;
112 bool m_bucketHasBeenSet = false;
113
114 Aws::String m_key;
115 bool m_keyHasBeenSet = false;
116
117 RequestPayer m_requestPayer{RequestPayer::NOT_SET};
118 bool m_requestPayerHasBeenSet = false;
119
120 Aws::String m_expectedBucketOwner;
121 bool m_expectedBucketOwnerHasBeenSet = false;
122
123 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
124 bool m_customizedAccessLogTagHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace S3
129} // 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
const Aws::String & GetExpectedBucketOwner() const
AWS_S3_API Aws::String SerializePayload() const override
GetObjectTorrentRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&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