AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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;
48
52 AWS_S3_API EndpointParameters GetEndpointContextParams() const override;
53
55
77 inline const Aws::String& GetBucket() const{ return m_bucket; }
78 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
79 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
80 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
81 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
82 inline RestoreObjectRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
83 inline RestoreObjectRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
84 inline RestoreObjectRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
86
88
91 inline const Aws::String& GetKey() const{ return m_key; }
92 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
93 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
94 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
95 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
96 inline RestoreObjectRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
97 inline RestoreObjectRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
98 inline RestoreObjectRequest& WithKey(const char* value) { SetKey(value); return *this;}
100
102
105 inline const Aws::String& GetVersionId() const{ return m_versionId; }
106 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
107 inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
108 inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
109 inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
110 inline RestoreObjectRequest& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
111 inline RestoreObjectRequest& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
112 inline RestoreObjectRequest& WithVersionId(const char* value) { SetVersionId(value); return *this;}
114
116
117 inline const RestoreRequest& GetRestoreRequest() const{ return m_restoreRequest; }
118 inline bool RestoreRequestHasBeenSet() const { return m_restoreRequestHasBeenSet; }
119 inline void SetRestoreRequest(const RestoreRequest& value) { m_restoreRequestHasBeenSet = true; m_restoreRequest = value; }
120 inline void SetRestoreRequest(RestoreRequest&& value) { m_restoreRequestHasBeenSet = true; m_restoreRequest = std::move(value); }
121 inline RestoreObjectRequest& WithRestoreRequest(const RestoreRequest& value) { SetRestoreRequest(value); return *this;}
122 inline RestoreObjectRequest& WithRestoreRequest(RestoreRequest&& value) { SetRestoreRequest(std::move(value)); return *this;}
124
126
127 inline const RequestPayer& GetRequestPayer() const{ return m_requestPayer; }
128 inline bool RequestPayerHasBeenSet() const { return m_requestPayerHasBeenSet; }
129 inline void SetRequestPayer(const RequestPayer& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
130 inline void SetRequestPayer(RequestPayer&& value) { m_requestPayerHasBeenSet = true; m_requestPayer = std::move(value); }
131 inline RestoreObjectRequest& WithRequestPayer(const RequestPayer& value) { SetRequestPayer(value); return *this;}
132 inline RestoreObjectRequest& WithRequestPayer(RequestPayer&& value) { SetRequestPayer(std::move(value)); return *this;}
134
136
148 inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
149 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
150 inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
151 inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); }
153 inline RestoreObjectRequest& WithChecksumAlgorithm(ChecksumAlgorithm&& value) { SetChecksumAlgorithm(std::move(value)); return *this;}
155
157
162 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
163 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
164 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
165 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
166 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
168 inline RestoreObjectRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;}
169 inline RestoreObjectRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;}
171
173
174 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
175 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
176 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
177 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
180 inline RestoreObjectRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
181 inline RestoreObjectRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
182 inline RestoreObjectRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
183 inline RestoreObjectRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
184 inline RestoreObjectRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
185 inline RestoreObjectRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
186 inline RestoreObjectRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
188 private:
189
190 Aws::String m_bucket;
191 bool m_bucketHasBeenSet = false;
192
193 Aws::String m_key;
194 bool m_keyHasBeenSet = false;
195
196 Aws::String m_versionId;
197 bool m_versionIdHasBeenSet = false;
198
199 RestoreRequest m_restoreRequest;
200 bool m_restoreRequestHasBeenSet = false;
201
202 RequestPayer m_requestPayer;
203 bool m_requestPayerHasBeenSet = false;
204
205 ChecksumAlgorithm m_checksumAlgorithm;
206 bool m_checksumAlgorithmHasBeenSet = false;
207
208 Aws::String m_expectedBucketOwner;
209 bool m_expectedBucketOwnerHasBeenSet = false;
210
211 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
212 bool m_customizedAccessLogTagHasBeenSet = false;
213 };
214
215} // namespace Model
216} // namespace S3
217} // namespace Aws
RestoreObjectRequest & WithBucket(Aws::String &&value)
void SetRestoreRequest(RestoreRequest &&value)
RestoreObjectRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
void SetRequestPayer(const RequestPayer &value)
RestoreObjectRequest & WithVersionId(Aws::String &&value)
RestoreObjectRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
RestoreObjectRequest & WithKey(const Aws::String &value)
void SetKey(const Aws::String &value)
void SetChecksumAlgorithm(ChecksumAlgorithm &&value)
RestoreObjectRequest & WithKey(Aws::String &&value)
RestoreObjectRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
RestoreObjectRequest & WithBucket(const Aws::String &value)
void SetRequestPayer(RequestPayer &&value)
RestoreObjectRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
AWS_S3_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
void SetRestoreRequest(const RestoreRequest &value)
AWS_S3_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
RestoreObjectRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
AWS_S3_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
RestoreObjectRequest & WithExpectedBucketOwner(const Aws::String &value)
AWS_S3_API Aws::String GetChecksumAlgorithmName() const override
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
void SetExpectedBucketOwner(const Aws::String &value)
RestoreObjectRequest & WithKey(const char *value)
RestoreObjectRequest & WithExpectedBucketOwner(Aws::String &&value)
RestoreObjectRequest & WithBucket(const char *value)
void SetBucket(const Aws::String &value)
const RequestPayer & GetRequestPayer() const
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
RestoreObjectRequest & WithChecksumAlgorithm(const ChecksumAlgorithm &value)
RestoreObjectRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
RestoreObjectRequest & WithRestoreRequest(const RestoreRequest &value)
const Aws::String & GetBucket() const
RestoreObjectRequest & WithVersionId(const char *value)
RestoreObjectRequest & WithRequestPayer(RequestPayer &&value)
RestoreObjectRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
AWS_S3_API EndpointParameters GetEndpointContextParams() const override
const Aws::String & GetExpectedBucketOwner() const
RestoreObjectRequest & WithRequestPayer(const RequestPayer &value)
const RestoreRequest & GetRestoreRequest() const
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
AWS_S3_API Aws::String SerializePayload() const override
void SetExpectedBucketOwner(Aws::String &&value)
const Aws::String & GetVersionId() const
void SetChecksumAlgorithm(const ChecksumAlgorithm &value)
RestoreObjectRequest & WithExpectedBucketOwner(const char *value)
const ChecksumAlgorithm & GetChecksumAlgorithm() const
RestoreObjectRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
RestoreObjectRequest & WithChecksumAlgorithm(ChecksumAlgorithm &&value)
RestoreObjectRequest & WithVersionId(const Aws::String &value)
RestoreObjectRequest & WithRestoreRequest(RestoreRequest &&value)
virtual const char * GetServiceRequestName() const override
void SetVersionId(const Aws::String &value)
RestoreObjectRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *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