AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
47 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
48 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
49 inline AutoScalingGroup& WithName(const Aws::String& value) { SetName(value); return *this;}
50 inline AutoScalingGroup& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
51 inline AutoScalingGroup& WithName(const char* value) { SetName(value); return *this;}
53
55
62 inline const Aws::String& GetHook() const{ return m_hook; }
63 inline bool HookHasBeenSet() const { return m_hookHasBeenSet; }
64 inline void SetHook(const Aws::String& value) { m_hookHasBeenSet = true; m_hook = value; }
65 inline void SetHook(Aws::String&& value) { m_hookHasBeenSet = true; m_hook = std::move(value); }
66 inline void SetHook(const char* value) { m_hookHasBeenSet = true; m_hook.assign(value); }
67 inline AutoScalingGroup& WithHook(const Aws::String& value) { SetHook(value); return *this;}
68 inline AutoScalingGroup& WithHook(Aws::String&& value) { SetHook(std::move(value)); return *this;}
69 inline AutoScalingGroup& WithHook(const char* value) { SetHook(value); return *this;}
71
73
80 inline const Aws::String& GetTerminationHook() const{ return m_terminationHook; }
81 inline bool TerminationHookHasBeenSet() const { return m_terminationHookHasBeenSet; }
82 inline void SetTerminationHook(const Aws::String& value) { m_terminationHookHasBeenSet = true; m_terminationHook = value; }
83 inline void SetTerminationHook(Aws::String&& value) { m_terminationHookHasBeenSet = true; m_terminationHook = std::move(value); }
84 inline void SetTerminationHook(const char* value) { m_terminationHookHasBeenSet = true; m_terminationHook.assign(value); }
85 inline AutoScalingGroup& WithTerminationHook(const Aws::String& value) { SetTerminationHook(value); return *this;}
86 inline AutoScalingGroup& WithTerminationHook(Aws::String&& value) { SetTerminationHook(std::move(value)); return *this;}
87 inline AutoScalingGroup& WithTerminationHook(const char* value) { SetTerminationHook(value); return *this;}
89 private:
90
91 Aws::String m_name;
92 bool m_nameHasBeenSet = false;
93
94 Aws::String m_hook;
95 bool m_hookHasBeenSet = false;
96
97 Aws::String m_terminationHook;
98 bool m_terminationHookHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace CodeDeploy
103} // namespace Aws
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetHook(const Aws::String &value)
AWS_CODEDEPLOY_API AutoScalingGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
AutoScalingGroup & WithHook(const Aws::String &value)
const Aws::String & GetTerminationHook() const
void SetName(const Aws::String &value)
void SetTerminationHook(const Aws::String &value)
AutoScalingGroup & WithTerminationHook(Aws::String &&value)
AutoScalingGroup & WithName(const Aws::String &value)
AutoScalingGroup & WithHook(Aws::String &&value)
void SetTerminationHook(Aws::String &&value)
AutoScalingGroup & WithName(Aws::String &&value)
AutoScalingGroup & WithTerminationHook(const Aws::String &value)
AWS_CODEDEPLOY_API AutoScalingGroup(Aws::Utils::Json::JsonView jsonValue)
AutoScalingGroup & WithName(const char *value)
AutoScalingGroup & WithTerminationHook(const char *value)
AutoScalingGroup & WithHook(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue