AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateFleetRequest.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 CreateFleetRequest();
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 "CreateFleet"; }
39
40 AWS_CODEBUILD_API Aws::String SerializePayload() const override;
41
43
44
46
49 inline const Aws::String& GetName() const{ return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
53 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
54 inline CreateFleetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
55 inline CreateFleetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
56 inline CreateFleetRequest& WithName(const char* value) { SetName(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 CreateFleetRequest& 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 CreateFleetRequest& WithEnvironmentType(const EnvironmentType& value) { SetEnvironmentType(value); return *this;}
105 inline CreateFleetRequest& 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 CreateFleetRequest& WithComputeType(const ComputeType& value) { SetComputeType(value); return *this;}
143 inline CreateFleetRequest& 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 CreateFleetRequest& 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 CreateFleetRequest& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;}
186 inline CreateFleetRequest& 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 CreateFleetRequest& 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 CreateFleetRequest& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
211 inline CreateFleetRequest& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
212 inline CreateFleetRequest& 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 CreateFleetRequest& WithFleetServiceRole(const Aws::String& value) { SetFleetServiceRole(value); return *this;}
229 inline CreateFleetRequest& WithFleetServiceRole(Aws::String&& value) { SetFleetServiceRole(std::move(value)); return *this;}
230 inline CreateFleetRequest& 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 CreateFleetRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
244 inline CreateFleetRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
245 inline CreateFleetRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
246 inline CreateFleetRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
248 private:
249
250 Aws::String m_name;
251 bool m_nameHasBeenSet = 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
CreateFleetRequest & WithVpcConfig(VpcConfig &&value)
const ProxyConfiguration & GetProxyConfiguration() const
void SetOverflowBehavior(const FleetOverflowBehavior &value)
void SetTags(Aws::Vector< Tag > &&value)
CreateFleetRequest & WithVpcConfig(const VpcConfig &value)
CreateFleetRequest & WithImageId(const Aws::String &value)
CreateFleetRequest & WithTags(Aws::Vector< Tag > &&value)
CreateFleetRequest & WithComputeType(ComputeType &&value)
CreateFleetRequest & WithEnvironmentType(const EnvironmentType &value)
CreateFleetRequest & WithName(const Aws::String &value)
CreateFleetRequest & WithProxyConfiguration(ProxyConfiguration &&value)
CreateFleetRequest & WithOverflowBehavior(const FleetOverflowBehavior &value)
const EnvironmentType & GetEnvironmentType() const
CreateFleetRequest & WithName(const char *value)
AWS_CODEBUILD_API Aws::String SerializePayload() const override
CreateFleetRequest & WithTags(const Aws::Vector< Tag > &value)
CreateFleetRequest & AddTags(Tag &&value)
CreateFleetRequest & WithOverflowBehavior(FleetOverflowBehavior &&value)
void SetProxyConfiguration(const ProxyConfiguration &value)
CreateFleetRequest & WithImageId(const char *value)
const Aws::Vector< Tag > & GetTags() const
CreateFleetRequest & WithImageId(Aws::String &&value)
CreateFleetRequest & WithScalingConfiguration(const ScalingConfigurationInput &value)
CreateFleetRequest & AddTags(const Tag &value)
CreateFleetRequest & WithScalingConfiguration(ScalingConfigurationInput &&value)
CreateFleetRequest & WithName(Aws::String &&value)
CreateFleetRequest & WithEnvironmentType(EnvironmentType &&value)
void SetName(const Aws::String &value)
void SetComputeType(const ComputeType &value)
void SetTags(const Aws::Vector< Tag > &value)
void SetEnvironmentType(EnvironmentType &&value)
const FleetOverflowBehavior & GetOverflowBehavior() const
void SetOverflowBehavior(FleetOverflowBehavior &&value)
CreateFleetRequest & WithFleetServiceRole(Aws::String &&value)
void SetFleetServiceRole(const Aws::String &value)
CreateFleetRequest & WithComputeType(const ComputeType &value)
const ScalingConfigurationInput & GetScalingConfiguration() const
AWS_CODEBUILD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetEnvironmentType(const EnvironmentType &value)
void SetScalingConfiguration(const ScalingConfigurationInput &value)
CreateFleetRequest & WithProxyConfiguration(const ProxyConfiguration &value)
CreateFleetRequest & WithFleetServiceRole(const char *value)
CreateFleetRequest & WithBaseCapacity(int value)
void SetScalingConfiguration(ScalingConfigurationInput &&value)
void SetProxyConfiguration(ProxyConfiguration &&value)
virtual const char * GetServiceRequestName() const override
CreateFleetRequest & WithFleetServiceRole(const Aws::String &value)
const Aws::String & GetFleetServiceRole() const
void SetImageId(const Aws::String &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