AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/ScalingConfigurationInput.h>
13#include <aws/codebuild/model/FleetOverflowBehavior.h>
14#include <aws/codebuild/model/VpcConfig.h>
15#include <aws/codebuild/model/ProxyConfiguration.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17#include <aws/codebuild/model/Tag.h>
18#include <utility>
19
20namespace Aws
21{
22namespace CodeBuild
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_CODEBUILD_API UpdateFleetRequest();
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "UpdateFleet"; }
39
40 AWS_CODEBUILD_API Aws::String SerializePayload() const override;
41
43
44
46
49 inline const Aws::String& GetArn() const{ return m_arn; }
50 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
51 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
52 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
53 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
54 inline UpdateFleetRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;}
55 inline UpdateFleetRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
56 inline UpdateFleetRequest& WithArn(const char* value) { SetArn(value); return *this;}
58
60
64 inline int GetBaseCapacity() const{ return m_baseCapacity; }
65 inline bool BaseCapacityHasBeenSet() const { return m_baseCapacityHasBeenSet; }
66 inline void SetBaseCapacity(int value) { m_baseCapacityHasBeenSet = true; m_baseCapacity = value; }
67 inline UpdateFleetRequest& WithBaseCapacity(int value) { SetBaseCapacity(value); return *this;}
69
71
100 inline const EnvironmentType& GetEnvironmentType() const{ return m_environmentType; }
101 inline bool EnvironmentTypeHasBeenSet() const { return m_environmentTypeHasBeenSet; }
102 inline void SetEnvironmentType(const EnvironmentType& value) { m_environmentTypeHasBeenSet = true; m_environmentType = value; }
103 inline void SetEnvironmentType(EnvironmentType&& value) { m_environmentTypeHasBeenSet = true; m_environmentType = std::move(value); }
104 inline UpdateFleetRequest& WithEnvironmentType(const EnvironmentType& value) { SetEnvironmentType(value); return *this;}
105 inline UpdateFleetRequest& WithEnvironmentType(EnvironmentType&& value) { SetEnvironmentType(std::move(value)); return *this;}
107
109
138 inline const ComputeType& GetComputeType() const{ return m_computeType; }
139 inline bool ComputeTypeHasBeenSet() const { return m_computeTypeHasBeenSet; }
140 inline void SetComputeType(const ComputeType& value) { m_computeTypeHasBeenSet = true; m_computeType = value; }
141 inline void SetComputeType(ComputeType&& value) { m_computeTypeHasBeenSet = true; m_computeType = std::move(value); }
142 inline UpdateFleetRequest& WithComputeType(const ComputeType& value) { SetComputeType(value); return *this;}
143 inline UpdateFleetRequest& WithComputeType(ComputeType&& value) { SetComputeType(std::move(value)); return *this;}
145
147
150 inline const ScalingConfigurationInput& GetScalingConfiguration() const{ return m_scalingConfiguration; }
151 inline bool ScalingConfigurationHasBeenSet() const { return m_scalingConfigurationHasBeenSet; }
152 inline void SetScalingConfiguration(const ScalingConfigurationInput& value) { m_scalingConfigurationHasBeenSet = true; m_scalingConfiguration = value; }
153 inline void SetScalingConfiguration(ScalingConfigurationInput&& value) { m_scalingConfigurationHasBeenSet = true; m_scalingConfiguration = std::move(value); }
157
159
171 inline const FleetOverflowBehavior& GetOverflowBehavior() const{ return m_overflowBehavior; }
172 inline bool OverflowBehaviorHasBeenSet() const { return m_overflowBehaviorHasBeenSet; }
173 inline void SetOverflowBehavior(const FleetOverflowBehavior& value) { m_overflowBehaviorHasBeenSet = true; m_overflowBehavior = value; }
174 inline void SetOverflowBehavior(FleetOverflowBehavior&& value) { m_overflowBehaviorHasBeenSet = true; m_overflowBehavior = std::move(value); }
176 inline UpdateFleetRequest& WithOverflowBehavior(FleetOverflowBehavior&& value) { SetOverflowBehavior(std::move(value)); return *this;}
178
180
181 inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; }
182 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
183 inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
184 inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); }
185 inline UpdateFleetRequest& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;}
186 inline UpdateFleetRequest& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;}
188
190
193 inline const ProxyConfiguration& GetProxyConfiguration() const{ return m_proxyConfiguration; }
194 inline bool ProxyConfigurationHasBeenSet() const { return m_proxyConfigurationHasBeenSet; }
195 inline void SetProxyConfiguration(const ProxyConfiguration& value) { m_proxyConfigurationHasBeenSet = true; m_proxyConfiguration = value; }
196 inline void SetProxyConfiguration(ProxyConfiguration&& value) { m_proxyConfigurationHasBeenSet = true; m_proxyConfiguration = std::move(value); }
198 inline UpdateFleetRequest& WithProxyConfiguration(ProxyConfiguration&& value) { SetProxyConfiguration(std::move(value)); return *this;}
200
202
205 inline const Aws::String& GetImageId() const{ return m_imageId; }
206 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
207 inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
208 inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
209 inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
210 inline UpdateFleetRequest& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
211 inline UpdateFleetRequest& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
212 inline UpdateFleetRequest& WithImageId(const char* value) { SetImageId(value); return *this;}
214
216
223 inline const Aws::String& GetFleetServiceRole() const{ return m_fleetServiceRole; }
224 inline bool FleetServiceRoleHasBeenSet() const { return m_fleetServiceRoleHasBeenSet; }
225 inline void SetFleetServiceRole(const Aws::String& value) { m_fleetServiceRoleHasBeenSet = true; m_fleetServiceRole = value; }
226 inline void SetFleetServiceRole(Aws::String&& value) { m_fleetServiceRoleHasBeenSet = true; m_fleetServiceRole = std::move(value); }
227 inline void SetFleetServiceRole(const char* value) { m_fleetServiceRoleHasBeenSet = true; m_fleetServiceRole.assign(value); }
228 inline UpdateFleetRequest& WithFleetServiceRole(const Aws::String& value) { SetFleetServiceRole(value); return *this;}
229 inline UpdateFleetRequest& WithFleetServiceRole(Aws::String&& value) { SetFleetServiceRole(std::move(value)); return *this;}
230 inline UpdateFleetRequest& WithFleetServiceRole(const char* value) { SetFleetServiceRole(value); return *this;}
232
234
239 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
240 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
241 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
242 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
243 inline UpdateFleetRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
244 inline UpdateFleetRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
245 inline UpdateFleetRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
246 inline UpdateFleetRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
248 private:
249
250 Aws::String m_arn;
251 bool m_arnHasBeenSet = false;
252
253 int m_baseCapacity;
254 bool m_baseCapacityHasBeenSet = false;
255
256 EnvironmentType m_environmentType;
257 bool m_environmentTypeHasBeenSet = false;
258
259 ComputeType m_computeType;
260 bool m_computeTypeHasBeenSet = false;
261
262 ScalingConfigurationInput m_scalingConfiguration;
263 bool m_scalingConfigurationHasBeenSet = false;
264
265 FleetOverflowBehavior m_overflowBehavior;
266 bool m_overflowBehaviorHasBeenSet = false;
267
268 VpcConfig m_vpcConfig;
269 bool m_vpcConfigHasBeenSet = false;
270
271 ProxyConfiguration m_proxyConfiguration;
272 bool m_proxyConfigurationHasBeenSet = false;
273
274 Aws::String m_imageId;
275 bool m_imageIdHasBeenSet = false;
276
277 Aws::String m_fleetServiceRole;
278 bool m_fleetServiceRoleHasBeenSet = false;
279
280 Aws::Vector<Tag> m_tags;
281 bool m_tagsHasBeenSet = false;
282 };
283
284} // namespace Model
285} // namespace CodeBuild
286} // namespace Aws
const FleetOverflowBehavior & GetOverflowBehavior() const
UpdateFleetRequest & WithScalingConfiguration(ScalingConfigurationInput &&value)
UpdateFleetRequest & WithArn(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetOverflowBehavior(FleetOverflowBehavior &&value)
AWS_CODEBUILD_API Aws::String SerializePayload() const override
UpdateFleetRequest & AddTags(const Tag &value)
void SetTags(const Aws::Vector< Tag > &value)
UpdateFleetRequest & WithOverflowBehavior(const FleetOverflowBehavior &value)
void SetImageId(const Aws::String &value)
UpdateFleetRequest & WithProxyConfiguration(ProxyConfiguration &&value)
const Aws::Vector< Tag > & GetTags() const
UpdateFleetRequest & WithBaseCapacity(int value)
UpdateFleetRequest & WithTags(Aws::Vector< Tag > &&value)
void SetEnvironmentType(EnvironmentType &&value)
UpdateFleetRequest & WithImageId(Aws::String &&value)
UpdateFleetRequest & WithEnvironmentType(const EnvironmentType &value)
UpdateFleetRequest & WithArn(const Aws::String &value)
UpdateFleetRequest & WithFleetServiceRole(const Aws::String &value)
const ProxyConfiguration & GetProxyConfiguration() const
UpdateFleetRequest & WithComputeType(const ComputeType &value)
UpdateFleetRequest & WithFleetServiceRole(Aws::String &&value)
UpdateFleetRequest & WithImageId(const char *value)
const EnvironmentType & GetEnvironmentType() const
void SetProxyConfiguration(const ProxyConfiguration &value)
UpdateFleetRequest & AddTags(Tag &&value)
UpdateFleetRequest & WithVpcConfig(const VpcConfig &value)
UpdateFleetRequest & WithEnvironmentType(EnvironmentType &&value)
const ScalingConfigurationInput & GetScalingConfiguration() const
UpdateFleetRequest & WithTags(const Aws::Vector< Tag > &value)
UpdateFleetRequest & WithScalingConfiguration(const ScalingConfigurationInput &value)
UpdateFleetRequest & WithImageId(const Aws::String &value)
void SetOverflowBehavior(const FleetOverflowBehavior &value)
UpdateFleetRequest & WithProxyConfiguration(const ProxyConfiguration &value)
void SetComputeType(const ComputeType &value)
void SetScalingConfiguration(const ScalingConfigurationInput &value)
UpdateFleetRequest & WithOverflowBehavior(FleetOverflowBehavior &&value)
void SetScalingConfiguration(ScalingConfigurationInput &&value)
UpdateFleetRequest & WithComputeType(ComputeType &&value)
void SetFleetServiceRole(const Aws::String &value)
void SetTags(Aws::Vector< Tag > &&value)
AWS_CODEBUILD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateFleetRequest & WithVpcConfig(VpcConfig &&value)
const Aws::String & GetFleetServiceRole() const
void SetEnvironmentType(const EnvironmentType &value)
void SetArn(const Aws::String &value)
void SetProxyConfiguration(ProxyConfiguration &&value)
UpdateFleetRequest & WithArn(const char *value)
UpdateFleetRequest & WithFleetServiceRole(const char *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