AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InventoryConfiguration.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/model/InventoryDestination.h>
9#include <aws/s3/model/InventoryFilter.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/s3/model/InventoryIncludedObjectVersions.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/s3/model/InventorySchedule.h>
14#include <aws/s3/model/InventoryOptionalField.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
47 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
48
49
51
54 inline const InventoryDestination& GetDestination() const{ return m_destination; }
55 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
56 inline void SetDestination(const InventoryDestination& value) { m_destinationHasBeenSet = true; m_destination = value; }
57 inline void SetDestination(InventoryDestination&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
58 inline InventoryConfiguration& WithDestination(const InventoryDestination& value) { SetDestination(value); return *this;}
59 inline InventoryConfiguration& WithDestination(InventoryDestination&& value) { SetDestination(std::move(value)); return *this;}
61
63
68 inline bool GetIsEnabled() const{ return m_isEnabled; }
69 inline bool IsEnabledHasBeenSet() const { return m_isEnabledHasBeenSet; }
70 inline void SetIsEnabled(bool value) { m_isEnabledHasBeenSet = true; m_isEnabled = value; }
71 inline InventoryConfiguration& WithIsEnabled(bool value) { SetIsEnabled(value); return *this;}
73
75
79 inline const InventoryFilter& GetFilter() const{ return m_filter; }
80 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
81 inline void SetFilter(const InventoryFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
82 inline void SetFilter(InventoryFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
83 inline InventoryConfiguration& WithFilter(const InventoryFilter& value) { SetFilter(value); return *this;}
84 inline InventoryConfiguration& WithFilter(InventoryFilter&& value) { SetFilter(std::move(value)); return *this;}
86
88
91 inline const Aws::String& GetId() const{ return m_id; }
92 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
93 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
94 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
95 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
96 inline InventoryConfiguration& WithId(const Aws::String& value) { SetId(value); return *this;}
97 inline InventoryConfiguration& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
98 inline InventoryConfiguration& WithId(const char* value) { SetId(value); return *this;}
100
102
109 inline const InventoryIncludedObjectVersions& GetIncludedObjectVersions() const{ return m_includedObjectVersions; }
110 inline bool IncludedObjectVersionsHasBeenSet() const { return m_includedObjectVersionsHasBeenSet; }
111 inline void SetIncludedObjectVersions(const InventoryIncludedObjectVersions& value) { m_includedObjectVersionsHasBeenSet = true; m_includedObjectVersions = value; }
112 inline void SetIncludedObjectVersions(InventoryIncludedObjectVersions&& value) { m_includedObjectVersionsHasBeenSet = true; m_includedObjectVersions = std::move(value); }
116
118
121 inline const Aws::Vector<InventoryOptionalField>& GetOptionalFields() const{ return m_optionalFields; }
122 inline bool OptionalFieldsHasBeenSet() const { return m_optionalFieldsHasBeenSet; }
123 inline void SetOptionalFields(const Aws::Vector<InventoryOptionalField>& value) { m_optionalFieldsHasBeenSet = true; m_optionalFields = value; }
124 inline void SetOptionalFields(Aws::Vector<InventoryOptionalField>&& value) { m_optionalFieldsHasBeenSet = true; m_optionalFields = std::move(value); }
127 inline InventoryConfiguration& AddOptionalFields(const InventoryOptionalField& value) { m_optionalFieldsHasBeenSet = true; m_optionalFields.push_back(value); return *this; }
128 inline InventoryConfiguration& AddOptionalFields(InventoryOptionalField&& value) { m_optionalFieldsHasBeenSet = true; m_optionalFields.push_back(std::move(value)); return *this; }
130
132
135 inline const InventorySchedule& GetSchedule() const{ return m_schedule; }
136 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
137 inline void SetSchedule(const InventorySchedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
138 inline void SetSchedule(InventorySchedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
139 inline InventoryConfiguration& WithSchedule(const InventorySchedule& value) { SetSchedule(value); return *this;}
140 inline InventoryConfiguration& WithSchedule(InventorySchedule&& value) { SetSchedule(std::move(value)); return *this;}
142 private:
143
144 InventoryDestination m_destination;
145 bool m_destinationHasBeenSet = false;
146
147 bool m_isEnabled;
148 bool m_isEnabledHasBeenSet = false;
149
150 InventoryFilter m_filter;
151 bool m_filterHasBeenSet = false;
152
153 Aws::String m_id;
154 bool m_idHasBeenSet = false;
155
156 InventoryIncludedObjectVersions m_includedObjectVersions;
157 bool m_includedObjectVersionsHasBeenSet = false;
158
160 bool m_optionalFieldsHasBeenSet = false;
161
162 InventorySchedule m_schedule;
163 bool m_scheduleHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace S3
168} // namespace Aws
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