AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AutoScalingGroup.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CodeDeploy {
20namespace Model {
21
28 public:
29 AWS_CODEDEPLOY_API AutoScalingGroup() = default;
30 AWS_CODEDEPLOY_API AutoScalingGroup(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
46 AutoScalingGroup& WithName(NameT&& value) {
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
60 inline const Aws::String& GetHook() const { return m_hook; }
61 inline bool HookHasBeenSet() const { return m_hookHasBeenSet; }
62 template <typename HookT = Aws::String>
63 void SetHook(HookT&& value) {
64 m_hookHasBeenSet = true;
65 m_hook = std::forward<HookT>(value);
66 }
67 template <typename HookT = Aws::String>
68 AutoScalingGroup& WithHook(HookT&& value) {
69 SetHook(std::forward<HookT>(value));
70 return *this;
71 }
73
75
82 inline const Aws::String& GetTerminationHook() const { return m_terminationHook; }
83 inline bool TerminationHookHasBeenSet() const { return m_terminationHookHasBeenSet; }
84 template <typename TerminationHookT = Aws::String>
85 void SetTerminationHook(TerminationHookT&& value) {
86 m_terminationHookHasBeenSet = true;
87 m_terminationHook = std::forward<TerminationHookT>(value);
88 }
89 template <typename TerminationHookT = Aws::String>
90 AutoScalingGroup& WithTerminationHook(TerminationHookT&& value) {
91 SetTerminationHook(std::forward<TerminationHookT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_name;
97
98 Aws::String m_hook;
99
100 Aws::String m_terminationHook;
101 bool m_nameHasBeenSet = false;
102 bool m_hookHasBeenSet = false;
103 bool m_terminationHookHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace CodeDeploy
108} // namespace Aws
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEDEPLOY_API AutoScalingGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
AutoScalingGroup & WithHook(HookT &&value)
const Aws::String & GetTerminationHook() const
void SetTerminationHook(TerminationHookT &&value)
AutoScalingGroup & WithTerminationHook(TerminationHookT &&value)
AWS_CODEDEPLOY_API AutoScalingGroup(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEDEPLOY_API AutoScalingGroup()=default
AutoScalingGroup & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue