AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
LifecycleConfiguration.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/s3control/model/LifecycleRule.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3Control
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_S3CONTROL_API LifecycleConfiguration() = default;
36 AWS_S3CONTROL_API LifecycleConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_S3CONTROL_API LifecycleConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
46 inline const Aws::Vector<LifecycleRule>& GetRules() const { return m_rules; }
47 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
48 template<typename RulesT = Aws::Vector<LifecycleRule>>
49 void SetRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules = std::forward<RulesT>(value); }
50 template<typename RulesT = Aws::Vector<LifecycleRule>>
51 LifecycleConfiguration& WithRules(RulesT&& value) { SetRules(std::forward<RulesT>(value)); return *this;}
52 template<typename RulesT = LifecycleRule>
53 LifecycleConfiguration& AddRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules.emplace_back(std::forward<RulesT>(value)); return *this; }
55 private:
56
58 bool m_rulesHasBeenSet = false;
59 };
60
61} // namespace Model
62} // namespace S3Control
63} // namespace Aws
AWS_S3CONTROL_API LifecycleConfiguration()=default
const Aws::Vector< LifecycleRule > & GetRules() const
LifecycleConfiguration & AddRules(RulesT &&value)
AWS_S3CONTROL_API LifecycleConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
LifecycleConfiguration & WithRules(RulesT &&value)
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_S3CONTROL_API LifecycleConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::vector< T, Aws::Allocator< T > > Vector