AWS SDK for C++  1.8.154
AWS SDK for C++
GetBucketLifecycleConfigurationResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlDocument;
22 } // namespace Xml
23 } // namespace Utils
24 namespace S3Control
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
39  inline const Aws::Vector<LifecycleRule>& GetRules() const{ return m_rules; }
40 
44  inline void SetRules(const Aws::Vector<LifecycleRule>& value) { m_rules = value; }
45 
49  inline void SetRules(Aws::Vector<LifecycleRule>&& value) { m_rules = std::move(value); }
50 
54  inline GetBucketLifecycleConfigurationResult& WithRules(const Aws::Vector<LifecycleRule>& value) { SetRules(value); return *this;}
55 
59  inline GetBucketLifecycleConfigurationResult& WithRules(Aws::Vector<LifecycleRule>&& value) { SetRules(std::move(value)); return *this;}
60 
64  inline GetBucketLifecycleConfigurationResult& AddRules(const LifecycleRule& value) { m_rules.push_back(value); return *this; }
65 
69  inline GetBucketLifecycleConfigurationResult& AddRules(LifecycleRule&& value) { m_rules.push_back(std::move(value)); return *this; }
70 
71  private:
72 
74  };
75 
76 } // namespace Model
77 } // namespace S3Control
78 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::S3Control::Model::LifecycleRule
Definition: LifecycleRule.h:40
Aws::S3Control::Model::GetBucketLifecycleConfigurationResult::WithRules
GetBucketLifecycleConfigurationResult & WithRules(Aws::Vector< LifecycleRule > &&value)
Definition: GetBucketLifecycleConfigurationResult.h:59
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
S3Control_EXPORTS.h
Aws::S3Control::Model::GetBucketLifecycleConfigurationResult::SetRules
void SetRules(Aws::Vector< LifecycleRule > &&value)
Definition: GetBucketLifecycleConfigurationResult.h:49
Aws::S3Control::Model::GetBucketLifecycleConfigurationResult::SetRules
void SetRules(const Aws::Vector< LifecycleRule > &value)
Definition: GetBucketLifecycleConfigurationResult.h:44
Aws::S3Control::Model::GetBucketLifecycleConfigurationResult::AddRules
GetBucketLifecycleConfigurationResult & AddRules(LifecycleRule &&value)
Definition: GetBucketLifecycleConfigurationResult.h:69
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
LifecycleRule.h
Aws::S3Control::Model::GetBucketLifecycleConfigurationResult::WithRules
GetBucketLifecycleConfigurationResult & WithRules(const Aws::Vector< LifecycleRule > &value)
Definition: GetBucketLifecycleConfigurationResult.h:54
Aws::S3Control::Model::GetBucketLifecycleConfigurationResult::operator=
GetBucketLifecycleConfigurationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::S3Control::Model::GetBucketLifecycleConfigurationResult::GetRules
const Aws::Vector< LifecycleRule > & GetRules() const
Definition: GetBucketLifecycleConfigurationResult.h:39
Aws
Definition: AccessManagementClient.h:15
Aws::S3Control::Model::GetBucketLifecycleConfigurationResult
Definition: GetBucketLifecycleConfigurationResult.h:29
Aws::S3Control::Model::GetBucketLifecycleConfigurationResult::GetBucketLifecycleConfigurationResult
GetBucketLifecycleConfigurationResult()
Aws::S3Control::Model::GetBucketLifecycleConfigurationResult::AddRules
GetBucketLifecycleConfigurationResult & AddRules(const LifecycleRule &value)
Definition: GetBucketLifecycleConfigurationResult.h:64
Aws::S3Control::Model::GetBucketLifecycleConfigurationResult::GetBucketLifecycleConfigurationResult
GetBucketLifecycleConfigurationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)