AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SpotFleetRequestConfigData.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/AllocationStrategy.h>
10#include <aws/ec2/model/OnDemandAllocationStrategy.h>
11#include <aws/ec2/model/SpotMaintenanceStrategies.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/ec2/model/ExcessCapacityTerminationPolicy.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/ec2/model/FleetType.h>
16#include <aws/core/utils/DateTime.h>
17#include <aws/ec2/model/InstanceInterruptionBehavior.h>
18#include <aws/ec2/model/LoadBalancersConfig.h>
19#include <aws/ec2/model/TargetCapacityUnitType.h>
20#include <aws/ec2/model/SpotFleetLaunchSpecification.h>
21#include <aws/ec2/model/LaunchTemplateConfig.h>
22#include <aws/ec2/model/TagSpecification.h>
23#include <utility>
24
25namespace Aws
26{
27namespace Utils
28{
29namespace Xml
30{
31 class XmlNode;
32} // namespace Xml
33} // namespace Utils
34namespace EC2
35{
36namespace Model
37{
38
46 {
47 public:
51
52 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
53 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
54
55
57
96 inline const AllocationStrategy& GetAllocationStrategy() const{ return m_allocationStrategy; }
97 inline bool AllocationStrategyHasBeenSet() const { return m_allocationStrategyHasBeenSet; }
98 inline void SetAllocationStrategy(const AllocationStrategy& value) { m_allocationStrategyHasBeenSet = true; m_allocationStrategy = value; }
99 inline void SetAllocationStrategy(AllocationStrategy&& value) { m_allocationStrategyHasBeenSet = true; m_allocationStrategy = std::move(value); }
103
105
113 inline const OnDemandAllocationStrategy& GetOnDemandAllocationStrategy() const{ return m_onDemandAllocationStrategy; }
114 inline bool OnDemandAllocationStrategyHasBeenSet() const { return m_onDemandAllocationStrategyHasBeenSet; }
115 inline void SetOnDemandAllocationStrategy(const OnDemandAllocationStrategy& value) { m_onDemandAllocationStrategyHasBeenSet = true; m_onDemandAllocationStrategy = value; }
116 inline void SetOnDemandAllocationStrategy(OnDemandAllocationStrategy&& value) { m_onDemandAllocationStrategyHasBeenSet = true; m_onDemandAllocationStrategy = std::move(value); }
120
122
126 inline const SpotMaintenanceStrategies& GetSpotMaintenanceStrategies() const{ return m_spotMaintenanceStrategies; }
127 inline bool SpotMaintenanceStrategiesHasBeenSet() const { return m_spotMaintenanceStrategiesHasBeenSet; }
128 inline void SetSpotMaintenanceStrategies(const SpotMaintenanceStrategies& value) { m_spotMaintenanceStrategiesHasBeenSet = true; m_spotMaintenanceStrategies = value; }
129 inline void SetSpotMaintenanceStrategies(SpotMaintenanceStrategies&& value) { m_spotMaintenanceStrategiesHasBeenSet = true; m_spotMaintenanceStrategies = std::move(value); }
133
135
142 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
143 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
144 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
145 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
146 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
147 inline SpotFleetRequestConfigData& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
148 inline SpotFleetRequestConfigData& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
149 inline SpotFleetRequestConfigData& WithClientToken(const char* value) { SetClientToken(value); return *this;}
151
153
158 inline const ExcessCapacityTerminationPolicy& GetExcessCapacityTerminationPolicy() const{ return m_excessCapacityTerminationPolicy; }
159 inline bool ExcessCapacityTerminationPolicyHasBeenSet() const { return m_excessCapacityTerminationPolicyHasBeenSet; }
160 inline void SetExcessCapacityTerminationPolicy(const ExcessCapacityTerminationPolicy& value) { m_excessCapacityTerminationPolicyHasBeenSet = true; m_excessCapacityTerminationPolicy = value; }
161 inline void SetExcessCapacityTerminationPolicy(ExcessCapacityTerminationPolicy&& value) { m_excessCapacityTerminationPolicyHasBeenSet = true; m_excessCapacityTerminationPolicy = std::move(value); }
165
167
171 inline double GetFulfilledCapacity() const{ return m_fulfilledCapacity; }
172 inline bool FulfilledCapacityHasBeenSet() const { return m_fulfilledCapacityHasBeenSet; }
173 inline void SetFulfilledCapacity(double value) { m_fulfilledCapacityHasBeenSet = true; m_fulfilledCapacity = value; }
174 inline SpotFleetRequestConfigData& WithFulfilledCapacity(double value) { SetFulfilledCapacity(value); return *this;}
176
178
182 inline double GetOnDemandFulfilledCapacity() const{ return m_onDemandFulfilledCapacity; }
183 inline bool OnDemandFulfilledCapacityHasBeenSet() const { return m_onDemandFulfilledCapacityHasBeenSet; }
184 inline void SetOnDemandFulfilledCapacity(double value) { m_onDemandFulfilledCapacityHasBeenSet = true; m_onDemandFulfilledCapacity = value; }
187
189
201 inline const Aws::String& GetIamFleetRole() const{ return m_iamFleetRole; }
202 inline bool IamFleetRoleHasBeenSet() const { return m_iamFleetRoleHasBeenSet; }
203 inline void SetIamFleetRole(const Aws::String& value) { m_iamFleetRoleHasBeenSet = true; m_iamFleetRole = value; }
204 inline void SetIamFleetRole(Aws::String&& value) { m_iamFleetRoleHasBeenSet = true; m_iamFleetRole = std::move(value); }
205 inline void SetIamFleetRole(const char* value) { m_iamFleetRoleHasBeenSet = true; m_iamFleetRole.assign(value); }
206 inline SpotFleetRequestConfigData& WithIamFleetRole(const Aws::String& value) { SetIamFleetRole(value); return *this;}
207 inline SpotFleetRequestConfigData& WithIamFleetRole(Aws::String&& value) { SetIamFleetRole(std::move(value)); return *this;}
208 inline SpotFleetRequestConfigData& WithIamFleetRole(const char* value) { SetIamFleetRole(value); return *this;}
210
212
221 inline const Aws::Vector<SpotFleetLaunchSpecification>& GetLaunchSpecifications() const{ return m_launchSpecifications; }
222 inline bool LaunchSpecificationsHasBeenSet() const { return m_launchSpecificationsHasBeenSet; }
223 inline void SetLaunchSpecifications(const Aws::Vector<SpotFleetLaunchSpecification>& value) { m_launchSpecificationsHasBeenSet = true; m_launchSpecifications = value; }
224 inline void SetLaunchSpecifications(Aws::Vector<SpotFleetLaunchSpecification>&& value) { m_launchSpecificationsHasBeenSet = true; m_launchSpecifications = std::move(value); }
227 inline SpotFleetRequestConfigData& AddLaunchSpecifications(const SpotFleetLaunchSpecification& value) { m_launchSpecificationsHasBeenSet = true; m_launchSpecifications.push_back(value); return *this; }
228 inline SpotFleetRequestConfigData& AddLaunchSpecifications(SpotFleetLaunchSpecification&& value) { m_launchSpecificationsHasBeenSet = true; m_launchSpecifications.push_back(std::move(value)); return *this; }
230
232
238 inline const Aws::Vector<LaunchTemplateConfig>& GetLaunchTemplateConfigs() const{ return m_launchTemplateConfigs; }
239 inline bool LaunchTemplateConfigsHasBeenSet() const { return m_launchTemplateConfigsHasBeenSet; }
240 inline void SetLaunchTemplateConfigs(const Aws::Vector<LaunchTemplateConfig>& value) { m_launchTemplateConfigsHasBeenSet = true; m_launchTemplateConfigs = value; }
241 inline void SetLaunchTemplateConfigs(Aws::Vector<LaunchTemplateConfig>&& value) { m_launchTemplateConfigsHasBeenSet = true; m_launchTemplateConfigs = std::move(value); }
244 inline SpotFleetRequestConfigData& AddLaunchTemplateConfigs(const LaunchTemplateConfig& value) { m_launchTemplateConfigsHasBeenSet = true; m_launchTemplateConfigs.push_back(value); return *this; }
245 inline SpotFleetRequestConfigData& AddLaunchTemplateConfigs(LaunchTemplateConfig&& value) { m_launchTemplateConfigsHasBeenSet = true; m_launchTemplateConfigs.push_back(std::move(value)); return *this; }
247
249
257 inline const Aws::String& GetSpotPrice() const{ return m_spotPrice; }
258 inline bool SpotPriceHasBeenSet() const { return m_spotPriceHasBeenSet; }
259 inline void SetSpotPrice(const Aws::String& value) { m_spotPriceHasBeenSet = true; m_spotPrice = value; }
260 inline void SetSpotPrice(Aws::String&& value) { m_spotPriceHasBeenSet = true; m_spotPrice = std::move(value); }
261 inline void SetSpotPrice(const char* value) { m_spotPriceHasBeenSet = true; m_spotPrice.assign(value); }
262 inline SpotFleetRequestConfigData& WithSpotPrice(const Aws::String& value) { SetSpotPrice(value); return *this;}
263 inline SpotFleetRequestConfigData& WithSpotPrice(Aws::String&& value) { SetSpotPrice(std::move(value)); return *this;}
264 inline SpotFleetRequestConfigData& WithSpotPrice(const char* value) { SetSpotPrice(value); return *this;}
266
268
275 inline int GetTargetCapacity() const{ return m_targetCapacity; }
276 inline bool TargetCapacityHasBeenSet() const { return m_targetCapacityHasBeenSet; }
277 inline void SetTargetCapacity(int value) { m_targetCapacityHasBeenSet = true; m_targetCapacity = value; }
278 inline SpotFleetRequestConfigData& WithTargetCapacity(int value) { SetTargetCapacity(value); return *this;}
280
282
289 inline int GetOnDemandTargetCapacity() const{ return m_onDemandTargetCapacity; }
290 inline bool OnDemandTargetCapacityHasBeenSet() const { return m_onDemandTargetCapacityHasBeenSet; }
291 inline void SetOnDemandTargetCapacity(int value) { m_onDemandTargetCapacityHasBeenSet = true; m_onDemandTargetCapacity = value; }
294
296
314 inline const Aws::String& GetOnDemandMaxTotalPrice() const{ return m_onDemandMaxTotalPrice; }
315 inline bool OnDemandMaxTotalPriceHasBeenSet() const { return m_onDemandMaxTotalPriceHasBeenSet; }
316 inline void SetOnDemandMaxTotalPrice(const Aws::String& value) { m_onDemandMaxTotalPriceHasBeenSet = true; m_onDemandMaxTotalPrice = value; }
317 inline void SetOnDemandMaxTotalPrice(Aws::String&& value) { m_onDemandMaxTotalPriceHasBeenSet = true; m_onDemandMaxTotalPrice = std::move(value); }
318 inline void SetOnDemandMaxTotalPrice(const char* value) { m_onDemandMaxTotalPriceHasBeenSet = true; m_onDemandMaxTotalPrice.assign(value); }
321 inline SpotFleetRequestConfigData& WithOnDemandMaxTotalPrice(const char* value) { SetOnDemandMaxTotalPrice(value); return *this;}
323
325
343 inline const Aws::String& GetSpotMaxTotalPrice() const{ return m_spotMaxTotalPrice; }
344 inline bool SpotMaxTotalPriceHasBeenSet() const { return m_spotMaxTotalPriceHasBeenSet; }
345 inline void SetSpotMaxTotalPrice(const Aws::String& value) { m_spotMaxTotalPriceHasBeenSet = true; m_spotMaxTotalPrice = value; }
346 inline void SetSpotMaxTotalPrice(Aws::String&& value) { m_spotMaxTotalPriceHasBeenSet = true; m_spotMaxTotalPrice = std::move(value); }
347 inline void SetSpotMaxTotalPrice(const char* value) { m_spotMaxTotalPriceHasBeenSet = true; m_spotMaxTotalPrice.assign(value); }
349 inline SpotFleetRequestConfigData& WithSpotMaxTotalPrice(Aws::String&& value) { SetSpotMaxTotalPrice(std::move(value)); return *this;}
350 inline SpotFleetRequestConfigData& WithSpotMaxTotalPrice(const char* value) { SetSpotMaxTotalPrice(value); return *this;}
352
354
358 inline bool GetTerminateInstancesWithExpiration() const{ return m_terminateInstancesWithExpiration; }
359 inline bool TerminateInstancesWithExpirationHasBeenSet() const { return m_terminateInstancesWithExpirationHasBeenSet; }
360 inline void SetTerminateInstancesWithExpiration(bool value) { m_terminateInstancesWithExpirationHasBeenSet = true; m_terminateInstancesWithExpiration = value; }
363
365
377 inline const FleetType& GetType() const{ return m_type; }
378 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
379 inline void SetType(const FleetType& value) { m_typeHasBeenSet = true; m_type = value; }
380 inline void SetType(FleetType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
381 inline SpotFleetRequestConfigData& WithType(const FleetType& value) { SetType(value); return *this;}
382 inline SpotFleetRequestConfigData& WithType(FleetType&& value) { SetType(std::move(value)); return *this;}
384
386
391 inline const Aws::Utils::DateTime& GetValidFrom() const{ return m_validFrom; }
392 inline bool ValidFromHasBeenSet() const { return m_validFromHasBeenSet; }
393 inline void SetValidFrom(const Aws::Utils::DateTime& value) { m_validFromHasBeenSet = true; m_validFrom = value; }
394 inline void SetValidFrom(Aws::Utils::DateTime&& value) { m_validFromHasBeenSet = true; m_validFrom = std::move(value); }
395 inline SpotFleetRequestConfigData& WithValidFrom(const Aws::Utils::DateTime& value) { SetValidFrom(value); return *this;}
396 inline SpotFleetRequestConfigData& WithValidFrom(Aws::Utils::DateTime&& value) { SetValidFrom(std::move(value)); return *this;}
398
400
407 inline const Aws::Utils::DateTime& GetValidUntil() const{ return m_validUntil; }
408 inline bool ValidUntilHasBeenSet() const { return m_validUntilHasBeenSet; }
409 inline void SetValidUntil(const Aws::Utils::DateTime& value) { m_validUntilHasBeenSet = true; m_validUntil = value; }
410 inline void SetValidUntil(Aws::Utils::DateTime&& value) { m_validUntilHasBeenSet = true; m_validUntil = std::move(value); }
412 inline SpotFleetRequestConfigData& WithValidUntil(Aws::Utils::DateTime&& value) { SetValidUntil(std::move(value)); return *this;}
414
416
419 inline bool GetReplaceUnhealthyInstances() const{ return m_replaceUnhealthyInstances; }
420 inline bool ReplaceUnhealthyInstancesHasBeenSet() const { return m_replaceUnhealthyInstancesHasBeenSet; }
421 inline void SetReplaceUnhealthyInstances(bool value) { m_replaceUnhealthyInstancesHasBeenSet = true; m_replaceUnhealthyInstances = value; }
424
426
430 inline const InstanceInterruptionBehavior& GetInstanceInterruptionBehavior() const{ return m_instanceInterruptionBehavior; }
431 inline bool InstanceInterruptionBehaviorHasBeenSet() const { return m_instanceInterruptionBehaviorHasBeenSet; }
432 inline void SetInstanceInterruptionBehavior(const InstanceInterruptionBehavior& value) { m_instanceInterruptionBehaviorHasBeenSet = true; m_instanceInterruptionBehavior = value; }
433 inline void SetInstanceInterruptionBehavior(InstanceInterruptionBehavior&& value) { m_instanceInterruptionBehaviorHasBeenSet = true; m_instanceInterruptionBehavior = std::move(value); }
437
439
447 inline const LoadBalancersConfig& GetLoadBalancersConfig() const{ return m_loadBalancersConfig; }
448 inline bool LoadBalancersConfigHasBeenSet() const { return m_loadBalancersConfigHasBeenSet; }
449 inline void SetLoadBalancersConfig(const LoadBalancersConfig& value) { m_loadBalancersConfigHasBeenSet = true; m_loadBalancersConfig = value; }
450 inline void SetLoadBalancersConfig(LoadBalancersConfig&& value) { m_loadBalancersConfigHasBeenSet = true; m_loadBalancersConfig = std::move(value); }
454
456
470 inline int GetInstancePoolsToUseCount() const{ return m_instancePoolsToUseCount; }
471 inline bool InstancePoolsToUseCountHasBeenSet() const { return m_instancePoolsToUseCountHasBeenSet; }
472 inline void SetInstancePoolsToUseCount(int value) { m_instancePoolsToUseCountHasBeenSet = true; m_instancePoolsToUseCount = value; }
475
477
480 inline const Aws::String& GetContext() const{ return m_context; }
481 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
482 inline void SetContext(const Aws::String& value) { m_contextHasBeenSet = true; m_context = value; }
483 inline void SetContext(Aws::String&& value) { m_contextHasBeenSet = true; m_context = std::move(value); }
484 inline void SetContext(const char* value) { m_contextHasBeenSet = true; m_context.assign(value); }
485 inline SpotFleetRequestConfigData& WithContext(const Aws::String& value) { SetContext(value); return *this;}
486 inline SpotFleetRequestConfigData& WithContext(Aws::String&& value) { SetContext(std::move(value)); return *this;}
487 inline SpotFleetRequestConfigData& WithContext(const char* value) { SetContext(value); return *this;}
489
491
496 inline const TargetCapacityUnitType& GetTargetCapacityUnitType() const{ return m_targetCapacityUnitType; }
497 inline bool TargetCapacityUnitTypeHasBeenSet() const { return m_targetCapacityUnitTypeHasBeenSet; }
498 inline void SetTargetCapacityUnitType(const TargetCapacityUnitType& value) { m_targetCapacityUnitTypeHasBeenSet = true; m_targetCapacityUnitType = value; }
499 inline void SetTargetCapacityUnitType(TargetCapacityUnitType&& value) { m_targetCapacityUnitTypeHasBeenSet = true; m_targetCapacityUnitType = std::move(value); }
503
505
519 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
520 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
521 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
522 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
525 inline SpotFleetRequestConfigData& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
526 inline SpotFleetRequestConfigData& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
528 private:
529
530 AllocationStrategy m_allocationStrategy;
531 bool m_allocationStrategyHasBeenSet = false;
532
533 OnDemandAllocationStrategy m_onDemandAllocationStrategy;
534 bool m_onDemandAllocationStrategyHasBeenSet = false;
535
536 SpotMaintenanceStrategies m_spotMaintenanceStrategies;
537 bool m_spotMaintenanceStrategiesHasBeenSet = false;
538
539 Aws::String m_clientToken;
540 bool m_clientTokenHasBeenSet = false;
541
542 ExcessCapacityTerminationPolicy m_excessCapacityTerminationPolicy;
543 bool m_excessCapacityTerminationPolicyHasBeenSet = false;
544
545 double m_fulfilledCapacity;
546 bool m_fulfilledCapacityHasBeenSet = false;
547
548 double m_onDemandFulfilledCapacity;
549 bool m_onDemandFulfilledCapacityHasBeenSet = false;
550
551 Aws::String m_iamFleetRole;
552 bool m_iamFleetRoleHasBeenSet = false;
553
554 Aws::Vector<SpotFleetLaunchSpecification> m_launchSpecifications;
555 bool m_launchSpecificationsHasBeenSet = false;
556
557 Aws::Vector<LaunchTemplateConfig> m_launchTemplateConfigs;
558 bool m_launchTemplateConfigsHasBeenSet = false;
559
560 Aws::String m_spotPrice;
561 bool m_spotPriceHasBeenSet = false;
562
563 int m_targetCapacity;
564 bool m_targetCapacityHasBeenSet = false;
565
566 int m_onDemandTargetCapacity;
567 bool m_onDemandTargetCapacityHasBeenSet = false;
568
569 Aws::String m_onDemandMaxTotalPrice;
570 bool m_onDemandMaxTotalPriceHasBeenSet = false;
571
572 Aws::String m_spotMaxTotalPrice;
573 bool m_spotMaxTotalPriceHasBeenSet = false;
574
575 bool m_terminateInstancesWithExpiration;
576 bool m_terminateInstancesWithExpirationHasBeenSet = false;
577
578 FleetType m_type;
579 bool m_typeHasBeenSet = false;
580
581 Aws::Utils::DateTime m_validFrom;
582 bool m_validFromHasBeenSet = false;
583
584 Aws::Utils::DateTime m_validUntil;
585 bool m_validUntilHasBeenSet = false;
586
587 bool m_replaceUnhealthyInstances;
588 bool m_replaceUnhealthyInstancesHasBeenSet = false;
589
590 InstanceInterruptionBehavior m_instanceInterruptionBehavior;
591 bool m_instanceInterruptionBehaviorHasBeenSet = false;
592
593 LoadBalancersConfig m_loadBalancersConfig;
594 bool m_loadBalancersConfigHasBeenSet = false;
595
596 int m_instancePoolsToUseCount;
597 bool m_instancePoolsToUseCountHasBeenSet = false;
598
599 Aws::String m_context;
600 bool m_contextHasBeenSet = false;
601
602 TargetCapacityUnitType m_targetCapacityUnitType;
603 bool m_targetCapacityUnitTypeHasBeenSet = false;
604
605 Aws::Vector<TagSpecification> m_tagSpecifications;
606 bool m_tagSpecificationsHasBeenSet = false;
607 };
608
609} // namespace Model
610} // namespace EC2
611} // namespace Aws
SpotFleetRequestConfigData & AddLaunchSpecifications(SpotFleetLaunchSpecification &&value)
SpotFleetRequestConfigData & WithOnDemandMaxTotalPrice(const Aws::String &value)
void SetExcessCapacityTerminationPolicy(const ExcessCapacityTerminationPolicy &value)
SpotFleetRequestConfigData & WithValidUntil(const Aws::Utils::DateTime &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetInstanceInterruptionBehavior(InstanceInterruptionBehavior &&value)
SpotFleetRequestConfigData & WithValidUntil(Aws::Utils::DateTime &&value)
SpotFleetRequestConfigData & AddLaunchSpecifications(const SpotFleetLaunchSpecification &value)
void SetLaunchSpecifications(const Aws::Vector< SpotFleetLaunchSpecification > &value)
const Aws::Utils::DateTime & GetValidFrom() const
SpotFleetRequestConfigData & WithIamFleetRole(const char *value)
SpotFleetRequestConfigData & WithInstanceInterruptionBehavior(InstanceInterruptionBehavior &&value)
SpotFleetRequestConfigData & WithSpotMaxTotalPrice(Aws::String &&value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
SpotFleetRequestConfigData & WithLaunchSpecifications(const Aws::Vector< SpotFleetLaunchSpecification > &value)
SpotFleetRequestConfigData & WithSpotMaintenanceStrategies(SpotMaintenanceStrategies &&value)
SpotFleetRequestConfigData & WithOnDemandMaxTotalPrice(const char *value)
const Aws::Utils::DateTime & GetValidUntil() const
const InstanceInterruptionBehavior & GetInstanceInterruptionBehavior() const
SpotFleetRequestConfigData & AddTagSpecifications(TagSpecification &&value)
void SetSpotMaintenanceStrategies(const SpotMaintenanceStrategies &value)
void SetLaunchTemplateConfigs(const Aws::Vector< LaunchTemplateConfig > &value)
SpotFleetRequestConfigData & WithOnDemandAllocationStrategy(const OnDemandAllocationStrategy &value)
const AllocationStrategy & GetAllocationStrategy() const
SpotFleetRequestConfigData & WithClientToken(const char *value)
SpotFleetRequestConfigData & WithLoadBalancersConfig(const LoadBalancersConfig &value)
SpotFleetRequestConfigData & WithReplaceUnhealthyInstances(bool value)
SpotFleetRequestConfigData & AddLaunchTemplateConfigs(LaunchTemplateConfig &&value)
SpotFleetRequestConfigData & WithLoadBalancersConfig(LoadBalancersConfig &&value)
void SetValidFrom(const Aws::Utils::DateTime &value)
const SpotMaintenanceStrategies & GetSpotMaintenanceStrategies() const
SpotFleetRequestConfigData & WithSpotMaxTotalPrice(const Aws::String &value)
SpotFleetRequestConfigData & WithSpotPrice(const Aws::String &value)
SpotFleetRequestConfigData & WithFulfilledCapacity(double value)
void SetLoadBalancersConfig(const LoadBalancersConfig &value)
SpotFleetRequestConfigData & WithIamFleetRole(const Aws::String &value)
void SetExcessCapacityTerminationPolicy(ExcessCapacityTerminationPolicy &&value)
void SetLaunchSpecifications(Aws::Vector< SpotFleetLaunchSpecification > &&value)
SpotFleetRequestConfigData & WithLaunchTemplateConfigs(Aws::Vector< LaunchTemplateConfig > &&value)
SpotFleetRequestConfigData & WithAllocationStrategy(const AllocationStrategy &value)
SpotFleetRequestConfigData & WithOnDemandTargetCapacity(int value)
void SetSpotMaintenanceStrategies(SpotMaintenanceStrategies &&value)
SpotFleetRequestConfigData & WithContext(const char *value)
void SetInstanceInterruptionBehavior(const InstanceInterruptionBehavior &value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
SpotFleetRequestConfigData & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
SpotFleetRequestConfigData & WithIamFleetRole(Aws::String &&value)
SpotFleetRequestConfigData & WithOnDemandFulfilledCapacity(double value)
SpotFleetRequestConfigData & WithTargetCapacityUnitType(const TargetCapacityUnitType &value)
void SetValidUntil(const Aws::Utils::DateTime &value)
void SetTargetCapacityUnitType(TargetCapacityUnitType &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SpotFleetRequestConfigData & WithTargetCapacityUnitType(TargetCapacityUnitType &&value)
SpotFleetRequestConfigData & WithOnDemandMaxTotalPrice(Aws::String &&value)
AWS_EC2_API SpotFleetRequestConfigData & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SpotFleetRequestConfigData & WithClientToken(Aws::String &&value)
SpotFleetRequestConfigData & WithAllocationStrategy(AllocationStrategy &&value)
SpotFleetRequestConfigData & WithContext(const Aws::String &value)
SpotFleetRequestConfigData & WithType(const FleetType &value)
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
void SetOnDemandAllocationStrategy(OnDemandAllocationStrategy &&value)
SpotFleetRequestConfigData & WithInstanceInterruptionBehavior(const InstanceInterruptionBehavior &value)
SpotFleetRequestConfigData & WithClientToken(const Aws::String &value)
SpotFleetRequestConfigData & WithTerminateInstancesWithExpiration(bool value)
void SetAllocationStrategy(AllocationStrategy &&value)
const TargetCapacityUnitType & GetTargetCapacityUnitType() const
void SetTargetCapacityUnitType(const TargetCapacityUnitType &value)
const Aws::Vector< LaunchTemplateConfig > & GetLaunchTemplateConfigs() const
const ExcessCapacityTerminationPolicy & GetExcessCapacityTerminationPolicy() const
SpotFleetRequestConfigData & AddLaunchTemplateConfigs(const LaunchTemplateConfig &value)
void SetLoadBalancersConfig(LoadBalancersConfig &&value)
const OnDemandAllocationStrategy & GetOnDemandAllocationStrategy() const
void SetAllocationStrategy(const AllocationStrategy &value)
SpotFleetRequestConfigData & WithType(FleetType &&value)
SpotFleetRequestConfigData & WithValidFrom(const Aws::Utils::DateTime &value)
AWS_EC2_API SpotFleetRequestConfigData(const Aws::Utils::Xml::XmlNode &xmlNode)
SpotFleetRequestConfigData & WithSpotMaxTotalPrice(const char *value)
SpotFleetRequestConfigData & WithSpotPrice(const char *value)
SpotFleetRequestConfigData & WithExcessCapacityTerminationPolicy(const ExcessCapacityTerminationPolicy &value)
SpotFleetRequestConfigData & WithInstancePoolsToUseCount(int value)
SpotFleetRequestConfigData & WithTargetCapacity(int value)
SpotFleetRequestConfigData & WithValidFrom(Aws::Utils::DateTime &&value)
SpotFleetRequestConfigData & WithLaunchTemplateConfigs(const Aws::Vector< LaunchTemplateConfig > &value)
const Aws::Vector< SpotFleetLaunchSpecification > & GetLaunchSpecifications() const
void SetLaunchTemplateConfigs(Aws::Vector< LaunchTemplateConfig > &&value)
const LoadBalancersConfig & GetLoadBalancersConfig() const
SpotFleetRequestConfigData & AddTagSpecifications(const TagSpecification &value)
SpotFleetRequestConfigData & WithOnDemandAllocationStrategy(OnDemandAllocationStrategy &&value)
SpotFleetRequestConfigData & WithExcessCapacityTerminationPolicy(ExcessCapacityTerminationPolicy &&value)
SpotFleetRequestConfigData & WithContext(Aws::String &&value)
SpotFleetRequestConfigData & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
SpotFleetRequestConfigData & WithSpotPrice(Aws::String &&value)
SpotFleetRequestConfigData & WithLaunchSpecifications(Aws::Vector< SpotFleetLaunchSpecification > &&value)
void SetOnDemandAllocationStrategy(const OnDemandAllocationStrategy &value)
SpotFleetRequestConfigData & WithSpotMaintenanceStrategies(const SpotMaintenanceStrategies &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream