AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
AutoScalingGroupProvider.h
Go to the documentation of this file.
1
6#pragma once
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ECS
24{
25namespace Model
26{
27
35 {
36 public:
41
42
46 inline const Aws::String& GetAutoScalingGroupArn() const{ return m_autoScalingGroupArn; }
47
51 inline bool AutoScalingGroupArnHasBeenSet() const { return m_autoScalingGroupArnHasBeenSet; }
52
56 inline void SetAutoScalingGroupArn(const Aws::String& value) { m_autoScalingGroupArnHasBeenSet = true; m_autoScalingGroupArn = value; }
57
61 inline void SetAutoScalingGroupArn(Aws::String&& value) { m_autoScalingGroupArnHasBeenSet = true; m_autoScalingGroupArn = std::move(value); }
62
66 inline void SetAutoScalingGroupArn(const char* value) { m_autoScalingGroupArnHasBeenSet = true; m_autoScalingGroupArn.assign(value); }
67
72
76 inline AutoScalingGroupProvider& WithAutoScalingGroupArn(Aws::String&& value) { SetAutoScalingGroupArn(std::move(value)); return *this;}
77
81 inline AutoScalingGroupProvider& WithAutoScalingGroupArn(const char* value) { SetAutoScalingGroupArn(value); return *this;}
82
83
88 inline const ManagedScaling& GetManagedScaling() const{ return m_managedScaling; }
89
94 inline bool ManagedScalingHasBeenSet() const { return m_managedScalingHasBeenSet; }
95
100 inline void SetManagedScaling(const ManagedScaling& value) { m_managedScalingHasBeenSet = true; m_managedScaling = value; }
101
106 inline void SetManagedScaling(ManagedScaling&& value) { m_managedScalingHasBeenSet = true; m_managedScaling = std::move(value); }
107
113
118 inline AutoScalingGroupProvider& WithManagedScaling(ManagedScaling&& value) { SetManagedScaling(std::move(value)); return *this;}
119
120
137 inline const ManagedTerminationProtection& GetManagedTerminationProtection() const{ return m_managedTerminationProtection; }
138
155 inline bool ManagedTerminationProtectionHasBeenSet() const { return m_managedTerminationProtectionHasBeenSet; }
156
173 inline void SetManagedTerminationProtection(const ManagedTerminationProtection& value) { m_managedTerminationProtectionHasBeenSet = true; m_managedTerminationProtection = value; }
174
191 inline void SetManagedTerminationProtection(ManagedTerminationProtection&& value) { m_managedTerminationProtectionHasBeenSet = true; m_managedTerminationProtection = std::move(value); }
192
210
228
229 private:
230
231 Aws::String m_autoScalingGroupArn;
232 bool m_autoScalingGroupArnHasBeenSet = false;
233
234 ManagedScaling m_managedScaling;
235 bool m_managedScalingHasBeenSet = false;
236
237 ManagedTerminationProtection m_managedTerminationProtection;
238 bool m_managedTerminationProtectionHasBeenSet = false;
239 };
240
241} // namespace Model
242} // namespace ECS
243} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
AutoScalingGroupProvider & WithManagedScaling(ManagedScaling &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AutoScalingGroupProvider & WithAutoScalingGroupArn(const Aws::String &value)
void SetAutoScalingGroupArn(const Aws::String &value)
AutoScalingGroupProvider & WithAutoScalingGroupArn(Aws::String &&value)
const ManagedScaling & GetManagedScaling() const
void SetManagedTerminationProtection(ManagedTerminationProtection &&value)
AutoScalingGroupProvider & WithManagedScaling(const ManagedScaling &value)
void SetManagedScaling(const ManagedScaling &value)
AWS_ECS_API AutoScalingGroupProvider(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API AutoScalingGroupProvider & operator=(Aws::Utils::Json::JsonView jsonValue)
AutoScalingGroupProvider & WithManagedTerminationProtection(const ManagedTerminationProtection &value)
const ManagedTerminationProtection & GetManagedTerminationProtection() const
AutoScalingGroupProvider & WithAutoScalingGroupArn(const char *value)
AutoScalingGroupProvider & WithManagedTerminationProtection(ManagedTerminationProtection &&value)
void SetManagedTerminationProtection(const ManagedTerminationProtection &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String