AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeDeploy
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_CODEDEPLOY_API AutoScalingGroup() = default;
35 AWS_CODEDEPLOY_API AutoScalingGroup(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template<typename NameT = Aws::String>
47 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
48 template<typename NameT = Aws::String>
49 AutoScalingGroup& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_hookHasBeenSet = true; m_hook = std::forward<HookT>(value); }
64 template<typename HookT = Aws::String>
65 AutoScalingGroup& WithHook(HookT&& value) { SetHook(std::forward<HookT>(value)); return *this;}
67
69
76 inline const Aws::String& GetTerminationHook() const { return m_terminationHook; }
77 inline bool TerminationHookHasBeenSet() const { return m_terminationHookHasBeenSet; }
78 template<typename TerminationHookT = Aws::String>
79 void SetTerminationHook(TerminationHookT&& value) { m_terminationHookHasBeenSet = true; m_terminationHook = std::forward<TerminationHookT>(value); }
80 template<typename TerminationHookT = Aws::String>
81 AutoScalingGroup& WithTerminationHook(TerminationHookT&& value) { SetTerminationHook(std::forward<TerminationHookT>(value)); return *this;}
83 private:
84
85 Aws::String m_name;
86 bool m_nameHasBeenSet = false;
87
88 Aws::String m_hook;
89 bool m_hookHasBeenSet = false;
90
91 Aws::String m_terminationHook;
92 bool m_terminationHookHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace CodeDeploy
97} // 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