AWS SDK for C++  1.8.95
AWS SDK for C++
BucketLifecycleConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/s3/S3_EXPORTS.h>
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 S3
22 {
23 namespace Model
24 {
25 
36  {
37  public:
40  BucketLifecycleConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41 
42  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
43 
44 
48  inline const Aws::Vector<LifecycleRule>& GetRules() const{ return m_rules; }
49 
53  inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
54 
58  inline void SetRules(const Aws::Vector<LifecycleRule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
59 
63  inline void SetRules(Aws::Vector<LifecycleRule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
64 
68  inline BucketLifecycleConfiguration& WithRules(const Aws::Vector<LifecycleRule>& value) { SetRules(value); return *this;}
69 
73  inline BucketLifecycleConfiguration& WithRules(Aws::Vector<LifecycleRule>&& value) { SetRules(std::move(value)); return *this;}
74 
78  inline BucketLifecycleConfiguration& AddRules(const LifecycleRule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
79 
83  inline BucketLifecycleConfiguration& AddRules(LifecycleRule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
84 
85  private:
86 
88  bool m_rulesHasBeenSet;
89  };
90 
91 } // namespace Model
92 } // namespace S3
93 } // namespace Aws
BucketLifecycleConfiguration & WithRules(const Aws::Vector< LifecycleRule > &value)
BucketLifecycleConfiguration & AddRules(const LifecycleRule &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
BucketLifecycleConfiguration & WithRules(Aws::Vector< LifecycleRule > &&value)
void SetRules(Aws::Vector< LifecycleRule > &&value)
const Aws::Vector< LifecycleRule > & GetRules() const
void SetRules(const Aws::Vector< LifecycleRule > &value)
BucketLifecycleConfiguration & AddRules(LifecycleRule &&value)