AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Fleet.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/codebuild/model/FleetStatus.h>
11#include <aws/codebuild/model/EnvironmentType.h>
12#include <aws/codebuild/model/ComputeType.h>
13#include <aws/codebuild/model/ScalingConfigurationOutput.h>
14#include <aws/codebuild/model/FleetOverflowBehavior.h>
15#include <aws/codebuild/model/VpcConfig.h>
16#include <aws/codebuild/model/ProxyConfiguration.h>
17#include <aws/core/utils/memory/stl/AWSVector.h>
18#include <aws/codebuild/model/Tag.h>
19#include <utility>
20
21namespace Aws
22{
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28 class JsonView;
29} // namespace Json
30} // namespace Utils
31namespace CodeBuild
32{
33namespace Model
34{
35
42 class Fleet
43 {
44 public:
45 AWS_CODEBUILD_API Fleet();
46 AWS_CODEBUILD_API Fleet(Aws::Utils::Json::JsonView jsonValue);
47 AWS_CODEBUILD_API Fleet& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
55 inline const Aws::String& GetArn() const{ return m_arn; }
56 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
57 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
58 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
59 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
60 inline Fleet& WithArn(const Aws::String& value) { SetArn(value); return *this;}
61 inline Fleet& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
62 inline Fleet& WithArn(const char* value) { SetArn(value); return *this;}
64
66
69 inline const Aws::String& GetName() const{ return m_name; }
70 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
71 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
72 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
73 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
74 inline Fleet& WithName(const Aws::String& value) { SetName(value); return *this;}
75 inline Fleet& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
76 inline Fleet& WithName(const char* value) { SetName(value); return *this;}
78
80
83 inline const Aws::String& GetId() const{ return m_id; }
84 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
85 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
86 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
87 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
88 inline Fleet& WithId(const Aws::String& value) { SetId(value); return *this;}
89 inline Fleet& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
90 inline Fleet& WithId(const char* value) { SetId(value); return *this;}
92
94
97 inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; }
98 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
99 inline void SetCreated(const Aws::Utils::DateTime& value) { m_createdHasBeenSet = true; m_created = value; }
100 inline void SetCreated(Aws::Utils::DateTime&& value) { m_createdHasBeenSet = true; m_created = std::move(value); }
101 inline Fleet& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;}
102 inline Fleet& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(std::move(value)); return *this;}
104
106
109 inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; }
110 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
111 inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; }
112 inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::move(value); }
113 inline Fleet& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;}
114 inline Fleet& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(std::move(value)); return *this;}
116
118
121 inline const FleetStatus& GetStatus() const{ return m_status; }
122 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
123 inline void SetStatus(const FleetStatus& value) { m_statusHasBeenSet = true; m_status = value; }
124 inline void SetStatus(FleetStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
125 inline Fleet& WithStatus(const FleetStatus& value) { SetStatus(value); return *this;}
126 inline Fleet& WithStatus(FleetStatus&& value) { SetStatus(std::move(value)); return *this;}
128
130
134 inline int GetBaseCapacity() const{ return m_baseCapacity; }
135 inline bool BaseCapacityHasBeenSet() const { return m_baseCapacityHasBeenSet; }
136 inline void SetBaseCapacity(int value) { m_baseCapacityHasBeenSet = true; m_baseCapacity = value; }
137 inline Fleet& WithBaseCapacity(int value) { SetBaseCapacity(value); return *this;}
139
141
170 inline const EnvironmentType& GetEnvironmentType() const{ return m_environmentType; }
171 inline bool EnvironmentTypeHasBeenSet() const { return m_environmentTypeHasBeenSet; }
172 inline void SetEnvironmentType(const EnvironmentType& value) { m_environmentTypeHasBeenSet = true; m_environmentType = value; }
173 inline void SetEnvironmentType(EnvironmentType&& value) { m_environmentTypeHasBeenSet = true; m_environmentType = std::move(value); }
174 inline Fleet& WithEnvironmentType(const EnvironmentType& value) { SetEnvironmentType(value); return *this;}
175 inline Fleet& WithEnvironmentType(EnvironmentType&& value) { SetEnvironmentType(std::move(value)); return *this;}
177
179
208 inline const ComputeType& GetComputeType() const{ return m_computeType; }
209 inline bool ComputeTypeHasBeenSet() const { return m_computeTypeHasBeenSet; }
210 inline void SetComputeType(const ComputeType& value) { m_computeTypeHasBeenSet = true; m_computeType = value; }
211 inline void SetComputeType(ComputeType&& value) { m_computeTypeHasBeenSet = true; m_computeType = std::move(value); }
212 inline Fleet& WithComputeType(const ComputeType& value) { SetComputeType(value); return *this;}
213 inline Fleet& WithComputeType(ComputeType&& value) { SetComputeType(std::move(value)); return *this;}
215
217
220 inline const ScalingConfigurationOutput& GetScalingConfiguration() const{ return m_scalingConfiguration; }
221 inline bool ScalingConfigurationHasBeenSet() const { return m_scalingConfigurationHasBeenSet; }
222 inline void SetScalingConfiguration(const ScalingConfigurationOutput& value) { m_scalingConfigurationHasBeenSet = true; m_scalingConfiguration = value; }
223 inline void SetScalingConfiguration(ScalingConfigurationOutput&& value) { m_scalingConfigurationHasBeenSet = true; m_scalingConfiguration = std::move(value); }
225 inline Fleet& WithScalingConfiguration(ScalingConfigurationOutput&& value) { SetScalingConfiguration(std::move(value)); return *this;}
227
229
241 inline const FleetOverflowBehavior& GetOverflowBehavior() const{ return m_overflowBehavior; }
242 inline bool OverflowBehaviorHasBeenSet() const { return m_overflowBehaviorHasBeenSet; }
243 inline void SetOverflowBehavior(const FleetOverflowBehavior& value) { m_overflowBehaviorHasBeenSet = true; m_overflowBehavior = value; }
244 inline void SetOverflowBehavior(FleetOverflowBehavior&& value) { m_overflowBehaviorHasBeenSet = true; m_overflowBehavior = std::move(value); }
245 inline Fleet& WithOverflowBehavior(const FleetOverflowBehavior& value) { SetOverflowBehavior(value); return *this;}
246 inline Fleet& WithOverflowBehavior(FleetOverflowBehavior&& value) { SetOverflowBehavior(std::move(value)); return *this;}
248
250
251 inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; }
252 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
253 inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
254 inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); }
255 inline Fleet& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;}
256 inline Fleet& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;}
258
260
263 inline const ProxyConfiguration& GetProxyConfiguration() const{ return m_proxyConfiguration; }
264 inline bool ProxyConfigurationHasBeenSet() const { return m_proxyConfigurationHasBeenSet; }
265 inline void SetProxyConfiguration(const ProxyConfiguration& value) { m_proxyConfigurationHasBeenSet = true; m_proxyConfiguration = value; }
266 inline void SetProxyConfiguration(ProxyConfiguration&& value) { m_proxyConfigurationHasBeenSet = true; m_proxyConfiguration = std::move(value); }
267 inline Fleet& WithProxyConfiguration(const ProxyConfiguration& value) { SetProxyConfiguration(value); return *this;}
268 inline Fleet& WithProxyConfiguration(ProxyConfiguration&& value) { SetProxyConfiguration(std::move(value)); return *this;}
270
272
275 inline const Aws::String& GetImageId() const{ return m_imageId; }
276 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
277 inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
278 inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
279 inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
280 inline Fleet& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
281 inline Fleet& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
282 inline Fleet& WithImageId(const char* value) { SetImageId(value); return *this;}
284
286
293 inline const Aws::String& GetFleetServiceRole() const{ return m_fleetServiceRole; }
294 inline bool FleetServiceRoleHasBeenSet() const { return m_fleetServiceRoleHasBeenSet; }
295 inline void SetFleetServiceRole(const Aws::String& value) { m_fleetServiceRoleHasBeenSet = true; m_fleetServiceRole = value; }
296 inline void SetFleetServiceRole(Aws::String&& value) { m_fleetServiceRoleHasBeenSet = true; m_fleetServiceRole = std::move(value); }
297 inline void SetFleetServiceRole(const char* value) { m_fleetServiceRoleHasBeenSet = true; m_fleetServiceRole.assign(value); }
298 inline Fleet& WithFleetServiceRole(const Aws::String& value) { SetFleetServiceRole(value); return *this;}
299 inline Fleet& WithFleetServiceRole(Aws::String&& value) { SetFleetServiceRole(std::move(value)); return *this;}
300 inline Fleet& WithFleetServiceRole(const char* value) { SetFleetServiceRole(value); return *this;}
302
304
309 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
310 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
311 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
312 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
313 inline Fleet& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
314 inline Fleet& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
315 inline Fleet& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
316 inline Fleet& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
318 private:
319
320 Aws::String m_arn;
321 bool m_arnHasBeenSet = false;
322
323 Aws::String m_name;
324 bool m_nameHasBeenSet = false;
325
326 Aws::String m_id;
327 bool m_idHasBeenSet = false;
328
329 Aws::Utils::DateTime m_created;
330 bool m_createdHasBeenSet = false;
331
332 Aws::Utils::DateTime m_lastModified;
333 bool m_lastModifiedHasBeenSet = false;
334
335 FleetStatus m_status;
336 bool m_statusHasBeenSet = false;
337
338 int m_baseCapacity;
339 bool m_baseCapacityHasBeenSet = false;
340
341 EnvironmentType m_environmentType;
342 bool m_environmentTypeHasBeenSet = false;
343
344 ComputeType m_computeType;
345 bool m_computeTypeHasBeenSet = false;
346
347 ScalingConfigurationOutput m_scalingConfiguration;
348 bool m_scalingConfigurationHasBeenSet = false;
349
350 FleetOverflowBehavior m_overflowBehavior;
351 bool m_overflowBehaviorHasBeenSet = false;
352
353 VpcConfig m_vpcConfig;
354 bool m_vpcConfigHasBeenSet = false;
355
356 ProxyConfiguration m_proxyConfiguration;
357 bool m_proxyConfigurationHasBeenSet = false;
358
359 Aws::String m_imageId;
360 bool m_imageIdHasBeenSet = false;
361
362 Aws::String m_fleetServiceRole;
363 bool m_fleetServiceRoleHasBeenSet = false;
364
365 Aws::Vector<Tag> m_tags;
366 bool m_tagsHasBeenSet = false;
367 };
368
369} // namespace Model
370} // namespace CodeBuild
371} // namespace Aws
void SetImageId(Aws::String &&value)
Definition Fleet.h:278
void SetFleetServiceRole(const char *value)
Definition Fleet.h:297
const ProxyConfiguration & GetProxyConfiguration() const
Definition Fleet.h:263
const Aws::Utils::DateTime & GetLastModified() const
Definition Fleet.h:109
bool ImageIdHasBeenSet() const
Definition Fleet.h:276
void SetBaseCapacity(int value)
Definition Fleet.h:136
const Aws::String & GetFleetServiceRole() const
Definition Fleet.h:293
bool TagsHasBeenSet() const
Definition Fleet.h:310
void SetArn(Aws::String &&value)
Definition Fleet.h:58
bool OverflowBehaviorHasBeenSet() const
Definition Fleet.h:242
const Aws::String & GetId() const
Definition Fleet.h:83
bool ProxyConfigurationHasBeenSet() const
Definition Fleet.h:264
void SetVpcConfig(VpcConfig &&value)
Definition Fleet.h:254
Fleet & WithStatus(const FleetStatus &value)
Definition Fleet.h:125
void SetLastModified(Aws::Utils::DateTime &&value)
Definition Fleet.h:112
AWS_CODEBUILD_API Fleet()
const EnvironmentType & GetEnvironmentType() const
Definition Fleet.h:170
Fleet & WithImageId(const char *value)
Definition Fleet.h:282
Fleet & AddTags(Tag &&value)
Definition Fleet.h:316
Fleet & WithOverflowBehavior(FleetOverflowBehavior &&value)
Definition Fleet.h:246
Fleet & WithFleetServiceRole(Aws::String &&value)
Definition Fleet.h:299
void SetOverflowBehavior(FleetOverflowBehavior &&value)
Definition Fleet.h:244
void SetTags(Aws::Vector< Tag > &&value)
Definition Fleet.h:312
bool StatusHasBeenSet() const
Definition Fleet.h:122
void SetFleetServiceRole(const Aws::String &value)
Definition Fleet.h:295
bool CreatedHasBeenSet() const
Definition Fleet.h:98
Fleet & WithScalingConfiguration(ScalingConfigurationOutput &&value)
Definition Fleet.h:225
Fleet & WithLastModified(Aws::Utils::DateTime &&value)
Definition Fleet.h:114
bool IdHasBeenSet() const
Definition Fleet.h:84
void SetName(const Aws::String &value)
Definition Fleet.h:71
Fleet & WithScalingConfiguration(const ScalingConfigurationOutput &value)
Definition Fleet.h:224
void SetScalingConfiguration(const ScalingConfigurationOutput &value)
Definition Fleet.h:222
void SetId(Aws::String &&value)
Definition Fleet.h:86
bool LastModifiedHasBeenSet() const
Definition Fleet.h:110
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
Fleet & WithArn(const char *value)
Definition Fleet.h:62
Fleet & WithEnvironmentType(EnvironmentType &&value)
Definition Fleet.h:175
AWS_CODEBUILD_API Fleet & operator=(Aws::Utils::Json::JsonView jsonValue)
const FleetOverflowBehavior & GetOverflowBehavior() const
Definition Fleet.h:241
Fleet & WithEnvironmentType(const EnvironmentType &value)
Definition Fleet.h:174
Fleet & WithFleetServiceRole(const Aws::String &value)
Definition Fleet.h:298
Fleet & WithName(const char *value)
Definition Fleet.h:76
Fleet & WithArn(Aws::String &&value)
Definition Fleet.h:61
const Aws::String & GetArn() const
Definition Fleet.h:55
Fleet & WithVpcConfig(const VpcConfig &value)
Definition Fleet.h:255
int GetBaseCapacity() const
Definition Fleet.h:134
void SetImageId(const Aws::String &value)
Definition Fleet.h:277
void SetEnvironmentType(EnvironmentType &&value)
Definition Fleet.h:173
const VpcConfig & GetVpcConfig() const
Definition Fleet.h:251
AWS_CODEBUILD_API Fleet(Aws::Utils::Json::JsonView jsonValue)
void SetId(const Aws::String &value)
Definition Fleet.h:85
void SetName(const char *value)
Definition Fleet.h:73
Fleet & WithProxyConfiguration(const ProxyConfiguration &value)
Definition Fleet.h:267
Fleet & WithName(const Aws::String &value)
Definition Fleet.h:74
Fleet & WithCreated(const Aws::Utils::DateTime &value)
Definition Fleet.h:101
void SetArn(const Aws::String &value)
Definition Fleet.h:57
bool BaseCapacityHasBeenSet() const
Definition Fleet.h:135
void SetComputeType(const ComputeType &value)
Definition Fleet.h:210
void SetVpcConfig(const VpcConfig &value)
Definition Fleet.h:253
void SetComputeType(ComputeType &&value)
Definition Fleet.h:211
void SetStatus(FleetStatus &&value)
Definition Fleet.h:124
bool ScalingConfigurationHasBeenSet() const
Definition Fleet.h:221
void SetEnvironmentType(const EnvironmentType &value)
Definition Fleet.h:172
const Aws::String & GetImageId() const
Definition Fleet.h:275
Fleet & WithImageId(const Aws::String &value)
Definition Fleet.h:280
Fleet & WithProxyConfiguration(ProxyConfiguration &&value)
Definition Fleet.h:268
Fleet & WithId(const Aws::String &value)
Definition Fleet.h:88
Fleet & WithId(const char *value)
Definition Fleet.h:90
Fleet & WithTags(Aws::Vector< Tag > &&value)
Definition Fleet.h:314
void SetProxyConfiguration(ProxyConfiguration &&value)
Definition Fleet.h:266
Fleet & AddTags(const Tag &value)
Definition Fleet.h:315
Fleet & WithId(Aws::String &&value)
Definition Fleet.h:89
Fleet & WithOverflowBehavior(const FleetOverflowBehavior &value)
Definition Fleet.h:245
Fleet & WithLastModified(const Aws::Utils::DateTime &value)
Definition Fleet.h:113
void SetProxyConfiguration(const ProxyConfiguration &value)
Definition Fleet.h:265
void SetOverflowBehavior(const FleetOverflowBehavior &value)
Definition Fleet.h:243
Fleet & WithName(Aws::String &&value)
Definition Fleet.h:75
const ComputeType & GetComputeType() const
Definition Fleet.h:208
Fleet & WithFleetServiceRole(const char *value)
Definition Fleet.h:300
void SetName(Aws::String &&value)
Definition Fleet.h:72
const FleetStatus & GetStatus() const
Definition Fleet.h:121
bool VpcConfigHasBeenSet() const
Definition Fleet.h:252
Fleet & WithBaseCapacity(int value)
Definition Fleet.h:137
Fleet & WithVpcConfig(VpcConfig &&value)
Definition Fleet.h:256
void SetCreated(Aws::Utils::DateTime &&value)
Definition Fleet.h:100
bool ArnHasBeenSet() const
Definition Fleet.h:56
bool EnvironmentTypeHasBeenSet() const
Definition Fleet.h:171
bool ComputeTypeHasBeenSet() const
Definition Fleet.h:209
const Aws::Vector< Tag > & GetTags() const
Definition Fleet.h:309
const ScalingConfigurationOutput & GetScalingConfiguration() const
Definition Fleet.h:220
void SetId(const char *value)
Definition Fleet.h:87
Fleet & WithCreated(Aws::Utils::DateTime &&value)
Definition Fleet.h:102
void SetImageId(const char *value)
Definition Fleet.h:279
Fleet & WithComputeType(ComputeType &&value)
Definition Fleet.h:213
bool FleetServiceRoleHasBeenSet() const
Definition Fleet.h:294
Fleet & WithComputeType(const ComputeType &value)
Definition Fleet.h:212
void SetFleetServiceRole(Aws::String &&value)
Definition Fleet.h:296
Fleet & WithTags(const Aws::Vector< Tag > &value)
Definition Fleet.h:313
Fleet & WithStatus(FleetStatus &&value)
Definition Fleet.h:126
void SetArn(const char *value)
Definition Fleet.h:59
void SetCreated(const Aws::Utils::DateTime &value)
Definition Fleet.h:99
void SetLastModified(const Aws::Utils::DateTime &value)
Definition Fleet.h:111
Fleet & WithArn(const Aws::String &value)
Definition Fleet.h:60
const Aws::String & GetName() const
Definition Fleet.h:69
void SetStatus(const FleetStatus &value)
Definition Fleet.h:123
void SetTags(const Aws::Vector< Tag > &value)
Definition Fleet.h:311
void SetScalingConfiguration(ScalingConfigurationOutput &&value)
Definition Fleet.h:223
const Aws::Utils::DateTime & GetCreated() const
Definition Fleet.h:97
Fleet & WithImageId(Aws::String &&value)
Definition Fleet.h:281
bool NameHasBeenSet() const
Definition Fleet.h:70
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue