AWS SDK for C++

AWS SDK for C++ Version 1.11.686

Loading...
Searching...
No Matches
RestoreObjectRequest.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/ChecksumAlgorithm.h>
12#include <aws/s3/model/RequestPayer.h>
13#include <aws/s3/model/RestoreRequest.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Http {
19class URI;
20} // namespace Http
21namespace S3 {
22namespace Model {
23
27 public:
28 AWS_S3_API RestoreObjectRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "RestoreObject"; }
35
36 AWS_S3_API Aws::String SerializePayload() const override;
37
38 AWS_S3_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
41
42 AWS_S3_API bool HasEmbeddedError(IOStream& body, const Http::HeaderValueCollection& header) const override;
43 AWS_S3_API Aws::String GetChecksumAlgorithmName() const override;
47 AWS_S3_API EndpointParameters GetEndpointContextParams() const override;
48
50
74 inline const Aws::String& GetBucket() const { return m_bucket; }
75 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
76 template <typename BucketT = Aws::String>
77 void SetBucket(BucketT&& value) {
78 m_bucketHasBeenSet = true;
79 m_bucket = std::forward<BucketT>(value);
80 }
81 template <typename BucketT = Aws::String>
82 RestoreObjectRequest& WithBucket(BucketT&& value) {
83 SetBucket(std::forward<BucketT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetKey() const { return m_key; }
93 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
94 template <typename KeyT = Aws::String>
95 void SetKey(KeyT&& value) {
96 m_keyHasBeenSet = true;
97 m_key = std::forward<KeyT>(value);
98 }
99 template <typename KeyT = Aws::String>
101 SetKey(std::forward<KeyT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetVersionId() const { return m_versionId; }
111 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
112 template <typename VersionIdT = Aws::String>
113 void SetVersionId(VersionIdT&& value) {
114 m_versionIdHasBeenSet = true;
115 m_versionId = std::forward<VersionIdT>(value);
116 }
117 template <typename VersionIdT = Aws::String>
118 RestoreObjectRequest& WithVersionId(VersionIdT&& value) {
119 SetVersionId(std::forward<VersionIdT>(value));
120 return *this;
121 }
123
125
126 inline const RestoreRequest& GetRestoreRequest() const { return m_restoreRequest; }
127 inline bool RestoreRequestHasBeenSet() const { return m_restoreRequestHasBeenSet; }
128 template <typename RestoreRequestT = RestoreRequest>
129 void SetRestoreRequest(RestoreRequestT&& value) {
130 m_restoreRequestHasBeenSet = true;
131 m_restoreRequest = std::forward<RestoreRequestT>(value);
132 }
133 template <typename RestoreRequestT = RestoreRequest>
134 RestoreObjectRequest& WithRestoreRequest(RestoreRequestT&& value) {
135 SetRestoreRequest(std::forward<RestoreRequestT>(value));
136 return *this;
137 }
139
141
142 inline RequestPayer GetRequestPayer() const { return m_requestPayer; }
143 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
144 inline void SetRequestPayer(RequestPayer value) {
145 m_requestPayerHasBeenSet = true;
146 m_requestPayer = value;
147 }
149 SetRequestPayer(value);
150 return *this;
151 }
153
155
167 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
168 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
170 m_checksumAlgorithmHasBeenSet = true;
171 m_checksumAlgorithm = value;
172 }
175 return *this;
176 }
178
180
185 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
186 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
187 template <typename ExpectedBucketOwnerT = Aws::String>
188 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
189 m_expectedBucketOwnerHasBeenSet = true;
190 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
191 }
192 template <typename ExpectedBucketOwnerT = Aws::String>
193 RestoreObjectRequest& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
194 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
195 return *this;
196 }
198
200
201 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
202 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
203 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
204 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
205 m_customizedAccessLogTagHasBeenSet = true;
206 m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value);
207 }
208 template <typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
209 RestoreObjectRequest& WithCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) {
210 SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value));
211 return *this;
212 }
213 template <typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
214 RestoreObjectRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
215 m_customizedAccessLogTagHasBeenSet = true;
216 m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value));
217 return *this;
218 }
220 private:
221 Aws::String m_bucket;
222 bool m_bucketHasBeenSet = false;
223
224 Aws::String m_key;
225 bool m_keyHasBeenSet = false;
226
227 Aws::String m_versionId;
228 bool m_versionIdHasBeenSet = false;
229
230 RestoreRequest m_restoreRequest;
231 bool m_restoreRequestHasBeenSet = false;
232
233 RequestPayer m_requestPayer{RequestPayer::NOT_SET};
234 bool m_requestPayerHasBeenSet = false;
235
237 bool m_checksumAlgorithmHasBeenSet = false;
238
239 Aws::String m_expectedBucketOwner;
240 bool m_expectedBucketOwnerHasBeenSet = false;
241
242 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
243 bool m_customizedAccessLogTagHasBeenSet = false;
244};
245
246} // namespace Model
247} // namespace S3
248} // namespace Aws
void SetChecksumAlgorithm(ChecksumAlgorithm value)
RestoreObjectRequest & WithRequestPayer(RequestPayer value)
AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
RestoreObjectRequest & WithCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_S3_API Aws::String GetChecksumAlgorithmName() const override
RestoreObjectRequest & WithChecksumAlgorithm(ChecksumAlgorithm value)
RestoreObjectRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
void SetExpectedBucketOwner(ExpectedBucketOwnerT &&value)
ChecksumAlgorithm GetChecksumAlgorithm() const
RestoreObjectRequest & WithRestoreRequest(RestoreRequestT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
RestoreObjectRequest & AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT &&key, CustomizedAccessLogTagValueT &&value)
const Aws::String & GetBucket() const
AWS_S3_API RestoreObjectRequest()=default
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
const Aws::String & GetExpectedBucketOwner() const
const RestoreRequest & GetRestoreRequest() const
AWS_S3_API Aws::String SerializePayload() const override
const Aws::String & GetVersionId() const
void SetRestoreRequest(RestoreRequestT &&value)
RestoreObjectRequest & WithBucket(BucketT &&value)
RestoreObjectRequest & WithVersionId(VersionIdT &&value)
virtual const char * GetServiceRequestName() const override
void SetCustomizedAccessLogTag(CustomizedAccessLogTagT &&value)
RestoreObjectRequest & WithKey(KeyT &&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_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String