AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RestoreObjectRequest.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/RestoreRequest.h>
11#include <aws/s3/model/RequestPayer.h>
12#include <aws/s3/model/ChecksumAlgorithm.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Http
19{
20 class URI;
21} //namespace Http
22namespace S3
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_S3_API RestoreObjectRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "RestoreObject"; }
39
40 AWS_S3_API Aws::String SerializePayload() const override;
41
42 AWS_S3_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43
45
46 AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override;
47 AWS_S3_API Aws::String GetChecksumAlgorithmName() const override;
51 AWS_S3_API EndpointParameters GetEndpointContextParams() const override;
52
54
78 inline const Aws::String& GetBucket() const { return m_bucket; }
79 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
80 template<typename BucketT = Aws::String>
81 void SetBucket(BucketT&& value) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
82 template<typename BucketT = Aws::String>
83 RestoreObjectRequest& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
85
87
90 inline const Aws::String& GetKey() const { return m_key; }
91 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
92 template<typename KeyT = Aws::String>
93 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
94 template<typename KeyT = Aws::String>
95 RestoreObjectRequest& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
97
99
102 inline const Aws::String& GetVersionId() const { return m_versionId; }
103 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
104 template<typename VersionIdT = Aws::String>
105 void SetVersionId(VersionIdT&& value) { m_versionIdHasBeenSet = true; m_versionId = std::forward<VersionIdT>(value); }
106 template<typename VersionIdT = Aws::String>
107 RestoreObjectRequest& WithVersionId(VersionIdT&& value) { SetVersionId(std::forward<VersionIdT>(value)); return *this;}
109
111
112 inline const RestoreRequest& GetRestoreRequest() const { return m_restoreRequest; }
113 inline bool RestoreRequestHasBeenSet() const { return m_restoreRequestHasBeenSet; }
114 template<typename RestoreRequestT = RestoreRequest>
115 void SetRestoreRequest(RestoreRequestT&& value) { m_restoreRequestHasBeenSet = true; m_restoreRequest = std::forward<RestoreRequestT>(value); }
116 template<typename RestoreRequestT = RestoreRequest>
117 RestoreObjectRequest& WithRestoreRequest(RestoreRequestT&& value) { SetRestoreRequest(std::forward<RestoreRequestT>(value)); return *this;}
119
121
122 inline RequestPayer GetRequestPayer() const { return m_requestPayer; }
123 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
124 inline void SetRequestPayer(RequestPayer value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
127
129
141 inline ChecksumAlgorithm GetChecksumAlgorithm() const { return m_checksumAlgorithm; }
142 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
143 inline void SetChecksumAlgorithm(ChecksumAlgorithm value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
146
148
153 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
154 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
155 template<typename ExpectedBucketOwnerT = Aws::String>
156 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value); }
157 template<typename ExpectedBucketOwnerT = Aws::String>
158 RestoreObjectRequest& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) { SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value)); return *this;}
160
162
163 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const { return m_customizedAccessLogTag; }
164 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
165 template<typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
166 void SetCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::forward<CustomizedAccessLogTagT>(value); }
167 template<typename CustomizedAccessLogTagT = Aws::Map<Aws::String, Aws::String>>
168 RestoreObjectRequest& WithCustomizedAccessLogTag(CustomizedAccessLogTagT&& value) { SetCustomizedAccessLogTag(std::forward<CustomizedAccessLogTagT>(value)); return *this;}
169 template<typename CustomizedAccessLogTagKeyT = Aws::String, typename CustomizedAccessLogTagValueT = Aws::String>
170 RestoreObjectRequest& AddCustomizedAccessLogTag(CustomizedAccessLogTagKeyT&& key, CustomizedAccessLogTagValueT&& value) {
171 m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::forward<CustomizedAccessLogTagKeyT>(key), std::forward<CustomizedAccessLogTagValueT>(value)); return *this;
172 }
174 private:
175
176 Aws::String m_bucket;
177 bool m_bucketHasBeenSet = false;
178
179 Aws::String m_key;
180 bool m_keyHasBeenSet = false;
181
182 Aws::String m_versionId;
183 bool m_versionIdHasBeenSet = false;
184
185 RestoreRequest m_restoreRequest;
186 bool m_restoreRequestHasBeenSet = false;
187
188 RequestPayer m_requestPayer{RequestPayer::NOT_SET};
189 bool m_requestPayerHasBeenSet = false;
190
192 bool m_checksumAlgorithmHasBeenSet = false;
193
194 Aws::String m_expectedBucketOwner;
195 bool m_expectedBucketOwnerHasBeenSet = false;
196
197 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
198 bool m_customizedAccessLogTagHasBeenSet = false;
199 };
200
201} // namespace Model
202} // namespace S3
203} // 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: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_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String