AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
DescribeLifecycleHooksRequest.h
1
6#pragma once
7#include <aws/autoscaling/AutoScalingRequest.h>
8#include <aws/autoscaling/AutoScaling_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace AutoScaling {
16namespace Model {
17
21 public:
22 AWS_AUTOSCALING_API DescribeLifecycleHooksRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "DescribeLifecycleHooks"; }
29
30 AWS_AUTOSCALING_API Aws::String SerializePayload() const override;
31
32 protected:
33 AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
34
35 public:
37
40 inline const Aws::String& GetAutoScalingGroupName() const { return m_autoScalingGroupName; }
41 inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
42 template <typename AutoScalingGroupNameT = Aws::String>
43 void SetAutoScalingGroupName(AutoScalingGroupNameT&& value) {
44 m_autoScalingGroupNameHasBeenSet = true;
45 m_autoScalingGroupName = std::forward<AutoScalingGroupNameT>(value);
46 }
47 template <typename AutoScalingGroupNameT = Aws::String>
49 SetAutoScalingGroupName(std::forward<AutoScalingGroupNameT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::Vector<Aws::String>& GetLifecycleHookNames() const { return m_lifecycleHookNames; }
60 inline bool LifecycleHookNamesHasBeenSet() const { return m_lifecycleHookNamesHasBeenSet; }
61 template <typename LifecycleHookNamesT = Aws::Vector<Aws::String>>
62 void SetLifecycleHookNames(LifecycleHookNamesT&& value) {
63 m_lifecycleHookNamesHasBeenSet = true;
64 m_lifecycleHookNames = std::forward<LifecycleHookNamesT>(value);
65 }
66 template <typename LifecycleHookNamesT = Aws::Vector<Aws::String>>
68 SetLifecycleHookNames(std::forward<LifecycleHookNamesT>(value));
69 return *this;
70 }
71 template <typename LifecycleHookNamesT = Aws::String>
73 m_lifecycleHookNamesHasBeenSet = true;
74 m_lifecycleHookNames.emplace_back(std::forward<LifecycleHookNamesT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_autoScalingGroupName;
80
81 Aws::Vector<Aws::String> m_lifecycleHookNames;
82 bool m_autoScalingGroupNameHasBeenSet = false;
83 bool m_lifecycleHookNamesHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace AutoScaling
88} // namespace Aws
AWS_AUTOSCALING_API Aws::String SerializePayload() const override
AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< Aws::String > & GetLifecycleHookNames() const
DescribeLifecycleHooksRequest & WithLifecycleHookNames(LifecycleHookNamesT &&value)
DescribeLifecycleHooksRequest & AddLifecycleHookNames(LifecycleHookNamesT &&value)
AWS_AUTOSCALING_API DescribeLifecycleHooksRequest()=default
DescribeLifecycleHooksRequest & WithAutoScalingGroupName(AutoScalingGroupNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector