AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
InventoryConfiguration.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace S3
27{
28namespace Model
29{
30
41 {
42 public:
46
48
49
53 inline const InventoryDestination& GetDestination() const{ return m_destination; }
54
58 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
59
63 inline void SetDestination(const InventoryDestination& value) { m_destinationHasBeenSet = true; m_destination = value; }
64
68 inline void SetDestination(InventoryDestination&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
69
73 inline InventoryConfiguration& WithDestination(const InventoryDestination& value) { SetDestination(value); return *this;}
74
78 inline InventoryConfiguration& WithDestination(InventoryDestination&& value) { SetDestination(std::move(value)); return *this;}
79
80
86 inline bool GetIsEnabled() const{ return m_isEnabled; }
87
93 inline bool IsEnabledHasBeenSet() const { return m_isEnabledHasBeenSet; }
94
100 inline void SetIsEnabled(bool value) { m_isEnabledHasBeenSet = true; m_isEnabled = value; }
101
107 inline InventoryConfiguration& WithIsEnabled(bool value) { SetIsEnabled(value); return *this;}
108
109
114 inline const InventoryFilter& GetFilter() const{ return m_filter; }
115
120 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
121
126 inline void SetFilter(const InventoryFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
127
132 inline void SetFilter(InventoryFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
133
138 inline InventoryConfiguration& WithFilter(const InventoryFilter& value) { SetFilter(value); return *this;}
139
144 inline InventoryConfiguration& WithFilter(InventoryFilter&& value) { SetFilter(std::move(value)); return *this;}
145
146
150 inline const Aws::String& GetId() const{ return m_id; }
151
155 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
156
160 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
161
165 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
166
170 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
171
175 inline InventoryConfiguration& WithId(const Aws::String& value) { SetId(value); return *this;}
176
180 inline InventoryConfiguration& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
181
185 inline InventoryConfiguration& WithId(const char* value) { SetId(value); return *this;}
186
187
195 inline const InventoryIncludedObjectVersions& GetIncludedObjectVersions() const{ return m_includedObjectVersions; }
196
204 inline bool IncludedObjectVersionsHasBeenSet() const { return m_includedObjectVersionsHasBeenSet; }
205
213 inline void SetIncludedObjectVersions(const InventoryIncludedObjectVersions& value) { m_includedObjectVersionsHasBeenSet = true; m_includedObjectVersions = value; }
214
222 inline void SetIncludedObjectVersions(InventoryIncludedObjectVersions&& value) { m_includedObjectVersionsHasBeenSet = true; m_includedObjectVersions = std::move(value); }
223
232
241
242
246 inline const Aws::Vector<InventoryOptionalField>& GetOptionalFields() const{ return m_optionalFields; }
247
251 inline bool OptionalFieldsHasBeenSet() const { return m_optionalFieldsHasBeenSet; }
252
256 inline void SetOptionalFields(const Aws::Vector<InventoryOptionalField>& value) { m_optionalFieldsHasBeenSet = true; m_optionalFields = value; }
257
261 inline void SetOptionalFields(Aws::Vector<InventoryOptionalField>&& value) { m_optionalFieldsHasBeenSet = true; m_optionalFields = std::move(value); }
262
267
272
276 inline InventoryConfiguration& AddOptionalFields(const InventoryOptionalField& value) { m_optionalFieldsHasBeenSet = true; m_optionalFields.push_back(value); return *this; }
277
281 inline InventoryConfiguration& AddOptionalFields(InventoryOptionalField&& value) { m_optionalFieldsHasBeenSet = true; m_optionalFields.push_back(std::move(value)); return *this; }
282
283
287 inline const InventorySchedule& GetSchedule() const{ return m_schedule; }
288
292 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
293
297 inline void SetSchedule(const InventorySchedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
298
302 inline void SetSchedule(InventorySchedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
303
307 inline InventoryConfiguration& WithSchedule(const InventorySchedule& value) { SetSchedule(value); return *this;}
308
312 inline InventoryConfiguration& WithSchedule(InventorySchedule&& value) { SetSchedule(std::move(value)); return *this;}
313
314 private:
315
316 InventoryDestination m_destination;
317 bool m_destinationHasBeenSet = false;
318
319 bool m_isEnabled;
320 bool m_isEnabledHasBeenSet = false;
321
322 InventoryFilter m_filter;
323 bool m_filterHasBeenSet = false;
324
325 Aws::String m_id;
326 bool m_idHasBeenSet = false;
327
328 InventoryIncludedObjectVersions m_includedObjectVersions;
329 bool m_includedObjectVersionsHasBeenSet = false;
330
332 bool m_optionalFieldsHasBeenSet = false;
333
334 InventorySchedule m_schedule;
335 bool m_scheduleHasBeenSet = false;
336 };
337
338} // namespace Model
339} // namespace S3
340} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
const Aws::Vector< InventoryOptionalField > & GetOptionalFields() const
InventoryConfiguration & WithOptionalFields(const Aws::Vector< InventoryOptionalField > &value)
void SetFilter(const InventoryFilter &value)
InventoryConfiguration & AddOptionalFields(InventoryOptionalField &&value)
InventoryConfiguration & WithIsEnabled(bool value)
InventoryConfiguration & WithDestination(InventoryDestination &&value)
void SetDestination(const InventoryDestination &value)
AWS_S3_API InventoryConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InventoryConfiguration & WithFilter(const InventoryFilter &value)
InventoryConfiguration & WithId(const Aws::String &value)
const InventoryDestination & GetDestination() const
void SetOptionalFields(Aws::Vector< InventoryOptionalField > &&value)
InventoryConfiguration & WithId(const char *value)
void SetSchedule(InventorySchedule &&value)
InventoryConfiguration & WithId(Aws::String &&value)
InventoryConfiguration & WithSchedule(const InventorySchedule &value)
InventoryConfiguration & WithDestination(const InventoryDestination &value)
InventoryConfiguration & WithFilter(InventoryFilter &&value)
void SetIncludedObjectVersions(const InventoryIncludedObjectVersions &value)
void SetSchedule(const InventorySchedule &value)
InventoryConfiguration & AddOptionalFields(const InventoryOptionalField &value)
AWS_S3_API InventoryConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
InventoryConfiguration & WithIncludedObjectVersions(InventoryIncludedObjectVersions &&value)
InventoryConfiguration & WithOptionalFields(Aws::Vector< InventoryOptionalField > &&value)
InventoryConfiguration & WithIncludedObjectVersions(const InventoryIncludedObjectVersions &value)
void SetIncludedObjectVersions(InventoryIncludedObjectVersions &&value)
const InventoryIncludedObjectVersions & GetIncludedObjectVersions() const
const InventorySchedule & GetSchedule() const
InventoryConfiguration & WithSchedule(InventorySchedule &&value)
void SetOptionalFields(const Aws::Vector< InventoryOptionalField > &value)
void SetDestination(InventoryDestination &&value)
const InventoryFilter & GetFilter() const
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector