AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
CreateFleetRequest.h
1
6#pragma once
7#include <aws/codebuild/CodeBuildRequest.h>
8#include <aws/codebuild/CodeBuild_EXPORTS.h>
9#include <aws/codebuild/model/ComputeConfiguration.h>
10#include <aws/codebuild/model/ComputeType.h>
11#include <aws/codebuild/model/EnvironmentType.h>
12#include <aws/codebuild/model/FleetOverflowBehavior.h>
13#include <aws/codebuild/model/ProxyConfiguration.h>
14#include <aws/codebuild/model/ScalingConfigurationInput.h>
15#include <aws/codebuild/model/Tag.h>
16#include <aws/codebuild/model/VpcConfig.h>
17#include <aws/core/utils/memory/stl/AWSString.h>
18#include <aws/core/utils/memory/stl/AWSVector.h>
19
20#include <utility>
21
22namespace Aws {
23namespace CodeBuild {
24namespace Model {
25
29 public:
30 AWS_CODEBUILD_API CreateFleetRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateFleet"; }
37
38 AWS_CODEBUILD_API Aws::String SerializePayload() const override;
39
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template <typename NameT = Aws::String>
49 void SetName(NameT&& value) {
50 m_nameHasBeenSet = true;
51 m_name = std::forward<NameT>(value);
52 }
53 template <typename NameT = Aws::String>
54 CreateFleetRequest& WithName(NameT&& value) {
55 SetName(std::forward<NameT>(value));
56 return *this;
57 }
59
61
65 inline int GetBaseCapacity() const { return m_baseCapacity; }
66 inline bool BaseCapacityHasBeenSet() const { return m_baseCapacityHasBeenSet; }
67 inline void SetBaseCapacity(int value) {
68 m_baseCapacityHasBeenSet = true;
69 m_baseCapacity = value;
70 }
72 SetBaseCapacity(value);
73 return *this;
74 }
76
78
119 inline EnvironmentType GetEnvironmentType() const { return m_environmentType; }
120 inline bool EnvironmentTypeHasBeenSet() const { return m_environmentTypeHasBeenSet; }
122 m_environmentTypeHasBeenSet = true;
123 m_environmentType = value;
124 }
126 SetEnvironmentType(value);
127 return *this;
128 }
130
132
186 inline ComputeType GetComputeType() const { return m_computeType; }
187 inline bool ComputeTypeHasBeenSet() const { return m_computeTypeHasBeenSet; }
188 inline void SetComputeType(ComputeType value) {
189 m_computeTypeHasBeenSet = true;
190 m_computeType = value;
191 }
193 SetComputeType(value);
194 return *this;
195 }
197
199
204 inline const ComputeConfiguration& GetComputeConfiguration() const { return m_computeConfiguration; }
205 inline bool ComputeConfigurationHasBeenSet() const { return m_computeConfigurationHasBeenSet; }
206 template <typename ComputeConfigurationT = ComputeConfiguration>
207 void SetComputeConfiguration(ComputeConfigurationT&& value) {
208 m_computeConfigurationHasBeenSet = true;
209 m_computeConfiguration = std::forward<ComputeConfigurationT>(value);
210 }
211 template <typename ComputeConfigurationT = ComputeConfiguration>
212 CreateFleetRequest& WithComputeConfiguration(ComputeConfigurationT&& value) {
213 SetComputeConfiguration(std::forward<ComputeConfigurationT>(value));
214 return *this;
215 }
217
219
222 inline const ScalingConfigurationInput& GetScalingConfiguration() const { return m_scalingConfiguration; }
223 inline bool ScalingConfigurationHasBeenSet() const { return m_scalingConfigurationHasBeenSet; }
224 template <typename ScalingConfigurationT = ScalingConfigurationInput>
225 void SetScalingConfiguration(ScalingConfigurationT&& value) {
226 m_scalingConfigurationHasBeenSet = true;
227 m_scalingConfiguration = std::forward<ScalingConfigurationT>(value);
228 }
229 template <typename ScalingConfigurationT = ScalingConfigurationInput>
230 CreateFleetRequest& WithScalingConfiguration(ScalingConfigurationT&& value) {
231 SetScalingConfiguration(std::forward<ScalingConfigurationT>(value));
232 return *this;
233 }
235
237
249 inline FleetOverflowBehavior GetOverflowBehavior() const { return m_overflowBehavior; }
250 inline bool OverflowBehaviorHasBeenSet() const { return m_overflowBehaviorHasBeenSet; }
252 m_overflowBehaviorHasBeenSet = true;
253 m_overflowBehavior = value;
254 }
256 SetOverflowBehavior(value);
257 return *this;
258 }
260
262
263 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
264 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
265 template <typename VpcConfigT = VpcConfig>
266 void SetVpcConfig(VpcConfigT&& value) {
267 m_vpcConfigHasBeenSet = true;
268 m_vpcConfig = std::forward<VpcConfigT>(value);
269 }
270 template <typename VpcConfigT = VpcConfig>
271 CreateFleetRequest& WithVpcConfig(VpcConfigT&& value) {
272 SetVpcConfig(std::forward<VpcConfigT>(value));
273 return *this;
274 }
276
278
281 inline const ProxyConfiguration& GetProxyConfiguration() const { return m_proxyConfiguration; }
282 inline bool ProxyConfigurationHasBeenSet() const { return m_proxyConfigurationHasBeenSet; }
283 template <typename ProxyConfigurationT = ProxyConfiguration>
284 void SetProxyConfiguration(ProxyConfigurationT&& value) {
285 m_proxyConfigurationHasBeenSet = true;
286 m_proxyConfiguration = std::forward<ProxyConfigurationT>(value);
287 }
288 template <typename ProxyConfigurationT = ProxyConfiguration>
289 CreateFleetRequest& WithProxyConfiguration(ProxyConfigurationT&& value) {
290 SetProxyConfiguration(std::forward<ProxyConfigurationT>(value));
291 return *this;
292 }
294
296
299 inline const Aws::String& GetImageId() const { return m_imageId; }
300 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
301 template <typename ImageIdT = Aws::String>
302 void SetImageId(ImageIdT&& value) {
303 m_imageIdHasBeenSet = true;
304 m_imageId = std::forward<ImageIdT>(value);
305 }
306 template <typename ImageIdT = Aws::String>
307 CreateFleetRequest& WithImageId(ImageIdT&& value) {
308 SetImageId(std::forward<ImageIdT>(value));
309 return *this;
310 }
312
314
321 inline const Aws::String& GetFleetServiceRole() const { return m_fleetServiceRole; }
322 inline bool FleetServiceRoleHasBeenSet() const { return m_fleetServiceRoleHasBeenSet; }
323 template <typename FleetServiceRoleT = Aws::String>
324 void SetFleetServiceRole(FleetServiceRoleT&& value) {
325 m_fleetServiceRoleHasBeenSet = true;
326 m_fleetServiceRole = std::forward<FleetServiceRoleT>(value);
327 }
328 template <typename FleetServiceRoleT = Aws::String>
329 CreateFleetRequest& WithFleetServiceRole(FleetServiceRoleT&& value) {
330 SetFleetServiceRole(std::forward<FleetServiceRoleT>(value));
331 return *this;
332 }
334
336
341 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
342 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
343 template <typename TagsT = Aws::Vector<Tag>>
344 void SetTags(TagsT&& value) {
345 m_tagsHasBeenSet = true;
346 m_tags = std::forward<TagsT>(value);
347 }
348 template <typename TagsT = Aws::Vector<Tag>>
349 CreateFleetRequest& WithTags(TagsT&& value) {
350 SetTags(std::forward<TagsT>(value));
351 return *this;
352 }
353 template <typename TagsT = Tag>
354 CreateFleetRequest& AddTags(TagsT&& value) {
355 m_tagsHasBeenSet = true;
356 m_tags.emplace_back(std::forward<TagsT>(value));
357 return *this;
358 }
360 private:
361 Aws::String m_name;
362 bool m_nameHasBeenSet = false;
363
364 int m_baseCapacity{0};
365 bool m_baseCapacityHasBeenSet = false;
366
367 EnvironmentType m_environmentType{EnvironmentType::NOT_SET};
368 bool m_environmentTypeHasBeenSet = false;
369
370 ComputeType m_computeType{ComputeType::NOT_SET};
371 bool m_computeTypeHasBeenSet = false;
372
373 ComputeConfiguration m_computeConfiguration;
374 bool m_computeConfigurationHasBeenSet = false;
375
376 ScalingConfigurationInput m_scalingConfiguration;
377 bool m_scalingConfigurationHasBeenSet = false;
378
380 bool m_overflowBehaviorHasBeenSet = false;
381
382 VpcConfig m_vpcConfig;
383 bool m_vpcConfigHasBeenSet = false;
384
385 ProxyConfiguration m_proxyConfiguration;
386 bool m_proxyConfigurationHasBeenSet = false;
387
388 Aws::String m_imageId;
389 bool m_imageIdHasBeenSet = false;
390
391 Aws::String m_fleetServiceRole;
392 bool m_fleetServiceRoleHasBeenSet = false;
393
394 Aws::Vector<Tag> m_tags;
395 bool m_tagsHasBeenSet = false;
396};
397
398} // namespace Model
399} // namespace CodeBuild
400} // namespace Aws
const ProxyConfiguration & GetProxyConfiguration() const
CreateFleetRequest & WithFleetServiceRole(FleetServiceRoleT &&value)
CreateFleetRequest & WithEnvironmentType(EnvironmentType value)
void SetComputeConfiguration(ComputeConfigurationT &&value)
CreateFleetRequest & WithOverflowBehavior(FleetOverflowBehavior value)
void SetFleetServiceRole(FleetServiceRoleT &&value)
CreateFleetRequest & WithName(NameT &&value)
CreateFleetRequest & WithScalingConfiguration(ScalingConfigurationT &&value)
CreateFleetRequest & WithVpcConfig(VpcConfigT &&value)
AWS_CODEBUILD_API Aws::String SerializePayload() const override
CreateFleetRequest & WithTags(TagsT &&value)
const Aws::Vector< Tag > & GetTags() const
void SetProxyConfiguration(ProxyConfigurationT &&value)
const ScalingConfigurationInput & GetScalingConfiguration() const
AWS_CODEBUILD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetOverflowBehavior(FleetOverflowBehavior value)
AWS_CODEBUILD_API CreateFleetRequest()=default
CreateFleetRequest & WithComputeConfiguration(ComputeConfigurationT &&value)
CreateFleetRequest & AddTags(TagsT &&value)
CreateFleetRequest & WithBaseCapacity(int value)
const ComputeConfiguration & GetComputeConfiguration() const
virtual const char * GetServiceRequestName() const override
const Aws::String & GetFleetServiceRole() const
CreateFleetRequest & WithImageId(ImageIdT &&value)
CreateFleetRequest & WithComputeType(ComputeType value)
void SetEnvironmentType(EnvironmentType value)
FleetOverflowBehavior GetOverflowBehavior() const
void SetScalingConfiguration(ScalingConfigurationT &&value)
CreateFleetRequest & WithProxyConfiguration(ProxyConfigurationT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector