AWS SDK for C++  1.9.155
AWS SDK for C++
AutoScalingGroupProvider.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace ECS
24 {
25 namespace 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 
71  inline AutoScalingGroupProvider& WithAutoScalingGroupArn(const Aws::String& value) { SetAutoScalingGroupArn(value); return *this;}
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 
112  inline AutoScalingGroupProvider& WithManagedScaling(const ManagedScaling& value) { SetManagedScaling(value); return *this;}
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 
209  inline AutoScalingGroupProvider& WithManagedTerminationProtection(const ManagedTerminationProtection& value) { SetManagedTerminationProtection(value); return *this;}
210 
227  inline AutoScalingGroupProvider& WithManagedTerminationProtection(ManagedTerminationProtection&& value) { SetManagedTerminationProtection(std::move(value)); return *this;}
228 
229  private:
230 
231  Aws::String m_autoScalingGroupArn;
232  bool m_autoScalingGroupArnHasBeenSet;
233 
234  ManagedScaling m_managedScaling;
235  bool m_managedScalingHasBeenSet;
236 
237  ManagedTerminationProtection m_managedTerminationProtection;
238  bool m_managedTerminationProtectionHasBeenSet;
239  };
240 
241 } // namespace Model
242 } // namespace ECS
243 } // namespace Aws
Aws::ECS::Model::AutoScalingGroupProvider::ManagedScalingHasBeenSet
bool ManagedScalingHasBeenSet() const
Definition: AutoScalingGroupProvider.h:94
Aws::ECS::Model::AutoScalingGroupProvider::operator=
AutoScalingGroupProvider & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::AutoScalingGroupProvider::GetAutoScalingGroupArn
const Aws::String & GetAutoScalingGroupArn() const
Definition: AutoScalingGroupProvider.h:46
Aws::ECS::Model::AutoScalingGroupProvider::WithAutoScalingGroupArn
AutoScalingGroupProvider & WithAutoScalingGroupArn(const Aws::String &value)
Definition: AutoScalingGroupProvider.h:71
Aws::ECS::Model::AutoScalingGroupProvider::SetManagedScaling
void SetManagedScaling(const ManagedScaling &value)
Definition: AutoScalingGroupProvider.h:100
Aws::ECS::Model::AutoScalingGroupProvider::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::AutoScalingGroupProvider::SetAutoScalingGroupArn
void SetAutoScalingGroupArn(const Aws::String &value)
Definition: AutoScalingGroupProvider.h:56
Aws::ECS::Model::AutoScalingGroupProvider::WithManagedScaling
AutoScalingGroupProvider & WithManagedScaling(ManagedScaling &&value)
Definition: AutoScalingGroupProvider.h:118
Aws::ECS::Model::AutoScalingGroupProvider::GetManagedScaling
const ManagedScaling & GetManagedScaling() const
Definition: AutoScalingGroupProvider.h:88
ManagedTerminationProtection.h
Aws::ECS::Model::AutoScalingGroupProvider::WithManagedTerminationProtection
AutoScalingGroupProvider & WithManagedTerminationProtection(const ManagedTerminationProtection &value)
Definition: AutoScalingGroupProvider.h:209
Aws::ECS::Model::AutoScalingGroupProvider::AutoScalingGroupArnHasBeenSet
bool AutoScalingGroupArnHasBeenSet() const
Definition: AutoScalingGroupProvider.h:51
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::ECS::Model::AutoScalingGroupProvider::WithManagedTerminationProtection
AutoScalingGroupProvider & WithManagedTerminationProtection(ManagedTerminationProtection &&value)
Definition: AutoScalingGroupProvider.h:227
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECS::Model::AutoScalingGroupProvider::ManagedTerminationProtectionHasBeenSet
bool ManagedTerminationProtectionHasBeenSet() const
Definition: AutoScalingGroupProvider.h:155
Aws::ECS::Model::AutoScalingGroupProvider::AutoScalingGroupProvider
AutoScalingGroupProvider()
Aws::ECS::Model::AutoScalingGroupProvider::WithManagedScaling
AutoScalingGroupProvider & WithManagedScaling(const ManagedScaling &value)
Definition: AutoScalingGroupProvider.h:112
ManagedScaling.h
Aws::ECS::Model::AutoScalingGroupProvider::SetAutoScalingGroupArn
void SetAutoScalingGroupArn(Aws::String &&value)
Definition: AutoScalingGroupProvider.h:61
Aws::ECS::Model::AutoScalingGroupProvider::AutoScalingGroupProvider
AutoScalingGroupProvider(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::AutoScalingGroupProvider::SetManagedTerminationProtection
void SetManagedTerminationProtection(const ManagedTerminationProtection &value)
Definition: AutoScalingGroupProvider.h:173
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::AutoScalingGroupProvider::SetManagedTerminationProtection
void SetManagedTerminationProtection(ManagedTerminationProtection &&value)
Definition: AutoScalingGroupProvider.h:191
Aws::ECS::Model::AutoScalingGroupProvider
Definition: AutoScalingGroupProvider.h:35
Aws::ECS::Model::AutoScalingGroupProvider::GetManagedTerminationProtection
const ManagedTerminationProtection & GetManagedTerminationProtection() const
Definition: AutoScalingGroupProvider.h:137
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::AutoScalingGroupProvider::SetManagedScaling
void SetManagedScaling(ManagedScaling &&value)
Definition: AutoScalingGroupProvider.h:106
Aws::ECS::Model::ManagedScaling
Definition: ManagedScaling.h:41
Aws::ECS::Model::ManagedTerminationProtection
ManagedTerminationProtection
Definition: ManagedTerminationProtection.h:17
Aws::ECS::Model::AutoScalingGroupProvider::WithAutoScalingGroupArn
AutoScalingGroupProvider & WithAutoScalingGroupArn(const char *value)
Definition: AutoScalingGroupProvider.h:81
ECS_EXPORTS.h
Aws::ECS::Model::AutoScalingGroupProvider::WithAutoScalingGroupArn
AutoScalingGroupProvider & WithAutoScalingGroupArn(Aws::String &&value)
Definition: AutoScalingGroupProvider.h:76
Aws::ECS::Model::AutoScalingGroupProvider::SetAutoScalingGroupArn
void SetAutoScalingGroupArn(const char *value)
Definition: AutoScalingGroupProvider.h:66