AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateFleetRequest.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/CodeBuildRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codebuild/model/EnvironmentType.h>
11#include <aws/codebuild/model/ComputeType.h>
12#include <aws/codebuild/model/ComputeConfiguration.h>
13#include <aws/codebuild/model/ScalingConfigurationInput.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 CodeBuild
24{
25namespace Model
26{
27
31 {
32 public:
33 AWS_CODEBUILD_API UpdateFleetRequest() = default;
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "UpdateFleet"; }
40
41 AWS_CODEBUILD_API Aws::String SerializePayload() const override;
42
44
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) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
54 template<typename ArnT = Aws::String>
55 UpdateFleetRequest& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
57
59
63 inline int GetBaseCapacity() const { return m_baseCapacity; }
64 inline bool BaseCapacityHasBeenSet() const { return m_baseCapacityHasBeenSet; }
65 inline void SetBaseCapacity(int value) { m_baseCapacityHasBeenSet = true; m_baseCapacity = value; }
66 inline UpdateFleetRequest& WithBaseCapacity(int value) { SetBaseCapacity(value); return *this;}
68
70
111 inline EnvironmentType GetEnvironmentType() const { return m_environmentType; }
112 inline bool EnvironmentTypeHasBeenSet() const { return m_environmentTypeHasBeenSet; }
113 inline void SetEnvironmentType(EnvironmentType value) { m_environmentTypeHasBeenSet = true; m_environmentType = value; }
116
118
172 inline ComputeType GetComputeType() const { return m_computeType; }
173 inline bool ComputeTypeHasBeenSet() const { return m_computeTypeHasBeenSet; }
174 inline void SetComputeType(ComputeType value) { m_computeTypeHasBeenSet = true; m_computeType = value; }
175 inline UpdateFleetRequest& WithComputeType(ComputeType value) { SetComputeType(value); return *this;}
177
179
184 inline const ComputeConfiguration& GetComputeConfiguration() const { return m_computeConfiguration; }
185 inline bool ComputeConfigurationHasBeenSet() const { return m_computeConfigurationHasBeenSet; }
186 template<typename ComputeConfigurationT = ComputeConfiguration>
187 void SetComputeConfiguration(ComputeConfigurationT&& value) { m_computeConfigurationHasBeenSet = true; m_computeConfiguration = std::forward<ComputeConfigurationT>(value); }
188 template<typename ComputeConfigurationT = ComputeConfiguration>
189 UpdateFleetRequest& WithComputeConfiguration(ComputeConfigurationT&& value) { SetComputeConfiguration(std::forward<ComputeConfigurationT>(value)); return *this;}
191
193
196 inline const ScalingConfigurationInput& GetScalingConfiguration() const { return m_scalingConfiguration; }
197 inline bool ScalingConfigurationHasBeenSet() const { return m_scalingConfigurationHasBeenSet; }
198 template<typename ScalingConfigurationT = ScalingConfigurationInput>
199 void SetScalingConfiguration(ScalingConfigurationT&& value) { m_scalingConfigurationHasBeenSet = true; m_scalingConfiguration = std::forward<ScalingConfigurationT>(value); }
200 template<typename ScalingConfigurationT = ScalingConfigurationInput>
201 UpdateFleetRequest& WithScalingConfiguration(ScalingConfigurationT&& value) { SetScalingConfiguration(std::forward<ScalingConfigurationT>(value)); return *this;}
203
205
217 inline FleetOverflowBehavior GetOverflowBehavior() const { return m_overflowBehavior; }
218 inline bool OverflowBehaviorHasBeenSet() const { return m_overflowBehaviorHasBeenSet; }
219 inline void SetOverflowBehavior(FleetOverflowBehavior value) { m_overflowBehaviorHasBeenSet = true; m_overflowBehavior = value; }
222
224
225 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
226 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
227 template<typename VpcConfigT = VpcConfig>
228 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::forward<VpcConfigT>(value); }
229 template<typename VpcConfigT = VpcConfig>
230 UpdateFleetRequest& WithVpcConfig(VpcConfigT&& value) { SetVpcConfig(std::forward<VpcConfigT>(value)); return *this;}
232
234
237 inline const ProxyConfiguration& GetProxyConfiguration() const { return m_proxyConfiguration; }
238 inline bool ProxyConfigurationHasBeenSet() const { return m_proxyConfigurationHasBeenSet; }
239 template<typename ProxyConfigurationT = ProxyConfiguration>
240 void SetProxyConfiguration(ProxyConfigurationT&& value) { m_proxyConfigurationHasBeenSet = true; m_proxyConfiguration = std::forward<ProxyConfigurationT>(value); }
241 template<typename ProxyConfigurationT = ProxyConfiguration>
242 UpdateFleetRequest& WithProxyConfiguration(ProxyConfigurationT&& value) { SetProxyConfiguration(std::forward<ProxyConfigurationT>(value)); return *this;}
244
246
249 inline const Aws::String& GetImageId() const { return m_imageId; }
250 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
251 template<typename ImageIdT = Aws::String>
252 void SetImageId(ImageIdT&& value) { m_imageIdHasBeenSet = true; m_imageId = std::forward<ImageIdT>(value); }
253 template<typename ImageIdT = Aws::String>
254 UpdateFleetRequest& WithImageId(ImageIdT&& value) { SetImageId(std::forward<ImageIdT>(value)); return *this;}
256
258
265 inline const Aws::String& GetFleetServiceRole() const { return m_fleetServiceRole; }
266 inline bool FleetServiceRoleHasBeenSet() const { return m_fleetServiceRoleHasBeenSet; }
267 template<typename FleetServiceRoleT = Aws::String>
268 void SetFleetServiceRole(FleetServiceRoleT&& value) { m_fleetServiceRoleHasBeenSet = true; m_fleetServiceRole = std::forward<FleetServiceRoleT>(value); }
269 template<typename FleetServiceRoleT = Aws::String>
270 UpdateFleetRequest& WithFleetServiceRole(FleetServiceRoleT&& value) { SetFleetServiceRole(std::forward<FleetServiceRoleT>(value)); return *this;}
272
274
279 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
280 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
281 template<typename TagsT = Aws::Vector<Tag>>
282 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
283 template<typename TagsT = Aws::Vector<Tag>>
284 UpdateFleetRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
285 template<typename TagsT = Tag>
286 UpdateFleetRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
288 private:
289
290 Aws::String m_arn;
291 bool m_arnHasBeenSet = false;
292
293 int m_baseCapacity{0};
294 bool m_baseCapacityHasBeenSet = false;
295
296 EnvironmentType m_environmentType{EnvironmentType::NOT_SET};
297 bool m_environmentTypeHasBeenSet = false;
298
299 ComputeType m_computeType{ComputeType::NOT_SET};
300 bool m_computeTypeHasBeenSet = false;
301
302 ComputeConfiguration m_computeConfiguration;
303 bool m_computeConfigurationHasBeenSet = false;
304
305 ScalingConfigurationInput m_scalingConfiguration;
306 bool m_scalingConfigurationHasBeenSet = false;
307
309 bool m_overflowBehaviorHasBeenSet = false;
310
311 VpcConfig m_vpcConfig;
312 bool m_vpcConfigHasBeenSet = false;
313
314 ProxyConfiguration m_proxyConfiguration;
315 bool m_proxyConfigurationHasBeenSet = false;
316
317 Aws::String m_imageId;
318 bool m_imageIdHasBeenSet = false;
319
320 Aws::String m_fleetServiceRole;
321 bool m_fleetServiceRoleHasBeenSet = false;
322
323 Aws::Vector<Tag> m_tags;
324 bool m_tagsHasBeenSet = false;
325 };
326
327} // namespace Model
328} // namespace CodeBuild
329} // namespace Aws
virtual const char * GetServiceRequestName() const override
UpdateFleetRequest & WithTags(TagsT &&value)
void SetFleetServiceRole(FleetServiceRoleT &&value)
void SetProxyConfiguration(ProxyConfigurationT &&value)
UpdateFleetRequest & WithArn(ArnT &&value)
AWS_CODEBUILD_API Aws::String SerializePayload() const override
UpdateFleetRequest & WithOverflowBehavior(FleetOverflowBehavior value)
UpdateFleetRequest & WithImageId(ImageIdT &&value)
UpdateFleetRequest & WithComputeConfiguration(ComputeConfigurationT &&value)
UpdateFleetRequest & WithComputeType(ComputeType value)
UpdateFleetRequest & WithScalingConfiguration(ScalingConfigurationT &&value)
const Aws::Vector< Tag > & GetTags() const
UpdateFleetRequest & WithBaseCapacity(int value)
const ComputeConfiguration & GetComputeConfiguration() const
const ProxyConfiguration & GetProxyConfiguration() const
void SetScalingConfiguration(ScalingConfigurationT &&value)
UpdateFleetRequest & WithVpcConfig(VpcConfigT &&value)
void SetEnvironmentType(EnvironmentType value)
UpdateFleetRequest & WithEnvironmentType(EnvironmentType value)
UpdateFleetRequest & WithProxyConfiguration(ProxyConfigurationT &&value)
const ScalingConfigurationInput & GetScalingConfiguration() const
void SetOverflowBehavior(FleetOverflowBehavior value)
UpdateFleetRequest & WithFleetServiceRole(FleetServiceRoleT &&value)
FleetOverflowBehavior GetOverflowBehavior() const
void SetComputeConfiguration(ComputeConfigurationT &&value)
UpdateFleetRequest & AddTags(TagsT &&value)
AWS_CODEBUILD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CODEBUILD_API UpdateFleetRequest()=default
const Aws::String & GetFleetServiceRole() const
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