AWS SDK for C++  1.9.15
AWS SDK for C++
ModifyFleetRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace EC2
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "ModifyFleet"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
49  inline bool GetDryRun() const{ return m_dryRun; }
50 
57  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
58 
65  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
66 
73  inline ModifyFleetRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
74 
75 
81  inline const FleetExcessCapacityTerminationPolicy& GetExcessCapacityTerminationPolicy() const{ return m_excessCapacityTerminationPolicy; }
82 
88  inline bool ExcessCapacityTerminationPolicyHasBeenSet() const { return m_excessCapacityTerminationPolicyHasBeenSet; }
89 
95  inline void SetExcessCapacityTerminationPolicy(const FleetExcessCapacityTerminationPolicy& value) { m_excessCapacityTerminationPolicyHasBeenSet = true; m_excessCapacityTerminationPolicy = value; }
96 
102  inline void SetExcessCapacityTerminationPolicy(FleetExcessCapacityTerminationPolicy&& value) { m_excessCapacityTerminationPolicyHasBeenSet = true; m_excessCapacityTerminationPolicy = std::move(value); }
103 
109  inline ModifyFleetRequest& WithExcessCapacityTerminationPolicy(const FleetExcessCapacityTerminationPolicy& value) { SetExcessCapacityTerminationPolicy(value); return *this;}
110 
116  inline ModifyFleetRequest& WithExcessCapacityTerminationPolicy(FleetExcessCapacityTerminationPolicy&& value) { SetExcessCapacityTerminationPolicy(std::move(value)); return *this;}
117 
118 
122  inline const Aws::Vector<FleetLaunchTemplateConfigRequest>& GetLaunchTemplateConfigs() const{ return m_launchTemplateConfigs; }
123 
127  inline bool LaunchTemplateConfigsHasBeenSet() const { return m_launchTemplateConfigsHasBeenSet; }
128 
132  inline void SetLaunchTemplateConfigs(const Aws::Vector<FleetLaunchTemplateConfigRequest>& value) { m_launchTemplateConfigsHasBeenSet = true; m_launchTemplateConfigs = value; }
133 
137  inline void SetLaunchTemplateConfigs(Aws::Vector<FleetLaunchTemplateConfigRequest>&& value) { m_launchTemplateConfigsHasBeenSet = true; m_launchTemplateConfigs = std::move(value); }
138 
142  inline ModifyFleetRequest& WithLaunchTemplateConfigs(const Aws::Vector<FleetLaunchTemplateConfigRequest>& value) { SetLaunchTemplateConfigs(value); return *this;}
143 
147  inline ModifyFleetRequest& WithLaunchTemplateConfigs(Aws::Vector<FleetLaunchTemplateConfigRequest>&& value) { SetLaunchTemplateConfigs(std::move(value)); return *this;}
148 
152  inline ModifyFleetRequest& AddLaunchTemplateConfigs(const FleetLaunchTemplateConfigRequest& value) { m_launchTemplateConfigsHasBeenSet = true; m_launchTemplateConfigs.push_back(value); return *this; }
153 
157  inline ModifyFleetRequest& AddLaunchTemplateConfigs(FleetLaunchTemplateConfigRequest&& value) { m_launchTemplateConfigsHasBeenSet = true; m_launchTemplateConfigs.push_back(std::move(value)); return *this; }
158 
159 
163  inline const Aws::String& GetFleetId() const{ return m_fleetId; }
164 
168  inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
169 
173  inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
174 
178  inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
179 
183  inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
184 
188  inline ModifyFleetRequest& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
189 
193  inline ModifyFleetRequest& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
194 
198  inline ModifyFleetRequest& WithFleetId(const char* value) { SetFleetId(value); return *this;}
199 
200 
204  inline const TargetCapacitySpecificationRequest& GetTargetCapacitySpecification() const{ return m_targetCapacitySpecification; }
205 
209  inline bool TargetCapacitySpecificationHasBeenSet() const { return m_targetCapacitySpecificationHasBeenSet; }
210 
214  inline void SetTargetCapacitySpecification(const TargetCapacitySpecificationRequest& value) { m_targetCapacitySpecificationHasBeenSet = true; m_targetCapacitySpecification = value; }
215 
219  inline void SetTargetCapacitySpecification(TargetCapacitySpecificationRequest&& value) { m_targetCapacitySpecificationHasBeenSet = true; m_targetCapacitySpecification = std::move(value); }
220 
224  inline ModifyFleetRequest& WithTargetCapacitySpecification(const TargetCapacitySpecificationRequest& value) { SetTargetCapacitySpecification(value); return *this;}
225 
229  inline ModifyFleetRequest& WithTargetCapacitySpecification(TargetCapacitySpecificationRequest&& value) { SetTargetCapacitySpecification(std::move(value)); return *this;}
230 
231  private:
232 
233  bool m_dryRun;
234  bool m_dryRunHasBeenSet;
235 
236  FleetExcessCapacityTerminationPolicy m_excessCapacityTerminationPolicy;
237  bool m_excessCapacityTerminationPolicyHasBeenSet;
238 
239  Aws::Vector<FleetLaunchTemplateConfigRequest> m_launchTemplateConfigs;
240  bool m_launchTemplateConfigsHasBeenSet;
241 
242  Aws::String m_fleetId;
243  bool m_fleetIdHasBeenSet;
244 
245  TargetCapacitySpecificationRequest m_targetCapacitySpecification;
246  bool m_targetCapacitySpecificationHasBeenSet;
247  };
248 
249 } // namespace Model
250 } // namespace EC2
251 } // namespace Aws
Aws::EC2::Model::ModifyFleetRequest::ModifyFleetRequest
ModifyFleetRequest()
Aws::EC2::Model::ModifyFleetRequest::SetTargetCapacitySpecification
void SetTargetCapacitySpecification(TargetCapacitySpecificationRequest &&value)
Definition: ModifyFleetRequest.h:219
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ModifyFleetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyFleetRequest.h:34
Aws::EC2::Model::ModifyFleetRequest::ExcessCapacityTerminationPolicyHasBeenSet
bool ExcessCapacityTerminationPolicyHasBeenSet() const
Definition: ModifyFleetRequest.h:88
Aws::EC2::Model::ModifyFleetRequest::SetLaunchTemplateConfigs
void SetLaunchTemplateConfigs(Aws::Vector< FleetLaunchTemplateConfigRequest > &&value)
Definition: ModifyFleetRequest.h:137
Aws::EC2::Model::ModifyFleetRequest::SetLaunchTemplateConfigs
void SetLaunchTemplateConfigs(const Aws::Vector< FleetLaunchTemplateConfigRequest > &value)
Definition: ModifyFleetRequest.h:132
Aws::EC2::Model::ModifyFleetRequest::WithLaunchTemplateConfigs
ModifyFleetRequest & WithLaunchTemplateConfigs(Aws::Vector< FleetLaunchTemplateConfigRequest > &&value)
Definition: ModifyFleetRequest.h:147
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ModifyFleetRequest::TargetCapacitySpecificationHasBeenSet
bool TargetCapacitySpecificationHasBeenSet() const
Definition: ModifyFleetRequest.h:209
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::FleetExcessCapacityTerminationPolicy
FleetExcessCapacityTerminationPolicy
Definition: FleetExcessCapacityTerminationPolicy.h:17
AWSVector.h
Aws::EC2::Model::ModifyFleetRequest::WithTargetCapacitySpecification
ModifyFleetRequest & WithTargetCapacitySpecification(const TargetCapacitySpecificationRequest &value)
Definition: ModifyFleetRequest.h:224
Aws::EC2::Model::ModifyFleetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::ModifyFleetRequest::WithFleetId
ModifyFleetRequest & WithFleetId(const char *value)
Definition: ModifyFleetRequest.h:198
Aws::EC2::Model::ModifyFleetRequest::SetExcessCapacityTerminationPolicy
void SetExcessCapacityTerminationPolicy(FleetExcessCapacityTerminationPolicy &&value)
Definition: ModifyFleetRequest.h:102
Aws::EC2::Model::ModifyFleetRequest::WithExcessCapacityTerminationPolicy
ModifyFleetRequest & WithExcessCapacityTerminationPolicy(FleetExcessCapacityTerminationPolicy &&value)
Definition: ModifyFleetRequest.h:116
Aws::EC2::Model::ModifyFleetRequest::AddLaunchTemplateConfigs
ModifyFleetRequest & AddLaunchTemplateConfigs(FleetLaunchTemplateConfigRequest &&value)
Definition: ModifyFleetRequest.h:157
TargetCapacitySpecificationRequest.h
Aws::EC2::Model::ModifyFleetRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ModifyFleetRequest.h:57
EC2Request.h
Aws::EC2::Model::ModifyFleetRequest::SetExcessCapacityTerminationPolicy
void SetExcessCapacityTerminationPolicy(const FleetExcessCapacityTerminationPolicy &value)
Definition: ModifyFleetRequest.h:95
Aws::EC2::Model::FleetLaunchTemplateConfigRequest
Definition: FleetLaunchTemplateConfigRequest.h:34
AWSString.h
Aws::EC2::Model::ModifyFleetRequest::GetExcessCapacityTerminationPolicy
const FleetExcessCapacityTerminationPolicy & GetExcessCapacityTerminationPolicy() const
Definition: ModifyFleetRequest.h:81
Aws::EC2::Model::ModifyFleetRequest::WithExcessCapacityTerminationPolicy
ModifyFleetRequest & WithExcessCapacityTerminationPolicy(const FleetExcessCapacityTerminationPolicy &value)
Definition: ModifyFleetRequest.h:109
FleetLaunchTemplateConfigRequest.h
Aws::EC2::Model::ModifyFleetRequest::WithLaunchTemplateConfigs
ModifyFleetRequest & WithLaunchTemplateConfigs(const Aws::Vector< FleetLaunchTemplateConfigRequest > &value)
Definition: ModifyFleetRequest.h:142
Aws::EC2::Model::ModifyFleetRequest::WithTargetCapacitySpecification
ModifyFleetRequest & WithTargetCapacitySpecification(TargetCapacitySpecificationRequest &&value)
Definition: ModifyFleetRequest.h:229
Aws::EC2::Model::ModifyFleetRequest::GetFleetId
const Aws::String & GetFleetId() const
Definition: ModifyFleetRequest.h:163
Aws::EC2::Model::TargetCapacitySpecificationRequest
Definition: TargetCapacitySpecificationRequest.h:48
Aws::EC2::Model::ModifyFleetRequest
Definition: ModifyFleetRequest.h:26
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ModifyFleetRequest::WithFleetId
ModifyFleetRequest & WithFleetId(Aws::String &&value)
Definition: ModifyFleetRequest.h:193
Aws::EC2::Model::ModifyFleetRequest::SetFleetId
void SetFleetId(const Aws::String &value)
Definition: ModifyFleetRequest.h:173
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ModifyFleetRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::ModifyFleetRequest::LaunchTemplateConfigsHasBeenSet
bool LaunchTemplateConfigsHasBeenSet() const
Definition: ModifyFleetRequest.h:127
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::ModifyFleetRequest::GetLaunchTemplateConfigs
const Aws::Vector< FleetLaunchTemplateConfigRequest > & GetLaunchTemplateConfigs() const
Definition: ModifyFleetRequest.h:122
Aws::EC2::Model::ModifyFleetRequest::WithDryRun
ModifyFleetRequest & WithDryRun(bool value)
Definition: ModifyFleetRequest.h:73
Aws::EC2::Model::ModifyFleetRequest::SetTargetCapacitySpecification
void SetTargetCapacitySpecification(const TargetCapacitySpecificationRequest &value)
Definition: ModifyFleetRequest.h:214
Aws::EC2::Model::ModifyFleetRequest::FleetIdHasBeenSet
bool FleetIdHasBeenSet() const
Definition: ModifyFleetRequest.h:168
Aws::EC2::Model::ModifyFleetRequest::SetDryRun
void SetDryRun(bool value)
Definition: ModifyFleetRequest.h:65
EC2_EXPORTS.h
Aws::EC2::Model::ModifyFleetRequest::GetDryRun
bool GetDryRun() const
Definition: ModifyFleetRequest.h:49
FleetExcessCapacityTerminationPolicy.h
Aws::EC2::Model::ModifyFleetRequest::GetTargetCapacitySpecification
const TargetCapacitySpecificationRequest & GetTargetCapacitySpecification() const
Definition: ModifyFleetRequest.h:204
Aws::EC2::Model::ModifyFleetRequest::SetFleetId
void SetFleetId(Aws::String &&value)
Definition: ModifyFleetRequest.h:178
Aws::EC2::Model::ModifyFleetRequest::AddLaunchTemplateConfigs
ModifyFleetRequest & AddLaunchTemplateConfigs(const FleetLaunchTemplateConfigRequest &value)
Definition: ModifyFleetRequest.h:152
Aws::EC2::Model::ModifyFleetRequest::SetFleetId
void SetFleetId(const char *value)
Definition: ModifyFleetRequest.h:183
Aws::EC2::Model::ModifyFleetRequest::WithFleetId
ModifyFleetRequest & WithFleetId(const Aws::String &value)
Definition: ModifyFleetRequest.h:188