AWS SDK for C++  1.9.74
AWS SDK for C++
ModifySpotFleetRequestRequest.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>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace EC2
18 {
19 namespace Model
20 {
21 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "ModifySpotFleetRequest"; }
38 
39  Aws::String SerializePayload() const override;
40 
41  protected:
42  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
43 
44  public:
45 
51  inline const ExcessCapacityTerminationPolicy& GetExcessCapacityTerminationPolicy() const{ return m_excessCapacityTerminationPolicy; }
52 
58  inline bool ExcessCapacityTerminationPolicyHasBeenSet() const { return m_excessCapacityTerminationPolicyHasBeenSet; }
59 
65  inline void SetExcessCapacityTerminationPolicy(const ExcessCapacityTerminationPolicy& value) { m_excessCapacityTerminationPolicyHasBeenSet = true; m_excessCapacityTerminationPolicy = value; }
66 
72  inline void SetExcessCapacityTerminationPolicy(ExcessCapacityTerminationPolicy&& value) { m_excessCapacityTerminationPolicyHasBeenSet = true; m_excessCapacityTerminationPolicy = std::move(value); }
73 
79  inline ModifySpotFleetRequestRequest& WithExcessCapacityTerminationPolicy(const ExcessCapacityTerminationPolicy& value) { SetExcessCapacityTerminationPolicy(value); return *this;}
80 
86  inline ModifySpotFleetRequestRequest& WithExcessCapacityTerminationPolicy(ExcessCapacityTerminationPolicy&& value) { SetExcessCapacityTerminationPolicy(std::move(value)); return *this;}
87 
88 
95  inline const Aws::Vector<LaunchTemplateConfig>& GetLaunchTemplateConfigs() const{ return m_launchTemplateConfigs; }
96 
103  inline bool LaunchTemplateConfigsHasBeenSet() const { return m_launchTemplateConfigsHasBeenSet; }
104 
111  inline void SetLaunchTemplateConfigs(const Aws::Vector<LaunchTemplateConfig>& value) { m_launchTemplateConfigsHasBeenSet = true; m_launchTemplateConfigs = value; }
112 
119  inline void SetLaunchTemplateConfigs(Aws::Vector<LaunchTemplateConfig>&& value) { m_launchTemplateConfigsHasBeenSet = true; m_launchTemplateConfigs = std::move(value); }
120 
127  inline ModifySpotFleetRequestRequest& WithLaunchTemplateConfigs(const Aws::Vector<LaunchTemplateConfig>& value) { SetLaunchTemplateConfigs(value); return *this;}
128 
135  inline ModifySpotFleetRequestRequest& WithLaunchTemplateConfigs(Aws::Vector<LaunchTemplateConfig>&& value) { SetLaunchTemplateConfigs(std::move(value)); return *this;}
136 
143  inline ModifySpotFleetRequestRequest& AddLaunchTemplateConfigs(const LaunchTemplateConfig& value) { m_launchTemplateConfigsHasBeenSet = true; m_launchTemplateConfigs.push_back(value); return *this; }
144 
151  inline ModifySpotFleetRequestRequest& AddLaunchTemplateConfigs(LaunchTemplateConfig&& value) { m_launchTemplateConfigsHasBeenSet = true; m_launchTemplateConfigs.push_back(std::move(value)); return *this; }
152 
153 
157  inline const Aws::String& GetSpotFleetRequestId() const{ return m_spotFleetRequestId; }
158 
162  inline bool SpotFleetRequestIdHasBeenSet() const { return m_spotFleetRequestIdHasBeenSet; }
163 
167  inline void SetSpotFleetRequestId(const Aws::String& value) { m_spotFleetRequestIdHasBeenSet = true; m_spotFleetRequestId = value; }
168 
172  inline void SetSpotFleetRequestId(Aws::String&& value) { m_spotFleetRequestIdHasBeenSet = true; m_spotFleetRequestId = std::move(value); }
173 
177  inline void SetSpotFleetRequestId(const char* value) { m_spotFleetRequestIdHasBeenSet = true; m_spotFleetRequestId.assign(value); }
178 
182  inline ModifySpotFleetRequestRequest& WithSpotFleetRequestId(const Aws::String& value) { SetSpotFleetRequestId(value); return *this;}
183 
187  inline ModifySpotFleetRequestRequest& WithSpotFleetRequestId(Aws::String&& value) { SetSpotFleetRequestId(std::move(value)); return *this;}
188 
192  inline ModifySpotFleetRequestRequest& WithSpotFleetRequestId(const char* value) { SetSpotFleetRequestId(value); return *this;}
193 
194 
198  inline int GetTargetCapacity() const{ return m_targetCapacity; }
199 
203  inline bool TargetCapacityHasBeenSet() const { return m_targetCapacityHasBeenSet; }
204 
208  inline void SetTargetCapacity(int value) { m_targetCapacityHasBeenSet = true; m_targetCapacity = value; }
209 
213  inline ModifySpotFleetRequestRequest& WithTargetCapacity(int value) { SetTargetCapacity(value); return *this;}
214 
215 
219  inline int GetOnDemandTargetCapacity() const{ return m_onDemandTargetCapacity; }
220 
224  inline bool OnDemandTargetCapacityHasBeenSet() const { return m_onDemandTargetCapacityHasBeenSet; }
225 
229  inline void SetOnDemandTargetCapacity(int value) { m_onDemandTargetCapacityHasBeenSet = true; m_onDemandTargetCapacity = value; }
230 
234  inline ModifySpotFleetRequestRequest& WithOnDemandTargetCapacity(int value) { SetOnDemandTargetCapacity(value); return *this;}
235 
236 
240  inline const Aws::String& GetContext() const{ return m_context; }
241 
245  inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
246 
250  inline void SetContext(const Aws::String& value) { m_contextHasBeenSet = true; m_context = value; }
251 
255  inline void SetContext(Aws::String&& value) { m_contextHasBeenSet = true; m_context = std::move(value); }
256 
260  inline void SetContext(const char* value) { m_contextHasBeenSet = true; m_context.assign(value); }
261 
265  inline ModifySpotFleetRequestRequest& WithContext(const Aws::String& value) { SetContext(value); return *this;}
266 
270  inline ModifySpotFleetRequestRequest& WithContext(Aws::String&& value) { SetContext(std::move(value)); return *this;}
271 
275  inline ModifySpotFleetRequestRequest& WithContext(const char* value) { SetContext(value); return *this;}
276 
277  private:
278 
279  ExcessCapacityTerminationPolicy m_excessCapacityTerminationPolicy;
280  bool m_excessCapacityTerminationPolicyHasBeenSet;
281 
282  Aws::Vector<LaunchTemplateConfig> m_launchTemplateConfigs;
283  bool m_launchTemplateConfigsHasBeenSet;
284 
285  Aws::String m_spotFleetRequestId;
286  bool m_spotFleetRequestIdHasBeenSet;
287 
288  int m_targetCapacity;
289  bool m_targetCapacityHasBeenSet;
290 
291  int m_onDemandTargetCapacity;
292  bool m_onDemandTargetCapacityHasBeenSet;
293 
294  Aws::String m_context;
295  bool m_contextHasBeenSet;
296  };
297 
298 } // namespace Model
299 } // namespace EC2
300 } // namespace Aws
ExcessCapacityTerminationPolicy.h
Aws::EC2::Model::ModifySpotFleetRequestRequest
Definition: ModifySpotFleetRequestRequest.h:29
Aws::EC2::Model::ModifySpotFleetRequestRequest::WithExcessCapacityTerminationPolicy
ModifySpotFleetRequestRequest & WithExcessCapacityTerminationPolicy(ExcessCapacityTerminationPolicy &&value)
Definition: ModifySpotFleetRequestRequest.h:86
Aws::EC2::Model::ModifySpotFleetRequestRequest::SetSpotFleetRequestId
void SetSpotFleetRequestId(const char *value)
Definition: ModifySpotFleetRequestRequest.h:177
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::LaunchTemplateConfig
Definition: LaunchTemplateConfig.h:34
Aws::EC2::Model::ModifySpotFleetRequestRequest::SetLaunchTemplateConfigs
void SetLaunchTemplateConfigs(const Aws::Vector< LaunchTemplateConfig > &value)
Definition: ModifySpotFleetRequestRequest.h:111
Aws::EC2::Model::ModifySpotFleetRequestRequest::WithExcessCapacityTerminationPolicy
ModifySpotFleetRequestRequest & WithExcessCapacityTerminationPolicy(const ExcessCapacityTerminationPolicy &value)
Definition: ModifySpotFleetRequestRequest.h:79
Aws::EC2::Model::ModifySpotFleetRequestRequest::AddLaunchTemplateConfigs
ModifySpotFleetRequestRequest & AddLaunchTemplateConfigs(const LaunchTemplateConfig &value)
Definition: ModifySpotFleetRequestRequest.h:143
Aws::EC2::Model::ModifySpotFleetRequestRequest::WithOnDemandTargetCapacity
ModifySpotFleetRequestRequest & WithOnDemandTargetCapacity(int value)
Definition: ModifySpotFleetRequestRequest.h:234
Aws::EC2::Model::ModifySpotFleetRequestRequest::WithSpotFleetRequestId
ModifySpotFleetRequestRequest & WithSpotFleetRequestId(Aws::String &&value)
Definition: ModifySpotFleetRequestRequest.h:187
Aws::EC2::Model::ModifySpotFleetRequestRequest::SetLaunchTemplateConfigs
void SetLaunchTemplateConfigs(Aws::Vector< LaunchTemplateConfig > &&value)
Definition: ModifySpotFleetRequestRequest.h:119
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ModifySpotFleetRequestRequest::SetContext
void SetContext(const char *value)
Definition: ModifySpotFleetRequestRequest.h:260
Aws::EC2::Model::ModifySpotFleetRequestRequest::ContextHasBeenSet
bool ContextHasBeenSet() const
Definition: ModifySpotFleetRequestRequest.h:245
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::ModifySpotFleetRequestRequest::OnDemandTargetCapacityHasBeenSet
bool OnDemandTargetCapacityHasBeenSet() const
Definition: ModifySpotFleetRequestRequest.h:224
Aws::EC2::Model::ModifySpotFleetRequestRequest::WithContext
ModifySpotFleetRequestRequest & WithContext(const Aws::String &value)
Definition: ModifySpotFleetRequestRequest.h:265
Aws::EC2::Model::ModifySpotFleetRequestRequest::SetTargetCapacity
void SetTargetCapacity(int value)
Definition: ModifySpotFleetRequestRequest.h:208
AWSVector.h
Aws::EC2::Model::ModifySpotFleetRequestRequest::WithLaunchTemplateConfigs
ModifySpotFleetRequestRequest & WithLaunchTemplateConfigs(const Aws::Vector< LaunchTemplateConfig > &value)
Definition: ModifySpotFleetRequestRequest.h:127
Aws::EC2::Model::ModifySpotFleetRequestRequest::GetExcessCapacityTerminationPolicy
const ExcessCapacityTerminationPolicy & GetExcessCapacityTerminationPolicy() const
Definition: ModifySpotFleetRequestRequest.h:51
Aws::EC2::Model::ModifySpotFleetRequestRequest::SetContext
void SetContext(const Aws::String &value)
Definition: ModifySpotFleetRequestRequest.h:250
Aws::EC2::Model::ModifySpotFleetRequestRequest::SetContext
void SetContext(Aws::String &&value)
Definition: ModifySpotFleetRequestRequest.h:255
Aws::EC2::Model::ModifySpotFleetRequestRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::ModifySpotFleetRequestRequest::WithSpotFleetRequestId
ModifySpotFleetRequestRequest & WithSpotFleetRequestId(const Aws::String &value)
Definition: ModifySpotFleetRequestRequest.h:182
LaunchTemplateConfig.h
Aws::EC2::Model::ModifySpotFleetRequestRequest::AddLaunchTemplateConfigs
ModifySpotFleetRequestRequest & AddLaunchTemplateConfigs(LaunchTemplateConfig &&value)
Definition: ModifySpotFleetRequestRequest.h:151
Aws::EC2::Model::ModifySpotFleetRequestRequest::WithTargetCapacity
ModifySpotFleetRequestRequest & WithTargetCapacity(int value)
Definition: ModifySpotFleetRequestRequest.h:213
Aws::EC2::Model::ModifySpotFleetRequestRequest::SpotFleetRequestIdHasBeenSet
bool SpotFleetRequestIdHasBeenSet() const
Definition: ModifySpotFleetRequestRequest.h:162
Aws::EC2::Model::ModifySpotFleetRequestRequest::SetSpotFleetRequestId
void SetSpotFleetRequestId(Aws::String &&value)
Definition: ModifySpotFleetRequestRequest.h:172
Aws::EC2::Model::ModifySpotFleetRequestRequest::GetContext
const Aws::String & GetContext() const
Definition: ModifySpotFleetRequestRequest.h:240
Aws::EC2::Model::ModifySpotFleetRequestRequest::TargetCapacityHasBeenSet
bool TargetCapacityHasBeenSet() const
Definition: ModifySpotFleetRequestRequest.h:203
EC2Request.h
Aws::EC2::Model::ModifySpotFleetRequestRequest::SetExcessCapacityTerminationPolicy
void SetExcessCapacityTerminationPolicy(ExcessCapacityTerminationPolicy &&value)
Definition: ModifySpotFleetRequestRequest.h:72
Aws::EC2::Model::ModifySpotFleetRequestRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifySpotFleetRequestRequest.h:37
AWSString.h
Aws::EC2::Model::ModifySpotFleetRequestRequest::SetExcessCapacityTerminationPolicy
void SetExcessCapacityTerminationPolicy(const ExcessCapacityTerminationPolicy &value)
Definition: ModifySpotFleetRequestRequest.h:65
Aws::EC2::Model::ModifySpotFleetRequestRequest::WithLaunchTemplateConfigs
ModifySpotFleetRequestRequest & WithLaunchTemplateConfigs(Aws::Vector< LaunchTemplateConfig > &&value)
Definition: ModifySpotFleetRequestRequest.h:135
Aws::EC2::Model::ModifySpotFleetRequestRequest::WithContext
ModifySpotFleetRequestRequest & WithContext(const char *value)
Definition: ModifySpotFleetRequestRequest.h:275
Aws::EC2::Model::ModifySpotFleetRequestRequest::WithSpotFleetRequestId
ModifySpotFleetRequestRequest & WithSpotFleetRequestId(const char *value)
Definition: ModifySpotFleetRequestRequest.h:192
Aws::EC2::Model::ModifySpotFleetRequestRequest::GetSpotFleetRequestId
const Aws::String & GetSpotFleetRequestId() const
Definition: ModifySpotFleetRequestRequest.h:157
Aws::EC2::Model::ModifySpotFleetRequestRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::ModifySpotFleetRequestRequest::ExcessCapacityTerminationPolicyHasBeenSet
bool ExcessCapacityTerminationPolicyHasBeenSet() const
Definition: ModifySpotFleetRequestRequest.h:58
Aws::EC2::Model::ModifySpotFleetRequestRequest::GetLaunchTemplateConfigs
const Aws::Vector< LaunchTemplateConfig > & GetLaunchTemplateConfigs() const
Definition: ModifySpotFleetRequestRequest.h:95
Aws::EC2::Model::ModifySpotFleetRequestRequest::LaunchTemplateConfigsHasBeenSet
bool LaunchTemplateConfigsHasBeenSet() const
Definition: ModifySpotFleetRequestRequest.h:103
Aws::EC2::Model::ModifySpotFleetRequestRequest::SetSpotFleetRequestId
void SetSpotFleetRequestId(const Aws::String &value)
Definition: ModifySpotFleetRequestRequest.h:167
Aws::EC2::Model::ModifySpotFleetRequestRequest::WithContext
ModifySpotFleetRequestRequest & WithContext(Aws::String &&value)
Definition: ModifySpotFleetRequestRequest.h:270
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ModifySpotFleetRequestRequest::GetTargetCapacity
int GetTargetCapacity() const
Definition: ModifySpotFleetRequestRequest.h:198
Aws::EC2::Model::ModifySpotFleetRequestRequest::GetOnDemandTargetCapacity
int GetOnDemandTargetCapacity() const
Definition: ModifySpotFleetRequestRequest.h:219
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ExcessCapacityTerminationPolicy
ExcessCapacityTerminationPolicy
Definition: ExcessCapacityTerminationPolicy.h:17
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::ModifySpotFleetRequestRequest::ModifySpotFleetRequestRequest
ModifySpotFleetRequestRequest()
EC2_EXPORTS.h
Aws::EC2::Model::ModifySpotFleetRequestRequest::SetOnDemandTargetCapacity
void SetOnDemandTargetCapacity(int value)
Definition: ModifySpotFleetRequestRequest.h:229