blob: 8f0eab338b558b5bc7e65eeb04f18299f6e36644 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
|
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/s3/S3_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/s3/model/Encryption.h>
#include <aws/s3/model/ObjectCannedACL.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/s3/model/Tagging.h>
#include <aws/s3/model/StorageClass.h>
#include <aws/s3/model/Grant.h>
#include <aws/s3/model/MetadataEntry.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace S3
{
namespace Model
{
/**
* <p>Describes an Amazon S3 location that will receive the results of the restore
* request.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/S3Location">AWS API
* Reference</a></p>
*/
class AWS_S3_API S3Location
{
public:
S3Location();
S3Location(const Aws::Utils::Xml::XmlNode& xmlNode);
S3Location& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
/**
* <p>The name of the bucket where the restore results will be placed.</p>
*/
inline const Aws::String& GetBucketName() const{ return m_bucketName; }
/**
* <p>The name of the bucket where the restore results will be placed.</p>
*/
inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
/**
* <p>The name of the bucket where the restore results will be placed.</p>
*/
inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
/**
* <p>The name of the bucket where the restore results will be placed.</p>
*/
inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); }
/**
* <p>The name of the bucket where the restore results will be placed.</p>
*/
inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
/**
* <p>The name of the bucket where the restore results will be placed.</p>
*/
inline S3Location& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
/**
* <p>The name of the bucket where the restore results will be placed.</p>
*/
inline S3Location& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
/**
* <p>The name of the bucket where the restore results will be placed.</p>
*/
inline S3Location& WithBucketName(const char* value) { SetBucketName(value); return *this;}
/**
* <p>The prefix that is prepended to the restore results for this request.</p>
*/
inline const Aws::String& GetPrefix() const{ return m_prefix; }
/**
* <p>The prefix that is prepended to the restore results for this request.</p>
*/
inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
/**
* <p>The prefix that is prepended to the restore results for this request.</p>
*/
inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
/**
* <p>The prefix that is prepended to the restore results for this request.</p>
*/
inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
/**
* <p>The prefix that is prepended to the restore results for this request.</p>
*/
inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
/**
* <p>The prefix that is prepended to the restore results for this request.</p>
*/
inline S3Location& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
/**
* <p>The prefix that is prepended to the restore results for this request.</p>
*/
inline S3Location& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
/**
* <p>The prefix that is prepended to the restore results for this request.</p>
*/
inline S3Location& WithPrefix(const char* value) { SetPrefix(value); return *this;}
inline const Encryption& GetEncryption() const{ return m_encryption; }
inline bool EncryptionHasBeenSet() const { return m_encryptionHasBeenSet; }
inline void SetEncryption(const Encryption& value) { m_encryptionHasBeenSet = true; m_encryption = value; }
inline void SetEncryption(Encryption&& value) { m_encryptionHasBeenSet = true; m_encryption = std::move(value); }
inline S3Location& WithEncryption(const Encryption& value) { SetEncryption(value); return *this;}
inline S3Location& WithEncryption(Encryption&& value) { SetEncryption(std::move(value)); return *this;}
/**
* <p>The canned ACL to apply to the restore results.</p>
*/
inline const ObjectCannedACL& GetCannedACL() const{ return m_cannedACL; }
/**
* <p>The canned ACL to apply to the restore results.</p>
*/
inline bool CannedACLHasBeenSet() const { return m_cannedACLHasBeenSet; }
/**
* <p>The canned ACL to apply to the restore results.</p>
*/
inline void SetCannedACL(const ObjectCannedACL& value) { m_cannedACLHasBeenSet = true; m_cannedACL = value; }
/**
* <p>The canned ACL to apply to the restore results.</p>
*/
inline void SetCannedACL(ObjectCannedACL&& value) { m_cannedACLHasBeenSet = true; m_cannedACL = std::move(value); }
/**
* <p>The canned ACL to apply to the restore results.</p>
*/
inline S3Location& WithCannedACL(const ObjectCannedACL& value) { SetCannedACL(value); return *this;}
/**
* <p>The canned ACL to apply to the restore results.</p>
*/
inline S3Location& WithCannedACL(ObjectCannedACL&& value) { SetCannedACL(std::move(value)); return *this;}
/**
* <p>A list of grants that control access to the staged results.</p>
*/
inline const Aws::Vector<Grant>& GetAccessControlList() const{ return m_accessControlList; }
/**
* <p>A list of grants that control access to the staged results.</p>
*/
inline bool AccessControlListHasBeenSet() const { return m_accessControlListHasBeenSet; }
/**
* <p>A list of grants that control access to the staged results.</p>
*/
inline void SetAccessControlList(const Aws::Vector<Grant>& value) { m_accessControlListHasBeenSet = true; m_accessControlList = value; }
/**
* <p>A list of grants that control access to the staged results.</p>
*/
inline void SetAccessControlList(Aws::Vector<Grant>&& value) { m_accessControlListHasBeenSet = true; m_accessControlList = std::move(value); }
/**
* <p>A list of grants that control access to the staged results.</p>
*/
inline S3Location& WithAccessControlList(const Aws::Vector<Grant>& value) { SetAccessControlList(value); return *this;}
/**
* <p>A list of grants that control access to the staged results.</p>
*/
inline S3Location& WithAccessControlList(Aws::Vector<Grant>&& value) { SetAccessControlList(std::move(value)); return *this;}
/**
* <p>A list of grants that control access to the staged results.</p>
*/
inline S3Location& AddAccessControlList(const Grant& value) { m_accessControlListHasBeenSet = true; m_accessControlList.push_back(value); return *this; }
/**
* <p>A list of grants that control access to the staged results.</p>
*/
inline S3Location& AddAccessControlList(Grant&& value) { m_accessControlListHasBeenSet = true; m_accessControlList.push_back(std::move(value)); return *this; }
/**
* <p>The tag-set that is applied to the restore results.</p>
*/
inline const Tagging& GetTagging() const{ return m_tagging; }
/**
* <p>The tag-set that is applied to the restore results.</p>
*/
inline bool TaggingHasBeenSet() const { return m_taggingHasBeenSet; }
/**
* <p>The tag-set that is applied to the restore results.</p>
*/
inline void SetTagging(const Tagging& value) { m_taggingHasBeenSet = true; m_tagging = value; }
/**
* <p>The tag-set that is applied to the restore results.</p>
*/
inline void SetTagging(Tagging&& value) { m_taggingHasBeenSet = true; m_tagging = std::move(value); }
/**
* <p>The tag-set that is applied to the restore results.</p>
*/
inline S3Location& WithTagging(const Tagging& value) { SetTagging(value); return *this;}
/**
* <p>The tag-set that is applied to the restore results.</p>
*/
inline S3Location& WithTagging(Tagging&& value) { SetTagging(std::move(value)); return *this;}
/**
* <p>A list of metadata to store with the restore results in S3.</p>
*/
inline const Aws::Vector<MetadataEntry>& GetUserMetadata() const{ return m_userMetadata; }
/**
* <p>A list of metadata to store with the restore results in S3.</p>
*/
inline bool UserMetadataHasBeenSet() const { return m_userMetadataHasBeenSet; }
/**
* <p>A list of metadata to store with the restore results in S3.</p>
*/
inline void SetUserMetadata(const Aws::Vector<MetadataEntry>& value) { m_userMetadataHasBeenSet = true; m_userMetadata = value; }
/**
* <p>A list of metadata to store with the restore results in S3.</p>
*/
inline void SetUserMetadata(Aws::Vector<MetadataEntry>&& value) { m_userMetadataHasBeenSet = true; m_userMetadata = std::move(value); }
/**
* <p>A list of metadata to store with the restore results in S3.</p>
*/
inline S3Location& WithUserMetadata(const Aws::Vector<MetadataEntry>& value) { SetUserMetadata(value); return *this;}
/**
* <p>A list of metadata to store with the restore results in S3.</p>
*/
inline S3Location& WithUserMetadata(Aws::Vector<MetadataEntry>&& value) { SetUserMetadata(std::move(value)); return *this;}
/**
* <p>A list of metadata to store with the restore results in S3.</p>
*/
inline S3Location& AddUserMetadata(const MetadataEntry& value) { m_userMetadataHasBeenSet = true; m_userMetadata.push_back(value); return *this; }
/**
* <p>A list of metadata to store with the restore results in S3.</p>
*/
inline S3Location& AddUserMetadata(MetadataEntry&& value) { m_userMetadataHasBeenSet = true; m_userMetadata.push_back(std::move(value)); return *this; }
/**
* <p>The class of storage used to store the restore results.</p>
*/
inline const StorageClass& GetStorageClass() const{ return m_storageClass; }
/**
* <p>The class of storage used to store the restore results.</p>
*/
inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
/**
* <p>The class of storage used to store the restore results.</p>
*/
inline void SetStorageClass(const StorageClass& value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
/**
* <p>The class of storage used to store the restore results.</p>
*/
inline void SetStorageClass(StorageClass&& value) { m_storageClassHasBeenSet = true; m_storageClass = std::move(value); }
/**
* <p>The class of storage used to store the restore results.</p>
*/
inline S3Location& WithStorageClass(const StorageClass& value) { SetStorageClass(value); return *this;}
/**
* <p>The class of storage used to store the restore results.</p>
*/
inline S3Location& WithStorageClass(StorageClass&& value) { SetStorageClass(std::move(value)); return *this;}
private:
Aws::String m_bucketName;
bool m_bucketNameHasBeenSet;
Aws::String m_prefix;
bool m_prefixHasBeenSet;
Encryption m_encryption;
bool m_encryptionHasBeenSet;
ObjectCannedACL m_cannedACL;
bool m_cannedACLHasBeenSet;
Aws::Vector<Grant> m_accessControlList;
bool m_accessControlListHasBeenSet;
Tagging m_tagging;
bool m_taggingHasBeenSet;
Aws::Vector<MetadataEntry> m_userMetadata;
bool m_userMetadataHasBeenSet;
StorageClass m_storageClass;
bool m_storageClassHasBeenSet;
};
} // namespace Model
} // namespace S3
} // namespace Aws
|