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/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();
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 inline void SetRules(const Aws::Vector<LifecycleRule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
49 inline void SetRules(Aws::Vector<LifecycleRule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
50 inline LifecycleConfiguration& WithRules(const Aws::Vector<LifecycleRule>& value) { SetRules(value); return *this;}
51 inline LifecycleConfiguration& WithRules(Aws::Vector<LifecycleRule>&& value) { SetRules(std::move(value)); return *this;}
52 inline LifecycleConfiguration& AddRules(const LifecycleRule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
53 inline LifecycleConfiguration& AddRules(LifecycleRule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
55 private:
56
58 bool m_rulesHasBeenSet = false;
59 };
60
61} // namespace Model
62} // namespace S3Control
63} // namespace Aws
LifecycleConfiguration & AddRules(LifecycleRule &&value)
LifecycleConfiguration & AddRules(const LifecycleRule &value)
const Aws::Vector< LifecycleRule > & GetRules() const
LifecycleConfiguration & WithRules(Aws::Vector< LifecycleRule > &&value)
AWS_S3CONTROL_API LifecycleConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetRules(const Aws::Vector< LifecycleRule > &value)
LifecycleConfiguration & WithRules(const Aws::Vector< LifecycleRule > &value)
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetRules(Aws::Vector< LifecycleRule > &&value)
AWS_S3CONTROL_API LifecycleConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::vector< T, Aws::Allocator< T > > Vector