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