AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Fleet.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/ComputeConfiguration.h>
9#include <aws/codebuild/model/ComputeType.h>
10#include <aws/codebuild/model/EnvironmentType.h>
11#include <aws/codebuild/model/FleetOverflowBehavior.h>
12#include <aws/codebuild/model/FleetStatus.h>
13#include <aws/codebuild/model/ProxyConfiguration.h>
14#include <aws/codebuild/model/ScalingConfigurationOutput.h>
15#include <aws/codebuild/model/Tag.h>
16#include <aws/codebuild/model/VpcConfig.h>
17#include <aws/core/utils/DateTime.h>
18#include <aws/core/utils/memory/stl/AWSString.h>
19#include <aws/core/utils/memory/stl/AWSVector.h>
20
21#include <utility>
22
23namespace Aws {
24namespace Utils {
25namespace Json {
26class JsonValue;
27class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace CodeBuild {
31namespace Model {
32
39class Fleet {
40 public:
41 AWS_CODEBUILD_API Fleet() = default;
42 AWS_CODEBUILD_API Fleet(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CODEBUILD_API Fleet& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
45
47
50 inline const Aws::String& GetArn() const { return m_arn; }
51 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
52 template <typename ArnT = Aws::String>
53 void SetArn(ArnT&& value) {
54 m_arnHasBeenSet = true;
55 m_arn = std::forward<ArnT>(value);
56 }
57 template <typename ArnT = Aws::String>
58 Fleet& WithArn(ArnT&& value) {
59 SetArn(std::forward<ArnT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetName() const { return m_name; }
69 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
70 template <typename NameT = Aws::String>
71 void SetName(NameT&& value) {
72 m_nameHasBeenSet = true;
73 m_name = std::forward<NameT>(value);
74 }
75 template <typename NameT = Aws::String>
76 Fleet& WithName(NameT&& value) {
77 SetName(std::forward<NameT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetId() const { return m_id; }
87 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
88 template <typename IdT = Aws::String>
89 void SetId(IdT&& value) {
90 m_idHasBeenSet = true;
91 m_id = std::forward<IdT>(value);
92 }
93 template <typename IdT = Aws::String>
94 Fleet& WithId(IdT&& value) {
95 SetId(std::forward<IdT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
105 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
106 template <typename CreatedT = Aws::Utils::DateTime>
107 void SetCreated(CreatedT&& value) {
108 m_createdHasBeenSet = true;
109 m_created = std::forward<CreatedT>(value);
110 }
111 template <typename CreatedT = Aws::Utils::DateTime>
112 Fleet& WithCreated(CreatedT&& value) {
113 SetCreated(std::forward<CreatedT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
123 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
124 template <typename LastModifiedT = Aws::Utils::DateTime>
125 void SetLastModified(LastModifiedT&& value) {
126 m_lastModifiedHasBeenSet = true;
127 m_lastModified = std::forward<LastModifiedT>(value);
128 }
129 template <typename LastModifiedT = Aws::Utils::DateTime>
130 Fleet& WithLastModified(LastModifiedT&& value) {
131 SetLastModified(std::forward<LastModifiedT>(value));
132 return *this;
133 }
135
137
140 inline const FleetStatus& GetStatus() const { return m_status; }
141 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
142 template <typename StatusT = FleetStatus>
143 void SetStatus(StatusT&& value) {
144 m_statusHasBeenSet = true;
145 m_status = std::forward<StatusT>(value);
146 }
147 template <typename StatusT = FleetStatus>
148 Fleet& WithStatus(StatusT&& value) {
149 SetStatus(std::forward<StatusT>(value));
150 return *this;
151 }
153
155
159 inline int GetBaseCapacity() const { return m_baseCapacity; }
160 inline bool BaseCapacityHasBeenSet() const { return m_baseCapacityHasBeenSet; }
161 inline void SetBaseCapacity(int value) {
162 m_baseCapacityHasBeenSet = true;
163 m_baseCapacity = value;
164 }
165 inline Fleet& WithBaseCapacity(int value) {
166 SetBaseCapacity(value);
167 return *this;
168 }
170
172
213 inline EnvironmentType GetEnvironmentType() const { return m_environmentType; }
214 inline bool EnvironmentTypeHasBeenSet() const { return m_environmentTypeHasBeenSet; }
216 m_environmentTypeHasBeenSet = true;
217 m_environmentType = value;
218 }
220 SetEnvironmentType(value);
221 return *this;
222 }
224
226
280 inline ComputeType GetComputeType() const { return m_computeType; }
281 inline bool ComputeTypeHasBeenSet() const { return m_computeTypeHasBeenSet; }
282 inline void SetComputeType(ComputeType value) {
283 m_computeTypeHasBeenSet = true;
284 m_computeType = value;
285 }
287 SetComputeType(value);
288 return *this;
289 }
291
293
298 inline const ComputeConfiguration& GetComputeConfiguration() const { return m_computeConfiguration; }
299 inline bool ComputeConfigurationHasBeenSet() const { return m_computeConfigurationHasBeenSet; }
300 template <typename ComputeConfigurationT = ComputeConfiguration>
301 void SetComputeConfiguration(ComputeConfigurationT&& value) {
302 m_computeConfigurationHasBeenSet = true;
303 m_computeConfiguration = std::forward<ComputeConfigurationT>(value);
304 }
305 template <typename ComputeConfigurationT = ComputeConfiguration>
306 Fleet& WithComputeConfiguration(ComputeConfigurationT&& value) {
307 SetComputeConfiguration(std::forward<ComputeConfigurationT>(value));
308 return *this;
309 }
311
313
316 inline const ScalingConfigurationOutput& GetScalingConfiguration() const { return m_scalingConfiguration; }
317 inline bool ScalingConfigurationHasBeenSet() const { return m_scalingConfigurationHasBeenSet; }
318 template <typename ScalingConfigurationT = ScalingConfigurationOutput>
319 void SetScalingConfiguration(ScalingConfigurationT&& value) {
320 m_scalingConfigurationHasBeenSet = true;
321 m_scalingConfiguration = std::forward<ScalingConfigurationT>(value);
322 }
323 template <typename ScalingConfigurationT = ScalingConfigurationOutput>
324 Fleet& WithScalingConfiguration(ScalingConfigurationT&& value) {
325 SetScalingConfiguration(std::forward<ScalingConfigurationT>(value));
326 return *this;
327 }
329
331
343 inline FleetOverflowBehavior GetOverflowBehavior() const { return m_overflowBehavior; }
344 inline bool OverflowBehaviorHasBeenSet() const { return m_overflowBehaviorHasBeenSet; }
346 m_overflowBehaviorHasBeenSet = true;
347 m_overflowBehavior = value;
348 }
350 SetOverflowBehavior(value);
351 return *this;
352 }
354
356
357 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
358 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
359 template <typename VpcConfigT = VpcConfig>
360 void SetVpcConfig(VpcConfigT&& value) {
361 m_vpcConfigHasBeenSet = true;
362 m_vpcConfig = std::forward<VpcConfigT>(value);
363 }
364 template <typename VpcConfigT = VpcConfig>
365 Fleet& WithVpcConfig(VpcConfigT&& value) {
366 SetVpcConfig(std::forward<VpcConfigT>(value));
367 return *this;
368 }
370
372
375 inline const ProxyConfiguration& GetProxyConfiguration() const { return m_proxyConfiguration; }
376 inline bool ProxyConfigurationHasBeenSet() const { return m_proxyConfigurationHasBeenSet; }
377 template <typename ProxyConfigurationT = ProxyConfiguration>
378 void SetProxyConfiguration(ProxyConfigurationT&& value) {
379 m_proxyConfigurationHasBeenSet = true;
380 m_proxyConfiguration = std::forward<ProxyConfigurationT>(value);
381 }
382 template <typename ProxyConfigurationT = ProxyConfiguration>
383 Fleet& WithProxyConfiguration(ProxyConfigurationT&& value) {
384 SetProxyConfiguration(std::forward<ProxyConfigurationT>(value));
385 return *this;
386 }
388
390
393 inline const Aws::String& GetImageId() const { return m_imageId; }
394 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
395 template <typename ImageIdT = Aws::String>
396 void SetImageId(ImageIdT&& value) {
397 m_imageIdHasBeenSet = true;
398 m_imageId = std::forward<ImageIdT>(value);
399 }
400 template <typename ImageIdT = Aws::String>
401 Fleet& WithImageId(ImageIdT&& value) {
402 SetImageId(std::forward<ImageIdT>(value));
403 return *this;
404 }
406
408
415 inline const Aws::String& GetFleetServiceRole() const { return m_fleetServiceRole; }
416 inline bool FleetServiceRoleHasBeenSet() const { return m_fleetServiceRoleHasBeenSet; }
417 template <typename FleetServiceRoleT = Aws::String>
418 void SetFleetServiceRole(FleetServiceRoleT&& value) {
419 m_fleetServiceRoleHasBeenSet = true;
420 m_fleetServiceRole = std::forward<FleetServiceRoleT>(value);
421 }
422 template <typename FleetServiceRoleT = Aws::String>
423 Fleet& WithFleetServiceRole(FleetServiceRoleT&& value) {
424 SetFleetServiceRole(std::forward<FleetServiceRoleT>(value));
425 return *this;
426 }
428
430
435 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
436 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
437 template <typename TagsT = Aws::Vector<Tag>>
438 void SetTags(TagsT&& value) {
439 m_tagsHasBeenSet = true;
440 m_tags = std::forward<TagsT>(value);
441 }
442 template <typename TagsT = Aws::Vector<Tag>>
443 Fleet& WithTags(TagsT&& value) {
444 SetTags(std::forward<TagsT>(value));
445 return *this;
446 }
447 template <typename TagsT = Tag>
448 Fleet& AddTags(TagsT&& value) {
449 m_tagsHasBeenSet = true;
450 m_tags.emplace_back(std::forward<TagsT>(value));
451 return *this;
452 }
454 private:
455 Aws::String m_arn;
456
457 Aws::String m_name;
458
459 Aws::String m_id;
460
461 Aws::Utils::DateTime m_created{};
462
463 Aws::Utils::DateTime m_lastModified{};
464
465 FleetStatus m_status;
466
467 int m_baseCapacity{0};
468
469 EnvironmentType m_environmentType{EnvironmentType::NOT_SET};
470
471 ComputeType m_computeType{ComputeType::NOT_SET};
472
473 ComputeConfiguration m_computeConfiguration;
474
475 ScalingConfigurationOutput m_scalingConfiguration;
476
478
479 VpcConfig m_vpcConfig;
480
481 ProxyConfiguration m_proxyConfiguration;
482
483 Aws::String m_imageId;
484
485 Aws::String m_fleetServiceRole;
486
487 Aws::Vector<Tag> m_tags;
488 bool m_arnHasBeenSet = false;
489 bool m_nameHasBeenSet = false;
490 bool m_idHasBeenSet = false;
491 bool m_createdHasBeenSet = false;
492 bool m_lastModifiedHasBeenSet = false;
493 bool m_statusHasBeenSet = false;
494 bool m_baseCapacityHasBeenSet = false;
495 bool m_environmentTypeHasBeenSet = false;
496 bool m_computeTypeHasBeenSet = false;
497 bool m_computeConfigurationHasBeenSet = false;
498 bool m_scalingConfigurationHasBeenSet = false;
499 bool m_overflowBehaviorHasBeenSet = false;
500 bool m_vpcConfigHasBeenSet = false;
501 bool m_proxyConfigurationHasBeenSet = false;
502 bool m_imageIdHasBeenSet = false;
503 bool m_fleetServiceRoleHasBeenSet = false;
504 bool m_tagsHasBeenSet = false;
505};
506
507} // namespace Model
508} // namespace CodeBuild
509} // namespace Aws
const ProxyConfiguration & GetProxyConfiguration() const
Definition Fleet.h:375
const Aws::Utils::DateTime & GetLastModified() const
Definition Fleet.h:122
bool ImageIdHasBeenSet() const
Definition Fleet.h:394
void SetBaseCapacity(int value)
Definition Fleet.h:161
Fleet & WithComputeType(ComputeType value)
Definition Fleet.h:286
const Aws::String & GetFleetServiceRole() const
Definition Fleet.h:415
bool TagsHasBeenSet() const
Definition Fleet.h:436
bool OverflowBehaviorHasBeenSet() const
Definition Fleet.h:344
Fleet & WithLastModified(LastModifiedT &&value)
Definition Fleet.h:130
const Aws::String & GetId() const
Definition Fleet.h:86
bool ProxyConfigurationHasBeenSet() const
Definition Fleet.h:376
Fleet & WithCreated(CreatedT &&value)
Definition Fleet.h:112
AWS_CODEBUILD_API Fleet()=default
EnvironmentType GetEnvironmentType() const
Definition Fleet.h:213
bool StatusHasBeenSet() const
Definition Fleet.h:141
bool CreatedHasBeenSet() const
Definition Fleet.h:105
void SetScalingConfiguration(ScalingConfigurationT &&value)
Definition Fleet.h:319
bool IdHasBeenSet() const
Definition Fleet.h:87
Fleet & WithVpcConfig(VpcConfigT &&value)
Definition Fleet.h:365
bool LastModifiedHasBeenSet() const
Definition Fleet.h:123
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
void SetId(IdT &&value)
Definition Fleet.h:89
void SetImageId(ImageIdT &&value)
Definition Fleet.h:396
Fleet & WithName(NameT &&value)
Definition Fleet.h:76
ComputeType GetComputeType() const
Definition Fleet.h:280
AWS_CODEBUILD_API Fleet & operator=(Aws::Utils::Json::JsonView jsonValue)
FleetOverflowBehavior GetOverflowBehavior() const
Definition Fleet.h:343
Fleet & WithProxyConfiguration(ProxyConfigurationT &&value)
Definition Fleet.h:383
void SetOverflowBehavior(FleetOverflowBehavior value)
Definition Fleet.h:345
Fleet & WithComputeConfiguration(ComputeConfigurationT &&value)
Definition Fleet.h:306
void SetProxyConfiguration(ProxyConfigurationT &&value)
Definition Fleet.h:378
void SetCreated(CreatedT &&value)
Definition Fleet.h:107
const Aws::String & GetArn() const
Definition Fleet.h:50
int GetBaseCapacity() const
Definition Fleet.h:159
Fleet & WithScalingConfiguration(ScalingConfigurationT &&value)
Definition Fleet.h:324
Fleet & WithStatus(StatusT &&value)
Definition Fleet.h:148
void SetVpcConfig(VpcConfigT &&value)
Definition Fleet.h:360
const VpcConfig & GetVpcConfig() const
Definition Fleet.h:357
void SetTags(TagsT &&value)
Definition Fleet.h:438
AWS_CODEBUILD_API Fleet(Aws::Utils::Json::JsonView jsonValue)
void SetEnvironmentType(EnvironmentType value)
Definition Fleet.h:215
void SetArn(ArnT &&value)
Definition Fleet.h:53
bool BaseCapacityHasBeenSet() const
Definition Fleet.h:160
Fleet & WithImageId(ImageIdT &&value)
Definition Fleet.h:401
void SetStatus(StatusT &&value)
Definition Fleet.h:143
bool ScalingConfigurationHasBeenSet() const
Definition Fleet.h:317
const Aws::String & GetImageId() const
Definition Fleet.h:393
void SetComputeType(ComputeType value)
Definition Fleet.h:282
Fleet & WithEnvironmentType(EnvironmentType value)
Definition Fleet.h:219
void SetLastModified(LastModifiedT &&value)
Definition Fleet.h:125
Fleet & WithArn(ArnT &&value)
Definition Fleet.h:58
const FleetStatus & GetStatus() const
Definition Fleet.h:140
bool VpcConfigHasBeenSet() const
Definition Fleet.h:358
Fleet & AddTags(TagsT &&value)
Definition Fleet.h:448
Fleet & WithBaseCapacity(int value)
Definition Fleet.h:165
Fleet & WithOverflowBehavior(FleetOverflowBehavior value)
Definition Fleet.h:349
bool ArnHasBeenSet() const
Definition Fleet.h:51
Fleet & WithTags(TagsT &&value)
Definition Fleet.h:443
bool EnvironmentTypeHasBeenSet() const
Definition Fleet.h:214
bool ComputeTypeHasBeenSet() const
Definition Fleet.h:281
const Aws::Vector< Tag > & GetTags() const
Definition Fleet.h:435
const ScalingConfigurationOutput & GetScalingConfiguration() const
Definition Fleet.h:316
Fleet & WithId(IdT &&value)
Definition Fleet.h:94
bool ComputeConfigurationHasBeenSet() const
Definition Fleet.h:299
void SetComputeConfiguration(ComputeConfigurationT &&value)
Definition Fleet.h:301
bool FleetServiceRoleHasBeenSet() const
Definition Fleet.h:416
void SetFleetServiceRole(FleetServiceRoleT &&value)
Definition Fleet.h:418
Fleet & WithFleetServiceRole(FleetServiceRoleT &&value)
Definition Fleet.h:423
void SetName(NameT &&value)
Definition Fleet.h:71
const Aws::String & GetName() const
Definition Fleet.h:68
const ComputeConfiguration & GetComputeConfiguration() const
Definition Fleet.h:298
const Aws::Utils::DateTime & GetCreated() const
Definition Fleet.h:104
bool NameHasBeenSet() const
Definition Fleet.h:69
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue