AWS SDK for C++  1.9.156
AWS SDK for C++
CapacityProvider.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
13 #include <aws/ecs/model/Tag.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23  class JsonView;
24 } // namespace Json
25 } // namespace Utils
26 namespace ECS
27 {
28 namespace Model
29 {
30 
37  {
38  public:
43 
44 
48  inline const Aws::String& GetCapacityProviderArn() const{ return m_capacityProviderArn; }
49 
53  inline bool CapacityProviderArnHasBeenSet() const { return m_capacityProviderArnHasBeenSet; }
54 
58  inline void SetCapacityProviderArn(const Aws::String& value) { m_capacityProviderArnHasBeenSet = true; m_capacityProviderArn = value; }
59 
63  inline void SetCapacityProviderArn(Aws::String&& value) { m_capacityProviderArnHasBeenSet = true; m_capacityProviderArn = std::move(value); }
64 
68  inline void SetCapacityProviderArn(const char* value) { m_capacityProviderArnHasBeenSet = true; m_capacityProviderArn.assign(value); }
69 
73  inline CapacityProvider& WithCapacityProviderArn(const Aws::String& value) { SetCapacityProviderArn(value); return *this;}
74 
78  inline CapacityProvider& WithCapacityProviderArn(Aws::String&& value) { SetCapacityProviderArn(std::move(value)); return *this;}
79 
83  inline CapacityProvider& WithCapacityProviderArn(const char* value) { SetCapacityProviderArn(value); return *this;}
84 
85 
89  inline const Aws::String& GetName() const{ return m_name; }
90 
94  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
95 
99  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
100 
104  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
105 
109  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
110 
114  inline CapacityProvider& WithName(const Aws::String& value) { SetName(value); return *this;}
115 
119  inline CapacityProvider& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
120 
124  inline CapacityProvider& WithName(const char* value) { SetName(value); return *this;}
125 
126 
132  inline const CapacityProviderStatus& GetStatus() const{ return m_status; }
133 
139  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
140 
146  inline void SetStatus(const CapacityProviderStatus& value) { m_statusHasBeenSet = true; m_status = value; }
147 
153  inline void SetStatus(CapacityProviderStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
154 
160  inline CapacityProvider& WithStatus(const CapacityProviderStatus& value) { SetStatus(value); return *this;}
161 
167  inline CapacityProvider& WithStatus(CapacityProviderStatus&& value) { SetStatus(std::move(value)); return *this;}
168 
169 
173  inline const AutoScalingGroupProvider& GetAutoScalingGroupProvider() const{ return m_autoScalingGroupProvider; }
174 
178  inline bool AutoScalingGroupProviderHasBeenSet() const { return m_autoScalingGroupProviderHasBeenSet; }
179 
183  inline void SetAutoScalingGroupProvider(const AutoScalingGroupProvider& value) { m_autoScalingGroupProviderHasBeenSet = true; m_autoScalingGroupProvider = value; }
184 
188  inline void SetAutoScalingGroupProvider(AutoScalingGroupProvider&& value) { m_autoScalingGroupProviderHasBeenSet = true; m_autoScalingGroupProvider = std::move(value); }
189 
193  inline CapacityProvider& WithAutoScalingGroupProvider(const AutoScalingGroupProvider& value) { SetAutoScalingGroupProvider(value); return *this;}
194 
198  inline CapacityProvider& WithAutoScalingGroupProvider(AutoScalingGroupProvider&& value) { SetAutoScalingGroupProvider(std::move(value)); return *this;}
199 
200 
210  inline const CapacityProviderUpdateStatus& GetUpdateStatus() const{ return m_updateStatus; }
211 
221  inline bool UpdateStatusHasBeenSet() const { return m_updateStatusHasBeenSet; }
222 
232  inline void SetUpdateStatus(const CapacityProviderUpdateStatus& value) { m_updateStatusHasBeenSet = true; m_updateStatus = value; }
233 
243  inline void SetUpdateStatus(CapacityProviderUpdateStatus&& value) { m_updateStatusHasBeenSet = true; m_updateStatus = std::move(value); }
244 
254  inline CapacityProvider& WithUpdateStatus(const CapacityProviderUpdateStatus& value) { SetUpdateStatus(value); return *this;}
255 
265  inline CapacityProvider& WithUpdateStatus(CapacityProviderUpdateStatus&& value) { SetUpdateStatus(std::move(value)); return *this;}
266 
267 
272  inline const Aws::String& GetUpdateStatusReason() const{ return m_updateStatusReason; }
273 
278  inline bool UpdateStatusReasonHasBeenSet() const { return m_updateStatusReasonHasBeenSet; }
279 
284  inline void SetUpdateStatusReason(const Aws::String& value) { m_updateStatusReasonHasBeenSet = true; m_updateStatusReason = value; }
285 
290  inline void SetUpdateStatusReason(Aws::String&& value) { m_updateStatusReasonHasBeenSet = true; m_updateStatusReason = std::move(value); }
291 
296  inline void SetUpdateStatusReason(const char* value) { m_updateStatusReasonHasBeenSet = true; m_updateStatusReason.assign(value); }
297 
302  inline CapacityProvider& WithUpdateStatusReason(const Aws::String& value) { SetUpdateStatusReason(value); return *this;}
303 
308  inline CapacityProvider& WithUpdateStatusReason(Aws::String&& value) { SetUpdateStatusReason(std::move(value)); return *this;}
309 
314  inline CapacityProvider& WithUpdateStatusReason(const char* value) { SetUpdateStatusReason(value); return *this;}
315 
316 
335  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
336 
355  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
356 
375  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
376 
395  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
396 
415  inline CapacityProvider& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
416 
435  inline CapacityProvider& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
436 
455  inline CapacityProvider& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
456 
475  inline CapacityProvider& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
476 
477  private:
478 
479  Aws::String m_capacityProviderArn;
480  bool m_capacityProviderArnHasBeenSet;
481 
482  Aws::String m_name;
483  bool m_nameHasBeenSet;
484 
485  CapacityProviderStatus m_status;
486  bool m_statusHasBeenSet;
487 
488  AutoScalingGroupProvider m_autoScalingGroupProvider;
489  bool m_autoScalingGroupProviderHasBeenSet;
490 
491  CapacityProviderUpdateStatus m_updateStatus;
492  bool m_updateStatusHasBeenSet;
493 
494  Aws::String m_updateStatusReason;
495  bool m_updateStatusReasonHasBeenSet;
496 
497  Aws::Vector<Tag> m_tags;
498  bool m_tagsHasBeenSet;
499  };
500 
501 } // namespace Model
502 } // namespace ECS
503 } // namespace Aws
Aws::ECS::Model::CapacityProvider::WithUpdateStatusReason
CapacityProvider & WithUpdateStatusReason(Aws::String &&value)
Definition: CapacityProvider.h:308
Aws::ECS::Model::CapacityProvider::UpdateStatusHasBeenSet
bool UpdateStatusHasBeenSet() const
Definition: CapacityProvider.h:221
Aws::ECS::Model::CapacityProvider::SetUpdateStatusReason
void SetUpdateStatusReason(const char *value)
Definition: CapacityProvider.h:296
Aws::ECS::Model::CapacityProvider::WithUpdateStatusReason
CapacityProvider & WithUpdateStatusReason(const Aws::String &value)
Definition: CapacityProvider.h:302
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::CapacityProvider::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CapacityProvider.h:94
AutoScalingGroupProvider.h
Aws::ECS::Model::CapacityProvider::CapacityProvider
CapacityProvider()
Aws::ECS::Model::CapacityProvider::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CapacityProvider.h:335
Aws::ECS::Model::CapacityProvider::WithUpdateStatus
CapacityProvider & WithUpdateStatus(CapacityProviderUpdateStatus &&value)
Definition: CapacityProvider.h:265
Aws::ECS::Model::CapacityProvider::SetCapacityProviderArn
void SetCapacityProviderArn(const Aws::String &value)
Definition: CapacityProvider.h:58
Tag.h
Aws::ECS::Model::CapacityProvider::UpdateStatusReasonHasBeenSet
bool UpdateStatusReasonHasBeenSet() const
Definition: CapacityProvider.h:278
Aws::ECS::Model::CapacityProvider::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: CapacityProvider.h:139
Aws::ECS::Model::CapacityProvider::SetCapacityProviderArn
void SetCapacityProviderArn(const char *value)
Definition: CapacityProvider.h:68
CapacityProviderStatus.h
Aws::ECS::Model::CapacityProvider::GetUpdateStatusReason
const Aws::String & GetUpdateStatusReason() const
Definition: CapacityProvider.h:272
Aws::ECS::Model::CapacityProvider::GetName
const Aws::String & GetName() const
Definition: CapacityProvider.h:89
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECS::Model::CapacityProvider::WithStatus
CapacityProvider & WithStatus(CapacityProviderStatus &&value)
Definition: CapacityProvider.h:167
Aws::ECS::Model::Tag
Definition: Tag.h:47
AWSVector.h
Aws::ECS::Model::CapacityProvider::CapacityProvider
CapacityProvider(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::CapacityProvider::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CapacityProvider.h:355
Aws::ECS::Model::CapacityProvider::AddTags
CapacityProvider & AddTags(Tag &&value)
Definition: CapacityProvider.h:475
Aws::ECS::Model::CapacityProvider::AddTags
CapacityProvider & AddTags(const Tag &value)
Definition: CapacityProvider.h:455
Aws::ECS::Model::CapacityProviderUpdateStatus
CapacityProviderUpdateStatus
Definition: CapacityProviderUpdateStatus.h:17
Aws::ECS::Model::CapacityProvider::WithCapacityProviderArn
CapacityProvider & WithCapacityProviderArn(Aws::String &&value)
Definition: CapacityProvider.h:78
Aws::ECS::Model::CapacityProvider::CapacityProviderArnHasBeenSet
bool CapacityProviderArnHasBeenSet() const
Definition: CapacityProvider.h:53
Aws::ECS::Model::CapacityProvider::SetUpdateStatus
void SetUpdateStatus(CapacityProviderUpdateStatus &&value)
Definition: CapacityProvider.h:243
Aws::ECS::Model::CapacityProvider::GetUpdateStatus
const CapacityProviderUpdateStatus & GetUpdateStatus() const
Definition: CapacityProvider.h:210
Aws::ECS::Model::CapacityProvider::WithTags
CapacityProvider & WithTags(const Aws::Vector< Tag > &value)
Definition: CapacityProvider.h:415
Aws::ECS::Model::CapacityProvider::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CapacityProvider.h:395
Aws::ECS::Model::CapacityProvider::SetName
void SetName(const char *value)
Definition: CapacityProvider.h:109
Aws::ECS::Model::CapacityProvider::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECS::Model::CapacityProvider::WithCapacityProviderArn
CapacityProvider & WithCapacityProviderArn(const Aws::String &value)
Definition: CapacityProvider.h:73
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECS::Model::CapacityProvider::WithCapacityProviderArn
CapacityProvider & WithCapacityProviderArn(const char *value)
Definition: CapacityProvider.h:83
Aws::ECS::Model::CapacityProvider::WithUpdateStatusReason
CapacityProvider & WithUpdateStatusReason(const char *value)
Definition: CapacityProvider.h:314
Aws::ECS::Model::CapacityProvider::WithName
CapacityProvider & WithName(const Aws::String &value)
Definition: CapacityProvider.h:114
Aws::ECS::Model::CapacityProvider
Definition: CapacityProvider.h:37
Aws::ECS::Model::CapacityProvider::WithAutoScalingGroupProvider
CapacityProvider & WithAutoScalingGroupProvider(AutoScalingGroupProvider &&value)
Definition: CapacityProvider.h:198
Aws::ECS::Model::CapacityProvider::SetStatus
void SetStatus(const CapacityProviderStatus &value)
Definition: CapacityProvider.h:146
Aws::ECS::Model::CapacityProvider::SetAutoScalingGroupProvider
void SetAutoScalingGroupProvider(AutoScalingGroupProvider &&value)
Definition: CapacityProvider.h:188
Aws::ECS::Model::CapacityProvider::GetCapacityProviderArn
const Aws::String & GetCapacityProviderArn() const
Definition: CapacityProvider.h:48
Aws::ECS::Model::CapacityProvider::SetUpdateStatusReason
void SetUpdateStatusReason(const Aws::String &value)
Definition: CapacityProvider.h:284
Aws::ECS::Model::CapacityProviderStatus
CapacityProviderStatus
Definition: CapacityProviderStatus.h:17
Aws::ECS::Model::CapacityProvider::WithTags
CapacityProvider & WithTags(Aws::Vector< Tag > &&value)
Definition: CapacityProvider.h:435
Aws::ECS::Model::CapacityProvider::WithAutoScalingGroupProvider
CapacityProvider & WithAutoScalingGroupProvider(const AutoScalingGroupProvider &value)
Definition: CapacityProvider.h:193
Aws::ECS::Model::CapacityProvider::operator=
CapacityProvider & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::CapacityProvider::SetName
void SetName(Aws::String &&value)
Definition: CapacityProvider.h:104
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::CapacityProvider::GetStatus
const CapacityProviderStatus & GetStatus() const
Definition: CapacityProvider.h:132
Aws::ECS::Model::AutoScalingGroupProvider
Definition: AutoScalingGroupProvider.h:35
Aws::ECS::Model::CapacityProvider::AutoScalingGroupProviderHasBeenSet
bool AutoScalingGroupProviderHasBeenSet() const
Definition: CapacityProvider.h:178
Aws::ECS::Model::CapacityProvider::WithStatus
CapacityProvider & WithStatus(const CapacityProviderStatus &value)
Definition: CapacityProvider.h:160
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::CapacityProvider::GetAutoScalingGroupProvider
const AutoScalingGroupProvider & GetAutoScalingGroupProvider() const
Definition: CapacityProvider.h:173
Aws::ECS::Model::CapacityProvider::SetCapacityProviderArn
void SetCapacityProviderArn(Aws::String &&value)
Definition: CapacityProvider.h:63
CapacityProviderUpdateStatus.h
Aws::ECS::Model::CapacityProvider::SetStatus
void SetStatus(CapacityProviderStatus &&value)
Definition: CapacityProvider.h:153
Aws::ECS::Model::CapacityProvider::SetUpdateStatus
void SetUpdateStatus(const CapacityProviderUpdateStatus &value)
Definition: CapacityProvider.h:232
Aws::ECS::Model::CapacityProvider::SetName
void SetName(const Aws::String &value)
Definition: CapacityProvider.h:99
Aws::ECS::Model::CapacityProvider::SetUpdateStatusReason
void SetUpdateStatusReason(Aws::String &&value)
Definition: CapacityProvider.h:290
Aws::ECS::Model::CapacityProvider::WithName
CapacityProvider & WithName(Aws::String &&value)
Definition: CapacityProvider.h:119
Aws::ECS::Model::CapacityProvider::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CapacityProvider.h:375
Aws::ECS::Model::CapacityProvider::WithUpdateStatus
CapacityProvider & WithUpdateStatus(const CapacityProviderUpdateStatus &value)
Definition: CapacityProvider.h:254
Aws::ECS::Model::CapacityProvider::WithName
CapacityProvider & WithName(const char *value)
Definition: CapacityProvider.h:124
ECS_EXPORTS.h
Aws::ECS::Model::CapacityProvider::SetAutoScalingGroupProvider
void SetAutoScalingGroupProvider(const AutoScalingGroupProvider &value)
Definition: CapacityProvider.h:183