AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BucketLifecycleConfiguration.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/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 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<LifecycleRule>& GetRules() const{ return m_rules; }
50 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
51 inline void SetRules(const Aws::Vector<LifecycleRule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
52 inline void SetRules(Aws::Vector<LifecycleRule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
53 inline BucketLifecycleConfiguration& WithRules(const Aws::Vector<LifecycleRule>& value) { SetRules(value); return *this;}
54 inline BucketLifecycleConfiguration& WithRules(Aws::Vector<LifecycleRule>&& value) { SetRules(std::move(value)); return *this;}
55 inline BucketLifecycleConfiguration& AddRules(const LifecycleRule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
56 inline BucketLifecycleConfiguration& AddRules(LifecycleRule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
58 private:
59
61 bool m_rulesHasBeenSet = false;
62 };
63
64} // namespace Model
65} // namespace S3
66} // namespace Aws
BucketLifecycleConfiguration & AddRules(LifecycleRule &&value)
AWS_S3_API BucketLifecycleConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
BucketLifecycleConfiguration & WithRules(const Aws::Vector< LifecycleRule > &value)
const Aws::Vector< LifecycleRule > & GetRules() const
AWS_S3_API BucketLifecycleConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
BucketLifecycleConfiguration & WithRules(Aws::Vector< LifecycleRule > &&value)
void SetRules(const Aws::Vector< LifecycleRule > &value)
void SetRules(Aws::Vector< LifecycleRule > &&value)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
BucketLifecycleConfiguration & AddRules(const LifecycleRule &value)
std::vector< T, Aws::Allocator< T > > Vector