AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
LifecycleConfiguration.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
9#include <aws/s3/model/Rule.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3
22{
23namespace Model
24{
25
33 {
34 public:
38
40
41
45 inline const Aws::Vector<Rule>& GetRules() const{ return m_rules; }
46
50 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
51
55 inline void SetRules(const Aws::Vector<Rule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
56
60 inline void SetRules(Aws::Vector<Rule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
61
65 inline LifecycleConfiguration& WithRules(const Aws::Vector<Rule>& value) { SetRules(value); return *this;}
66
70 inline LifecycleConfiguration& WithRules(Aws::Vector<Rule>&& value) { SetRules(std::move(value)); return *this;}
71
75 inline LifecycleConfiguration& AddRules(const Rule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
76
80 inline LifecycleConfiguration& AddRules(Rule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
81
82 private:
83
84 Aws::Vector<Rule> m_rules;
85 bool m_rulesHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace S3
90} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
LifecycleConfiguration & AddRules(Rule &&value)
LifecycleConfiguration & AddRules(const Rule &value)
const Aws::Vector< Rule > & GetRules() const
LifecycleConfiguration & WithRules(Aws::Vector< Rule > &&value)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_S3_API LifecycleConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
LifecycleConfiguration & WithRules(const Aws::Vector< Rule > &value)
void SetRules(const Aws::Vector< Rule > &value)
void SetRules(Aws::Vector< Rule > &&value)
AWS_S3_API LifecycleConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::vector< T, Aws::Allocator< T > > Vector