AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
DescribeLifecycleHooksResult.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/autoscaling/model/LifecycleHook.h>
9#include <aws/autoscaling/model/ResponseMetadata.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Xml {
21class XmlDocument;
22} // namespace Xml
23} // namespace Utils
24namespace AutoScaling {
25namespace Model {
27 public:
28 AWS_AUTOSCALING_API DescribeLifecycleHooksResult() = default;
31
33
36 inline const Aws::Vector<LifecycleHook>& GetLifecycleHooks() const { return m_lifecycleHooks; }
37 template <typename LifecycleHooksT = Aws::Vector<LifecycleHook>>
38 void SetLifecycleHooks(LifecycleHooksT&& value) {
39 m_lifecycleHooksHasBeenSet = true;
40 m_lifecycleHooks = std::forward<LifecycleHooksT>(value);
41 }
42 template <typename LifecycleHooksT = Aws::Vector<LifecycleHook>>
44 SetLifecycleHooks(std::forward<LifecycleHooksT>(value));
45 return *this;
46 }
47 template <typename LifecycleHooksT = LifecycleHook>
49 m_lifecycleHooksHasBeenSet = true;
50 m_lifecycleHooks.emplace_back(std::forward<LifecycleHooksT>(value));
51 return *this;
52 }
54
56
57 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
58 template <typename ResponseMetadataT = ResponseMetadata>
59 void SetResponseMetadata(ResponseMetadataT&& value) {
60 m_responseMetadataHasBeenSet = true;
61 m_responseMetadata = std::forward<ResponseMetadataT>(value);
62 }
63 template <typename ResponseMetadataT = ResponseMetadata>
65 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
66 return *this;
67 }
69 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
70
71 private:
72 Aws::Vector<LifecycleHook> m_lifecycleHooks;
73
74 ResponseMetadata m_responseMetadata;
75 Aws::Http::HttpResponseCode m_HttpResponseCode;
76 bool m_lifecycleHooksHasBeenSet = false;
77 bool m_responseMetadataHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace AutoScaling
82} // namespace Aws
AWS_AUTOSCALING_API DescribeLifecycleHooksResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const Aws::Vector< LifecycleHook > & GetLifecycleHooks() const
AWS_AUTOSCALING_API DescribeLifecycleHooksResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
DescribeLifecycleHooksResult & AddLifecycleHooks(LifecycleHooksT &&value)
AWS_AUTOSCALING_API DescribeLifecycleHooksResult()=default
DescribeLifecycleHooksResult & WithResponseMetadata(ResponseMetadataT &&value)
DescribeLifecycleHooksResult & WithLifecycleHooks(LifecycleHooksT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument