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
|
/**
* 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/s3/model/InventoryDestination.h>
#include <aws/s3/model/InventoryFilter.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/s3/model/InventoryIncludedObjectVersions.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/s3/model/InventorySchedule.h>
#include <aws/s3/model/InventoryOptionalField.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace S3
{
namespace Model
{
/**
* <p>Specifies the inventory configuration for an Amazon S3 bucket. For more
* information, see <a
* href="https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETInventoryConfig.html">GET
* Bucket inventory</a> in the <i>Amazon S3 API Reference</i>. </p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/InventoryConfiguration">AWS
* API Reference</a></p>
*/
class InventoryConfiguration
{
public:
AWS_S3_API InventoryConfiguration();
AWS_S3_API InventoryConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
AWS_S3_API InventoryConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
/**
* <p>Contains information about where to publish the inventory results.</p>
*/
inline const InventoryDestination& GetDestination() const{ return m_destination; }
/**
* <p>Contains information about where to publish the inventory results.</p>
*/
inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
/**
* <p>Contains information about where to publish the inventory results.</p>
*/
inline void SetDestination(const InventoryDestination& value) { m_destinationHasBeenSet = true; m_destination = value; }
/**
* <p>Contains information about where to publish the inventory results.</p>
*/
inline void SetDestination(InventoryDestination&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
/**
* <p>Contains information about where to publish the inventory results.</p>
*/
inline InventoryConfiguration& WithDestination(const InventoryDestination& value) { SetDestination(value); return *this;}
/**
* <p>Contains information about where to publish the inventory results.</p>
*/
inline InventoryConfiguration& WithDestination(InventoryDestination&& value) { SetDestination(std::move(value)); return *this;}
/**
* <p>Specifies whether the inventory is enabled or disabled. If set to
* <code>True</code>, an inventory list is generated. If set to <code>False</code>,
* no inventory list is generated.</p>
*/
inline bool GetIsEnabled() const{ return m_isEnabled; }
/**
* <p>Specifies whether the inventory is enabled or disabled. If set to
* <code>True</code>, an inventory list is generated. If set to <code>False</code>,
* no inventory list is generated.</p>
*/
inline bool IsEnabledHasBeenSet() const { return m_isEnabledHasBeenSet; }
/**
* <p>Specifies whether the inventory is enabled or disabled. If set to
* <code>True</code>, an inventory list is generated. If set to <code>False</code>,
* no inventory list is generated.</p>
*/
inline void SetIsEnabled(bool value) { m_isEnabledHasBeenSet = true; m_isEnabled = value; }
/**
* <p>Specifies whether the inventory is enabled or disabled. If set to
* <code>True</code>, an inventory list is generated. If set to <code>False</code>,
* no inventory list is generated.</p>
*/
inline InventoryConfiguration& WithIsEnabled(bool value) { SetIsEnabled(value); return *this;}
/**
* <p>Specifies an inventory filter. The inventory only includes objects that meet
* the filter's criteria.</p>
*/
inline const InventoryFilter& GetFilter() const{ return m_filter; }
/**
* <p>Specifies an inventory filter. The inventory only includes objects that meet
* the filter's criteria.</p>
*/
inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
/**
* <p>Specifies an inventory filter. The inventory only includes objects that meet
* the filter's criteria.</p>
*/
inline void SetFilter(const InventoryFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
/**
* <p>Specifies an inventory filter. The inventory only includes objects that meet
* the filter's criteria.</p>
*/
inline void SetFilter(InventoryFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
/**
* <p>Specifies an inventory filter. The inventory only includes objects that meet
* the filter's criteria.</p>
*/
inline InventoryConfiguration& WithFilter(const InventoryFilter& value) { SetFilter(value); return *this;}
/**
* <p>Specifies an inventory filter. The inventory only includes objects that meet
* the filter's criteria.</p>
*/
inline InventoryConfiguration& WithFilter(InventoryFilter&& value) { SetFilter(std::move(value)); return *this;}
/**
* <p>The ID used to identify the inventory configuration.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The ID used to identify the inventory configuration.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The ID used to identify the inventory configuration.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The ID used to identify the inventory configuration.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The ID used to identify the inventory configuration.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The ID used to identify the inventory configuration.</p>
*/
inline InventoryConfiguration& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The ID used to identify the inventory configuration.</p>
*/
inline InventoryConfiguration& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The ID used to identify the inventory configuration.</p>
*/
inline InventoryConfiguration& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>Object versions to include in the inventory list. If set to <code>All</code>,
* the list includes all the object versions, which adds the version-related fields
* <code>VersionId</code>, <code>IsLatest</code>, and <code>DeleteMarker</code> to
* the list. If set to <code>Current</code>, the list does not contain these
* version-related fields.</p>
*/
inline const InventoryIncludedObjectVersions& GetIncludedObjectVersions() const{ return m_includedObjectVersions; }
/**
* <p>Object versions to include in the inventory list. If set to <code>All</code>,
* the list includes all the object versions, which adds the version-related fields
* <code>VersionId</code>, <code>IsLatest</code>, and <code>DeleteMarker</code> to
* the list. If set to <code>Current</code>, the list does not contain these
* version-related fields.</p>
*/
inline bool IncludedObjectVersionsHasBeenSet() const { return m_includedObjectVersionsHasBeenSet; }
/**
* <p>Object versions to include in the inventory list. If set to <code>All</code>,
* the list includes all the object versions, which adds the version-related fields
* <code>VersionId</code>, <code>IsLatest</code>, and <code>DeleteMarker</code> to
* the list. If set to <code>Current</code>, the list does not contain these
* version-related fields.</p>
*/
inline void SetIncludedObjectVersions(const InventoryIncludedObjectVersions& value) { m_includedObjectVersionsHasBeenSet = true; m_includedObjectVersions = value; }
/**
* <p>Object versions to include in the inventory list. If set to <code>All</code>,
* the list includes all the object versions, which adds the version-related fields
* <code>VersionId</code>, <code>IsLatest</code>, and <code>DeleteMarker</code> to
* the list. If set to <code>Current</code>, the list does not contain these
* version-related fields.</p>
*/
inline void SetIncludedObjectVersions(InventoryIncludedObjectVersions&& value) { m_includedObjectVersionsHasBeenSet = true; m_includedObjectVersions = std::move(value); }
/**
* <p>Object versions to include in the inventory list. If set to <code>All</code>,
* the list includes all the object versions, which adds the version-related fields
* <code>VersionId</code>, <code>IsLatest</code>, and <code>DeleteMarker</code> to
* the list. If set to <code>Current</code>, the list does not contain these
* version-related fields.</p>
*/
inline InventoryConfiguration& WithIncludedObjectVersions(const InventoryIncludedObjectVersions& value) { SetIncludedObjectVersions(value); return *this;}
/**
* <p>Object versions to include in the inventory list. If set to <code>All</code>,
* the list includes all the object versions, which adds the version-related fields
* <code>VersionId</code>, <code>IsLatest</code>, and <code>DeleteMarker</code> to
* the list. If set to <code>Current</code>, the list does not contain these
* version-related fields.</p>
*/
inline InventoryConfiguration& WithIncludedObjectVersions(InventoryIncludedObjectVersions&& value) { SetIncludedObjectVersions(std::move(value)); return *this;}
/**
* <p>Contains the optional fields that are included in the inventory results.</p>
*/
inline const Aws::Vector<InventoryOptionalField>& GetOptionalFields() const{ return m_optionalFields; }
/**
* <p>Contains the optional fields that are included in the inventory results.</p>
*/
inline bool OptionalFieldsHasBeenSet() const { return m_optionalFieldsHasBeenSet; }
/**
* <p>Contains the optional fields that are included in the inventory results.</p>
*/
inline void SetOptionalFields(const Aws::Vector<InventoryOptionalField>& value) { m_optionalFieldsHasBeenSet = true; m_optionalFields = value; }
/**
* <p>Contains the optional fields that are included in the inventory results.</p>
*/
inline void SetOptionalFields(Aws::Vector<InventoryOptionalField>&& value) { m_optionalFieldsHasBeenSet = true; m_optionalFields = std::move(value); }
/**
* <p>Contains the optional fields that are included in the inventory results.</p>
*/
inline InventoryConfiguration& WithOptionalFields(const Aws::Vector<InventoryOptionalField>& value) { SetOptionalFields(value); return *this;}
/**
* <p>Contains the optional fields that are included in the inventory results.</p>
*/
inline InventoryConfiguration& WithOptionalFields(Aws::Vector<InventoryOptionalField>&& value) { SetOptionalFields(std::move(value)); return *this;}
/**
* <p>Contains the optional fields that are included in the inventory results.</p>
*/
inline InventoryConfiguration& AddOptionalFields(const InventoryOptionalField& value) { m_optionalFieldsHasBeenSet = true; m_optionalFields.push_back(value); return *this; }
/**
* <p>Contains the optional fields that are included in the inventory results.</p>
*/
inline InventoryConfiguration& AddOptionalFields(InventoryOptionalField&& value) { m_optionalFieldsHasBeenSet = true; m_optionalFields.push_back(std::move(value)); return *this; }
/**
* <p>Specifies the schedule for generating inventory results.</p>
*/
inline const InventorySchedule& GetSchedule() const{ return m_schedule; }
/**
* <p>Specifies the schedule for generating inventory results.</p>
*/
inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
/**
* <p>Specifies the schedule for generating inventory results.</p>
*/
inline void SetSchedule(const InventorySchedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
/**
* <p>Specifies the schedule for generating inventory results.</p>
*/
inline void SetSchedule(InventorySchedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
/**
* <p>Specifies the schedule for generating inventory results.</p>
*/
inline InventoryConfiguration& WithSchedule(const InventorySchedule& value) { SetSchedule(value); return *this;}
/**
* <p>Specifies the schedule for generating inventory results.</p>
*/
inline InventoryConfiguration& WithSchedule(InventorySchedule&& value) { SetSchedule(std::move(value)); return *this;}
private:
InventoryDestination m_destination;
bool m_destinationHasBeenSet = false;
bool m_isEnabled;
bool m_isEnabledHasBeenSet = false;
InventoryFilter m_filter;
bool m_filterHasBeenSet = false;
Aws::String m_id;
bool m_idHasBeenSet = false;
InventoryIncludedObjectVersions m_includedObjectVersions;
bool m_includedObjectVersionsHasBeenSet = false;
Aws::Vector<InventoryOptionalField> m_optionalFields;
bool m_optionalFieldsHasBeenSet = false;
InventorySchedule m_schedule;
bool m_scheduleHasBeenSet = false;
};
} // namespace Model
} // namespace S3
} // namespace Aws
|