AWS SDK for C++  1.9.108
AWS SDK for C++
DescribeLifecycleHooksResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Xml
21 {
22  class XmlDocument;
23 } // namespace Xml
24 } // namespace Utils
25 namespace AutoScaling
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<LifecycleHook>& GetLifecycleHooks() const{ return m_lifecycleHooks; }
41 
45  inline void SetLifecycleHooks(const Aws::Vector<LifecycleHook>& value) { m_lifecycleHooks = value; }
46 
50  inline void SetLifecycleHooks(Aws::Vector<LifecycleHook>&& value) { m_lifecycleHooks = std::move(value); }
51 
55  inline DescribeLifecycleHooksResult& WithLifecycleHooks(const Aws::Vector<LifecycleHook>& value) { SetLifecycleHooks(value); return *this;}
56 
60  inline DescribeLifecycleHooksResult& WithLifecycleHooks(Aws::Vector<LifecycleHook>&& value) { SetLifecycleHooks(std::move(value)); return *this;}
61 
65  inline DescribeLifecycleHooksResult& AddLifecycleHooks(const LifecycleHook& value) { m_lifecycleHooks.push_back(value); return *this; }
66 
70  inline DescribeLifecycleHooksResult& AddLifecycleHooks(LifecycleHook&& value) { m_lifecycleHooks.push_back(std::move(value)); return *this; }
71 
72 
73 
74  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
75 
76 
77  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
78 
79 
80  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
81 
82 
83  inline DescribeLifecycleHooksResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
84 
85 
86  inline DescribeLifecycleHooksResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
87 
88  private:
89 
90  Aws::Vector<LifecycleHook> m_lifecycleHooks;
91 
92  ResponseMetadata m_responseMetadata;
93  };
94 
95 } // namespace Model
96 } // namespace AutoScaling
97 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::AutoScaling::Model::DescribeLifecycleHooksResult::DescribeLifecycleHooksResult
DescribeLifecycleHooksResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::AutoScaling::Model::DescribeLifecycleHooksResult::AddLifecycleHooks
DescribeLifecycleHooksResult & AddLifecycleHooks(const LifecycleHook &value)
Definition: DescribeLifecycleHooksResult.h:65
Aws::AutoScaling::Model::DescribeLifecycleHooksResult::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: DescribeLifecycleHooksResult.h:77
Aws::AutoScaling::Model::DescribeLifecycleHooksResult::AddLifecycleHooks
DescribeLifecycleHooksResult & AddLifecycleHooks(LifecycleHook &&value)
Definition: DescribeLifecycleHooksResult.h:70
Aws::AutoScaling::Model::DescribeLifecycleHooksResult::SetLifecycleHooks
void SetLifecycleHooks(const Aws::Vector< LifecycleHook > &value)
Definition: DescribeLifecycleHooksResult.h:45
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::AutoScaling::Model::LifecycleHook
Definition: LifecycleHook.h:34
Aws::AutoScaling::Model::DescribeLifecycleHooksResult::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: DescribeLifecycleHooksResult.h:80
Aws::AutoScaling::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
AWS_AUTOSCALING_API
#define AWS_AUTOSCALING_API
Definition: AutoScaling_EXPORTS.h:28
Aws::AutoScaling::Model::DescribeLifecycleHooksResult::WithResponseMetadata
DescribeLifecycleHooksResult & WithResponseMetadata(const ResponseMetadata &value)
Definition: DescribeLifecycleHooksResult.h:83
Aws::AutoScaling::Model::DescribeLifecycleHooksResult::WithLifecycleHooks
DescribeLifecycleHooksResult & WithLifecycleHooks(const Aws::Vector< LifecycleHook > &value)
Definition: DescribeLifecycleHooksResult.h:55
Aws::AutoScaling::Model::DescribeLifecycleHooksResult::operator=
DescribeLifecycleHooksResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
LifecycleHook.h
AutoScaling_EXPORTS.h
Aws::AutoScaling::Model::DescribeLifecycleHooksResult::WithResponseMetadata
DescribeLifecycleHooksResult & WithResponseMetadata(ResponseMetadata &&value)
Definition: DescribeLifecycleHooksResult.h:86
Aws
Definition: AccessManagementClient.h:15
Aws::AutoScaling::Model::DescribeLifecycleHooksResult::GetLifecycleHooks
const Aws::Vector< LifecycleHook > & GetLifecycleHooks() const
Definition: DescribeLifecycleHooksResult.h:40
Aws::AutoScaling::Model::DescribeLifecycleHooksResult
Definition: DescribeLifecycleHooksResult.h:30
Aws::AutoScaling::Model::DescribeLifecycleHooksResult::WithLifecycleHooks
DescribeLifecycleHooksResult & WithLifecycleHooks(Aws::Vector< LifecycleHook > &&value)
Definition: DescribeLifecycleHooksResult.h:60
ResponseMetadata.h
Aws::AutoScaling::Model::DescribeLifecycleHooksResult::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: DescribeLifecycleHooksResult.h:74
Aws::AutoScaling::Model::DescribeLifecycleHooksResult::DescribeLifecycleHooksResult
DescribeLifecycleHooksResult()
Aws::AutoScaling::Model::DescribeLifecycleHooksResult::SetLifecycleHooks
void SetLifecycleHooks(Aws::Vector< LifecycleHook > &&value)
Definition: DescribeLifecycleHooksResult.h:50