AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribeLifecycleHooksResult.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/autoscaling/model/ResponseMetadata.h>
10#include <aws/autoscaling/model/LifecycleHook.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Xml
21{
22 class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace AutoScaling
26{
27namespace Model
28{
30 {
31 public:
32 AWS_AUTOSCALING_API DescribeLifecycleHooksResult() = default;
35
36
38
41 inline const Aws::Vector<LifecycleHook>& GetLifecycleHooks() const { return m_lifecycleHooks; }
42 template<typename LifecycleHooksT = Aws::Vector<LifecycleHook>>
43 void SetLifecycleHooks(LifecycleHooksT&& value) { m_lifecycleHooksHasBeenSet = true; m_lifecycleHooks = std::forward<LifecycleHooksT>(value); }
44 template<typename LifecycleHooksT = Aws::Vector<LifecycleHook>>
45 DescribeLifecycleHooksResult& WithLifecycleHooks(LifecycleHooksT&& value) { SetLifecycleHooks(std::forward<LifecycleHooksT>(value)); return *this;}
46 template<typename LifecycleHooksT = LifecycleHook>
47 DescribeLifecycleHooksResult& AddLifecycleHooks(LifecycleHooksT&& value) { m_lifecycleHooksHasBeenSet = true; m_lifecycleHooks.emplace_back(std::forward<LifecycleHooksT>(value)); return *this; }
49
51
52 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
53 template<typename ResponseMetadataT = ResponseMetadata>
54 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
55 template<typename ResponseMetadataT = ResponseMetadata>
56 DescribeLifecycleHooksResult& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
58 private:
59
60 Aws::Vector<LifecycleHook> m_lifecycleHooks;
61 bool m_lifecycleHooksHasBeenSet = false;
62
63 ResponseMetadata m_responseMetadata;
64 bool m_responseMetadataHasBeenSet = false;
65 };
66
67} // namespace Model
68} // namespace AutoScaling
69} // 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