AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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