AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/ComputeConfiguration.h>
14#include <aws/codebuild/model/ScalingConfigurationOutput.h>
15#include <aws/codebuild/model/FleetOverflowBehavior.h>
16#include <aws/codebuild/model/VpcConfig.h>
17#include <aws/codebuild/model/ProxyConfiguration.h>
18#include <aws/core/utils/memory/stl/AWSVector.h>
19#include <aws/codebuild/model/Tag.h>
20#include <utility>
21
22namespace Aws
23{
24namespace Utils
25{
26namespace Json
27{
28 class JsonValue;
29 class JsonView;
30} // namespace Json
31} // namespace Utils
32namespace CodeBuild
33{
34namespace Model
35{
36
43 class Fleet
44 {
45 public:
46 AWS_CODEBUILD_API Fleet() = default;
47 AWS_CODEBUILD_API Fleet(Aws::Utils::Json::JsonView jsonValue);
48 AWS_CODEBUILD_API Fleet& operator=(Aws::Utils::Json::JsonView jsonValue);
49 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
56 inline const Aws::String& GetArn() const { return m_arn; }
57 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
58 template<typename ArnT = Aws::String>
59 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
60 template<typename ArnT = Aws::String>
61 Fleet& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
72 template<typename NameT = Aws::String>
73 Fleet& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
75
77
80 inline const Aws::String& GetId() const { return m_id; }
81 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
82 template<typename IdT = Aws::String>
83 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
84 template<typename IdT = Aws::String>
85 Fleet& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
87
89
92 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
93 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
94 template<typename CreatedT = Aws::Utils::DateTime>
95 void SetCreated(CreatedT&& value) { m_createdHasBeenSet = true; m_created = std::forward<CreatedT>(value); }
96 template<typename CreatedT = Aws::Utils::DateTime>
97 Fleet& WithCreated(CreatedT&& value) { SetCreated(std::forward<CreatedT>(value)); return *this;}
99
101
104 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
105 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
106 template<typename LastModifiedT = Aws::Utils::DateTime>
107 void SetLastModified(LastModifiedT&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::forward<LastModifiedT>(value); }
108 template<typename LastModifiedT = Aws::Utils::DateTime>
109 Fleet& WithLastModified(LastModifiedT&& value) { SetLastModified(std::forward<LastModifiedT>(value)); return *this;}
111
113
116 inline const FleetStatus& GetStatus() const { return m_status; }
117 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
118 template<typename StatusT = FleetStatus>
119 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
120 template<typename StatusT = FleetStatus>
121 Fleet& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
123
125
129 inline int GetBaseCapacity() const { return m_baseCapacity; }
130 inline bool BaseCapacityHasBeenSet() const { return m_baseCapacityHasBeenSet; }
131 inline void SetBaseCapacity(int value) { m_baseCapacityHasBeenSet = true; m_baseCapacity = value; }
132 inline Fleet& WithBaseCapacity(int value) { SetBaseCapacity(value); return *this;}
134
136
177 inline EnvironmentType GetEnvironmentType() const { return m_environmentType; }
178 inline bool EnvironmentTypeHasBeenSet() const { return m_environmentTypeHasBeenSet; }
179 inline void SetEnvironmentType(EnvironmentType value) { m_environmentTypeHasBeenSet = true; m_environmentType = value; }
180 inline Fleet& WithEnvironmentType(EnvironmentType value) { SetEnvironmentType(value); return *this;}
182
184
238 inline ComputeType GetComputeType() const { return m_computeType; }
239 inline bool ComputeTypeHasBeenSet() const { return m_computeTypeHasBeenSet; }
240 inline void SetComputeType(ComputeType value) { m_computeTypeHasBeenSet = true; m_computeType = value; }
241 inline Fleet& WithComputeType(ComputeType value) { SetComputeType(value); return *this;}
243
245
250 inline const ComputeConfiguration& GetComputeConfiguration() const { return m_computeConfiguration; }
251 inline bool ComputeConfigurationHasBeenSet() const { return m_computeConfigurationHasBeenSet; }
252 template<typename ComputeConfigurationT = ComputeConfiguration>
253 void SetComputeConfiguration(ComputeConfigurationT&& value) { m_computeConfigurationHasBeenSet = true; m_computeConfiguration = std::forward<ComputeConfigurationT>(value); }
254 template<typename ComputeConfigurationT = ComputeConfiguration>
255 Fleet& WithComputeConfiguration(ComputeConfigurationT&& value) { SetComputeConfiguration(std::forward<ComputeConfigurationT>(value)); return *this;}
257
259
262 inline const ScalingConfigurationOutput& GetScalingConfiguration() const { return m_scalingConfiguration; }
263 inline bool ScalingConfigurationHasBeenSet() const { return m_scalingConfigurationHasBeenSet; }
264 template<typename ScalingConfigurationT = ScalingConfigurationOutput>
265 void SetScalingConfiguration(ScalingConfigurationT&& value) { m_scalingConfigurationHasBeenSet = true; m_scalingConfiguration = std::forward<ScalingConfigurationT>(value); }
266 template<typename ScalingConfigurationT = ScalingConfigurationOutput>
267 Fleet& WithScalingConfiguration(ScalingConfigurationT&& value) { SetScalingConfiguration(std::forward<ScalingConfigurationT>(value)); return *this;}
269
271
283 inline FleetOverflowBehavior GetOverflowBehavior() const { return m_overflowBehavior; }
284 inline bool OverflowBehaviorHasBeenSet() const { return m_overflowBehaviorHasBeenSet; }
285 inline void SetOverflowBehavior(FleetOverflowBehavior value) { m_overflowBehaviorHasBeenSet = true; m_overflowBehavior = value; }
288
290
291 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
292 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
293 template<typename VpcConfigT = VpcConfig>
294 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::forward<VpcConfigT>(value); }
295 template<typename VpcConfigT = VpcConfig>
296 Fleet& WithVpcConfig(VpcConfigT&& value) { SetVpcConfig(std::forward<VpcConfigT>(value)); return *this;}
298
300
303 inline const ProxyConfiguration& GetProxyConfiguration() const { return m_proxyConfiguration; }
304 inline bool ProxyConfigurationHasBeenSet() const { return m_proxyConfigurationHasBeenSet; }
305 template<typename ProxyConfigurationT = ProxyConfiguration>
306 void SetProxyConfiguration(ProxyConfigurationT&& value) { m_proxyConfigurationHasBeenSet = true; m_proxyConfiguration = std::forward<ProxyConfigurationT>(value); }
307 template<typename ProxyConfigurationT = ProxyConfiguration>
308 Fleet& WithProxyConfiguration(ProxyConfigurationT&& value) { SetProxyConfiguration(std::forward<ProxyConfigurationT>(value)); return *this;}
310
312
315 inline const Aws::String& GetImageId() const { return m_imageId; }
316 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
317 template<typename ImageIdT = Aws::String>
318 void SetImageId(ImageIdT&& value) { m_imageIdHasBeenSet = true; m_imageId = std::forward<ImageIdT>(value); }
319 template<typename ImageIdT = Aws::String>
320 Fleet& WithImageId(ImageIdT&& value) { SetImageId(std::forward<ImageIdT>(value)); return *this;}
322
324
331 inline const Aws::String& GetFleetServiceRole() const { return m_fleetServiceRole; }
332 inline bool FleetServiceRoleHasBeenSet() const { return m_fleetServiceRoleHasBeenSet; }
333 template<typename FleetServiceRoleT = Aws::String>
334 void SetFleetServiceRole(FleetServiceRoleT&& value) { m_fleetServiceRoleHasBeenSet = true; m_fleetServiceRole = std::forward<FleetServiceRoleT>(value); }
335 template<typename FleetServiceRoleT = Aws::String>
336 Fleet& WithFleetServiceRole(FleetServiceRoleT&& value) { SetFleetServiceRole(std::forward<FleetServiceRoleT>(value)); return *this;}
338
340
345 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
346 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
347 template<typename TagsT = Aws::Vector<Tag>>
348 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
349 template<typename TagsT = Aws::Vector<Tag>>
350 Fleet& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
351 template<typename TagsT = Tag>
352 Fleet& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
354 private:
355
356 Aws::String m_arn;
357 bool m_arnHasBeenSet = false;
358
359 Aws::String m_name;
360 bool m_nameHasBeenSet = false;
361
362 Aws::String m_id;
363 bool m_idHasBeenSet = false;
364
365 Aws::Utils::DateTime m_created{};
366 bool m_createdHasBeenSet = false;
367
368 Aws::Utils::DateTime m_lastModified{};
369 bool m_lastModifiedHasBeenSet = false;
370
371 FleetStatus m_status;
372 bool m_statusHasBeenSet = false;
373
374 int m_baseCapacity{0};
375 bool m_baseCapacityHasBeenSet = false;
376
377 EnvironmentType m_environmentType{EnvironmentType::NOT_SET};
378 bool m_environmentTypeHasBeenSet = false;
379
380 ComputeType m_computeType{ComputeType::NOT_SET};
381 bool m_computeTypeHasBeenSet = false;
382
383 ComputeConfiguration m_computeConfiguration;
384 bool m_computeConfigurationHasBeenSet = false;
385
386 ScalingConfigurationOutput m_scalingConfiguration;
387 bool m_scalingConfigurationHasBeenSet = false;
388
390 bool m_overflowBehaviorHasBeenSet = false;
391
392 VpcConfig m_vpcConfig;
393 bool m_vpcConfigHasBeenSet = false;
394
395 ProxyConfiguration m_proxyConfiguration;
396 bool m_proxyConfigurationHasBeenSet = false;
397
398 Aws::String m_imageId;
399 bool m_imageIdHasBeenSet = false;
400
401 Aws::String m_fleetServiceRole;
402 bool m_fleetServiceRoleHasBeenSet = false;
403
404 Aws::Vector<Tag> m_tags;
405 bool m_tagsHasBeenSet = false;
406 };
407
408} // namespace Model
409} // namespace CodeBuild
410} // namespace Aws
const ProxyConfiguration & GetProxyConfiguration() const
Definition Fleet.h:303
const Aws::Utils::DateTime & GetLastModified() const
Definition Fleet.h:104
bool ImageIdHasBeenSet() const
Definition Fleet.h:316
void SetBaseCapacity(int value)
Definition Fleet.h:131
Fleet & WithComputeType(ComputeType value)
Definition Fleet.h:241
const Aws::String & GetFleetServiceRole() const
Definition Fleet.h:331
bool TagsHasBeenSet() const
Definition Fleet.h:346
bool OverflowBehaviorHasBeenSet() const
Definition Fleet.h:284
Fleet & WithLastModified(LastModifiedT &&value)
Definition Fleet.h:109
const Aws::String & GetId() const
Definition Fleet.h:80
bool ProxyConfigurationHasBeenSet() const
Definition Fleet.h:304
Fleet & WithCreated(CreatedT &&value)
Definition Fleet.h:97
AWS_CODEBUILD_API Fleet()=default
EnvironmentType GetEnvironmentType() const
Definition Fleet.h:177
bool StatusHasBeenSet() const
Definition Fleet.h:117
bool CreatedHasBeenSet() const
Definition Fleet.h:93
void SetScalingConfiguration(ScalingConfigurationT &&value)
Definition Fleet.h:265
bool IdHasBeenSet() const
Definition Fleet.h:81
Fleet & WithVpcConfig(VpcConfigT &&value)
Definition Fleet.h:296
bool LastModifiedHasBeenSet() const
Definition Fleet.h:105
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
void SetId(IdT &&value)
Definition Fleet.h:83
void SetImageId(ImageIdT &&value)
Definition Fleet.h:318
Fleet & WithName(NameT &&value)
Definition Fleet.h:73
ComputeType GetComputeType() const
Definition Fleet.h:238
AWS_CODEBUILD_API Fleet & operator=(Aws::Utils::Json::JsonView jsonValue)
FleetOverflowBehavior GetOverflowBehavior() const
Definition Fleet.h:283
Fleet & WithProxyConfiguration(ProxyConfigurationT &&value)
Definition Fleet.h:308
void SetOverflowBehavior(FleetOverflowBehavior value)
Definition Fleet.h:285
Fleet & WithComputeConfiguration(ComputeConfigurationT &&value)
Definition Fleet.h:255
void SetProxyConfiguration(ProxyConfigurationT &&value)
Definition Fleet.h:306
void SetCreated(CreatedT &&value)
Definition Fleet.h:95
const Aws::String & GetArn() const
Definition Fleet.h:56
int GetBaseCapacity() const
Definition Fleet.h:129
Fleet & WithScalingConfiguration(ScalingConfigurationT &&value)
Definition Fleet.h:267
Fleet & WithStatus(StatusT &&value)
Definition Fleet.h:121
void SetVpcConfig(VpcConfigT &&value)
Definition Fleet.h:294
const VpcConfig & GetVpcConfig() const
Definition Fleet.h:291
void SetTags(TagsT &&value)
Definition Fleet.h:348
AWS_CODEBUILD_API Fleet(Aws::Utils::Json::JsonView jsonValue)
void SetEnvironmentType(EnvironmentType value)
Definition Fleet.h:179
void SetArn(ArnT &&value)
Definition Fleet.h:59
bool BaseCapacityHasBeenSet() const
Definition Fleet.h:130
Fleet & WithImageId(ImageIdT &&value)
Definition Fleet.h:320
void SetStatus(StatusT &&value)
Definition Fleet.h:119
bool ScalingConfigurationHasBeenSet() const
Definition Fleet.h:263
const Aws::String & GetImageId() const
Definition Fleet.h:315
void SetComputeType(ComputeType value)
Definition Fleet.h:240
Fleet & WithEnvironmentType(EnvironmentType value)
Definition Fleet.h:180
void SetLastModified(LastModifiedT &&value)
Definition Fleet.h:107
Fleet & WithArn(ArnT &&value)
Definition Fleet.h:61
const FleetStatus & GetStatus() const
Definition Fleet.h:116
bool VpcConfigHasBeenSet() const
Definition Fleet.h:292
Fleet & AddTags(TagsT &&value)
Definition Fleet.h:352
Fleet & WithBaseCapacity(int value)
Definition Fleet.h:132
Fleet & WithOverflowBehavior(FleetOverflowBehavior value)
Definition Fleet.h:286
bool ArnHasBeenSet() const
Definition Fleet.h:57
Fleet & WithTags(TagsT &&value)
Definition Fleet.h:350
bool EnvironmentTypeHasBeenSet() const
Definition Fleet.h:178
bool ComputeTypeHasBeenSet() const
Definition Fleet.h:239
const Aws::Vector< Tag > & GetTags() const
Definition Fleet.h:345
const ScalingConfigurationOutput & GetScalingConfiguration() const
Definition Fleet.h:262
Fleet & WithId(IdT &&value)
Definition Fleet.h:85
bool ComputeConfigurationHasBeenSet() const
Definition Fleet.h:251
void SetComputeConfiguration(ComputeConfigurationT &&value)
Definition Fleet.h:253
bool FleetServiceRoleHasBeenSet() const
Definition Fleet.h:332
void SetFleetServiceRole(FleetServiceRoleT &&value)
Definition Fleet.h:334
Fleet & WithFleetServiceRole(FleetServiceRoleT &&value)
Definition Fleet.h:336
void SetName(NameT &&value)
Definition Fleet.h:71
const Aws::String & GetName() const
Definition Fleet.h:68
const ComputeConfiguration & GetComputeConfiguration() const
Definition Fleet.h:250
const Aws::Utils::DateTime & GetCreated() const
Definition Fleet.h:92
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