AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LifecycleConfiguration.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.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
36 {
37 public:
41
42 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
43
44
46
49 inline const Aws::Vector<Rule>& GetRules() const{ return m_rules; }
50 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
51 inline void SetRules(const Aws::Vector<Rule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
52 inline void SetRules(Aws::Vector<Rule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
53 inline LifecycleConfiguration& WithRules(const Aws::Vector<Rule>& value) { SetRules(value); return *this;}
54 inline LifecycleConfiguration& WithRules(Aws::Vector<Rule>&& value) { SetRules(std::move(value)); return *this;}
55 inline LifecycleConfiguration& AddRules(const Rule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
56 inline LifecycleConfiguration& AddRules(Rule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
58 private:
59
60 Aws::Vector<Rule> m_rules;
61 bool m_rulesHasBeenSet = false;
62 };
63
64} // namespace Model
65} // namespace S3
66} // namespace Aws
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