AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CapacityProvider.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ecs/model/CapacityProviderStatus.h>
10#include <aws/ecs/model/AutoScalingGroupProvider.h>
11#include <aws/ecs/model/CapacityProviderUpdateStatus.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/ecs/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace ECS
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_ECS_API CapacityProvider();
43
44
46
49 inline const Aws::String& GetCapacityProviderArn() const{ return m_capacityProviderArn; }
50 inline bool CapacityProviderArnHasBeenSet() const { return m_capacityProviderArnHasBeenSet; }
51 inline void SetCapacityProviderArn(const Aws::String& value) { m_capacityProviderArnHasBeenSet = true; m_capacityProviderArn = value; }
52 inline void SetCapacityProviderArn(Aws::String&& value) { m_capacityProviderArnHasBeenSet = true; m_capacityProviderArn = std::move(value); }
53 inline void SetCapacityProviderArn(const char* value) { m_capacityProviderArnHasBeenSet = true; m_capacityProviderArn.assign(value); }
54 inline CapacityProvider& WithCapacityProviderArn(const Aws::String& value) { SetCapacityProviderArn(value); return *this;}
55 inline CapacityProvider& WithCapacityProviderArn(Aws::String&& value) { SetCapacityProviderArn(std::move(value)); return *this;}
56 inline CapacityProvider& WithCapacityProviderArn(const char* value) { SetCapacityProviderArn(value); return *this;}
58
60
63 inline const Aws::String& GetName() const{ return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
66 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 inline CapacityProvider& WithName(const Aws::String& value) { SetName(value); return *this;}
69 inline CapacityProvider& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
70 inline CapacityProvider& WithName(const char* value) { SetName(value); return *this;}
72
74
79 inline const CapacityProviderStatus& GetStatus() const{ return m_status; }
80 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
81 inline void SetStatus(const CapacityProviderStatus& value) { m_statusHasBeenSet = true; m_status = value; }
82 inline void SetStatus(CapacityProviderStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
83 inline CapacityProvider& WithStatus(const CapacityProviderStatus& value) { SetStatus(value); return *this;}
84 inline CapacityProvider& WithStatus(CapacityProviderStatus&& value) { SetStatus(std::move(value)); return *this;}
86
88
91 inline const AutoScalingGroupProvider& GetAutoScalingGroupProvider() const{ return m_autoScalingGroupProvider; }
92 inline bool AutoScalingGroupProviderHasBeenSet() const { return m_autoScalingGroupProviderHasBeenSet; }
93 inline void SetAutoScalingGroupProvider(const AutoScalingGroupProvider& value) { m_autoScalingGroupProviderHasBeenSet = true; m_autoScalingGroupProvider = value; }
94 inline void SetAutoScalingGroupProvider(AutoScalingGroupProvider&& value) { m_autoScalingGroupProviderHasBeenSet = true; m_autoScalingGroupProvider = std::move(value); }
98
100
109 inline const CapacityProviderUpdateStatus& GetUpdateStatus() const{ return m_updateStatus; }
110 inline bool UpdateStatusHasBeenSet() const { return m_updateStatusHasBeenSet; }
111 inline void SetUpdateStatus(const CapacityProviderUpdateStatus& value) { m_updateStatusHasBeenSet = true; m_updateStatus = value; }
112 inline void SetUpdateStatus(CapacityProviderUpdateStatus&& value) { m_updateStatusHasBeenSet = true; m_updateStatus = std::move(value); }
114 inline CapacityProvider& WithUpdateStatus(CapacityProviderUpdateStatus&& value) { SetUpdateStatus(std::move(value)); return *this;}
116
118
122 inline const Aws::String& GetUpdateStatusReason() const{ return m_updateStatusReason; }
123 inline bool UpdateStatusReasonHasBeenSet() const { return m_updateStatusReasonHasBeenSet; }
124 inline void SetUpdateStatusReason(const Aws::String& value) { m_updateStatusReasonHasBeenSet = true; m_updateStatusReason = value; }
125 inline void SetUpdateStatusReason(Aws::String&& value) { m_updateStatusReasonHasBeenSet = true; m_updateStatusReason = std::move(value); }
126 inline void SetUpdateStatusReason(const char* value) { m_updateStatusReasonHasBeenSet = true; m_updateStatusReason.assign(value); }
127 inline CapacityProvider& WithUpdateStatusReason(const Aws::String& value) { SetUpdateStatusReason(value); return *this;}
128 inline CapacityProvider& WithUpdateStatusReason(Aws::String&& value) { SetUpdateStatusReason(std::move(value)); return *this;}
129 inline CapacityProvider& WithUpdateStatusReason(const char* value) { SetUpdateStatusReason(value); return *this;}
131
133
151 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
152 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
153 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
154 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
155 inline CapacityProvider& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
156 inline CapacityProvider& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
157 inline CapacityProvider& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
158 inline CapacityProvider& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
160 private:
161
162 Aws::String m_capacityProviderArn;
163 bool m_capacityProviderArnHasBeenSet = false;
164
165 Aws::String m_name;
166 bool m_nameHasBeenSet = false;
167
168 CapacityProviderStatus m_status;
169 bool m_statusHasBeenSet = false;
170
171 AutoScalingGroupProvider m_autoScalingGroupProvider;
172 bool m_autoScalingGroupProviderHasBeenSet = false;
173
174 CapacityProviderUpdateStatus m_updateStatus;
175 bool m_updateStatusHasBeenSet = false;
176
177 Aws::String m_updateStatusReason;
178 bool m_updateStatusReasonHasBeenSet = false;
179
180 Aws::Vector<Tag> m_tags;
181 bool m_tagsHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace ECS
186} // namespace Aws
CapacityProvider & WithUpdateStatusReason(const char *value)
void SetUpdateStatusReason(const char *value)
void SetTags(Aws::Vector< Tag > &&value)
AWS_ECS_API CapacityProvider & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUpdateStatus(CapacityProviderUpdateStatus &&value)
void SetCapacityProviderArn(Aws::String &&value)
CapacityProvider & WithTags(Aws::Vector< Tag > &&value)
CapacityProvider & WithTags(const Aws::Vector< Tag > &value)
const CapacityProviderStatus & GetStatus() const
void SetName(const char *value)
void SetCapacityProviderArn(const char *value)
const CapacityProviderUpdateStatus & GetUpdateStatus() const
void SetUpdateStatusReason(const Aws::String &value)
const Aws::String & GetName() const
CapacityProvider & WithName(const Aws::String &value)
CapacityProvider & WithName(Aws::String &&value)
CapacityProvider & AddTags(Tag &&value)
CapacityProvider & AddTags(const Tag &value)
void SetAutoScalingGroupProvider(AutoScalingGroupProvider &&value)
CapacityProvider & WithAutoScalingGroupProvider(const AutoScalingGroupProvider &value)
void SetName(Aws::String &&value)
CapacityProvider & WithCapacityProviderArn(const Aws::String &value)
const Aws::String & GetCapacityProviderArn() const
void SetTags(const Aws::Vector< Tag > &value)
CapacityProvider & WithUpdateStatus(const CapacityProviderUpdateStatus &value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(CapacityProviderStatus &&value)
const Aws::String & GetUpdateStatusReason() const
CapacityProvider & WithUpdateStatus(CapacityProviderUpdateStatus &&value)
CapacityProvider & WithStatus(CapacityProviderStatus &&value)
CapacityProvider & WithStatus(const CapacityProviderStatus &value)
CapacityProvider & WithAutoScalingGroupProvider(AutoScalingGroupProvider &&value)
CapacityProvider & WithUpdateStatusReason(const Aws::String &value)
const AutoScalingGroupProvider & GetAutoScalingGroupProvider() const
AWS_ECS_API CapacityProvider(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Tag > & GetTags() const
CapacityProvider & WithCapacityProviderArn(Aws::String &&value)
void SetAutoScalingGroupProvider(const AutoScalingGroupProvider &value)
void SetStatus(const CapacityProviderStatus &value)
void SetUpdateStatus(const CapacityProviderUpdateStatus &value)
CapacityProvider & WithCapacityProviderArn(const char *value)
CapacityProvider & WithUpdateStatusReason(Aws::String &&value)
void SetUpdateStatusReason(Aws::String &&value)
void SetCapacityProviderArn(const Aws::String &value)
CapacityProvider & WithName(const char *value)
void SetName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue