AWS SDK for C++  1.9.132
AWS SDK for C++
SpotInstanceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
19 #include <aws/ec2/model/Tag.h>
20 #include <utility>
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace EC2
32 {
33 namespace Model
34 {
35 
42  {
43  public:
47 
48  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
49  void OutputToStream(Aws::OStream& oStream, const char* location) const;
50 
51 
55  inline const Aws::String& GetActualBlockHourlyPrice() const{ return m_actualBlockHourlyPrice; }
56 
60  inline bool ActualBlockHourlyPriceHasBeenSet() const { return m_actualBlockHourlyPriceHasBeenSet; }
61 
65  inline void SetActualBlockHourlyPrice(const Aws::String& value) { m_actualBlockHourlyPriceHasBeenSet = true; m_actualBlockHourlyPrice = value; }
66 
70  inline void SetActualBlockHourlyPrice(Aws::String&& value) { m_actualBlockHourlyPriceHasBeenSet = true; m_actualBlockHourlyPrice = std::move(value); }
71 
75  inline void SetActualBlockHourlyPrice(const char* value) { m_actualBlockHourlyPriceHasBeenSet = true; m_actualBlockHourlyPrice.assign(value); }
76 
80  inline SpotInstanceRequest& WithActualBlockHourlyPrice(const Aws::String& value) { SetActualBlockHourlyPrice(value); return *this;}
81 
85  inline SpotInstanceRequest& WithActualBlockHourlyPrice(Aws::String&& value) { SetActualBlockHourlyPrice(std::move(value)); return *this;}
86 
90  inline SpotInstanceRequest& WithActualBlockHourlyPrice(const char* value) { SetActualBlockHourlyPrice(value); return *this;}
91 
92 
98  inline const Aws::String& GetAvailabilityZoneGroup() const{ return m_availabilityZoneGroup; }
99 
105  inline bool AvailabilityZoneGroupHasBeenSet() const { return m_availabilityZoneGroupHasBeenSet; }
106 
112  inline void SetAvailabilityZoneGroup(const Aws::String& value) { m_availabilityZoneGroupHasBeenSet = true; m_availabilityZoneGroup = value; }
113 
119  inline void SetAvailabilityZoneGroup(Aws::String&& value) { m_availabilityZoneGroupHasBeenSet = true; m_availabilityZoneGroup = std::move(value); }
120 
126  inline void SetAvailabilityZoneGroup(const char* value) { m_availabilityZoneGroupHasBeenSet = true; m_availabilityZoneGroup.assign(value); }
127 
133  inline SpotInstanceRequest& WithAvailabilityZoneGroup(const Aws::String& value) { SetAvailabilityZoneGroup(value); return *this;}
134 
140  inline SpotInstanceRequest& WithAvailabilityZoneGroup(Aws::String&& value) { SetAvailabilityZoneGroup(std::move(value)); return *this;}
141 
147  inline SpotInstanceRequest& WithAvailabilityZoneGroup(const char* value) { SetAvailabilityZoneGroup(value); return *this;}
148 
149 
153  inline int GetBlockDurationMinutes() const{ return m_blockDurationMinutes; }
154 
158  inline bool BlockDurationMinutesHasBeenSet() const { return m_blockDurationMinutesHasBeenSet; }
159 
163  inline void SetBlockDurationMinutes(int value) { m_blockDurationMinutesHasBeenSet = true; m_blockDurationMinutes = value; }
164 
168  inline SpotInstanceRequest& WithBlockDurationMinutes(int value) { SetBlockDurationMinutes(value); return *this;}
169 
170 
176  inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; }
177 
183  inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
184 
190  inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
191 
197  inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); }
198 
204  inline SpotInstanceRequest& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;}
205 
211  inline SpotInstanceRequest& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;}
212 
213 
217  inline const SpotInstanceStateFault& GetFault() const{ return m_fault; }
218 
222  inline bool FaultHasBeenSet() const { return m_faultHasBeenSet; }
223 
227  inline void SetFault(const SpotInstanceStateFault& value) { m_faultHasBeenSet = true; m_fault = value; }
228 
232  inline void SetFault(SpotInstanceStateFault&& value) { m_faultHasBeenSet = true; m_fault = std::move(value); }
233 
237  inline SpotInstanceRequest& WithFault(const SpotInstanceStateFault& value) { SetFault(value); return *this;}
238 
242  inline SpotInstanceRequest& WithFault(SpotInstanceStateFault&& value) { SetFault(std::move(value)); return *this;}
243 
244 
249  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
250 
255  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
256 
261  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
262 
267  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
268 
273  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
274 
279  inline SpotInstanceRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
280 
285  inline SpotInstanceRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
286 
291  inline SpotInstanceRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
292 
293 
298  inline const Aws::String& GetLaunchGroup() const{ return m_launchGroup; }
299 
304  inline bool LaunchGroupHasBeenSet() const { return m_launchGroupHasBeenSet; }
305 
310  inline void SetLaunchGroup(const Aws::String& value) { m_launchGroupHasBeenSet = true; m_launchGroup = value; }
311 
316  inline void SetLaunchGroup(Aws::String&& value) { m_launchGroupHasBeenSet = true; m_launchGroup = std::move(value); }
317 
322  inline void SetLaunchGroup(const char* value) { m_launchGroupHasBeenSet = true; m_launchGroup.assign(value); }
323 
328  inline SpotInstanceRequest& WithLaunchGroup(const Aws::String& value) { SetLaunchGroup(value); return *this;}
329 
334  inline SpotInstanceRequest& WithLaunchGroup(Aws::String&& value) { SetLaunchGroup(std::move(value)); return *this;}
335 
340  inline SpotInstanceRequest& WithLaunchGroup(const char* value) { SetLaunchGroup(value); return *this;}
341 
342 
346  inline const LaunchSpecification& GetLaunchSpecification() const{ return m_launchSpecification; }
347 
351  inline bool LaunchSpecificationHasBeenSet() const { return m_launchSpecificationHasBeenSet; }
352 
356  inline void SetLaunchSpecification(const LaunchSpecification& value) { m_launchSpecificationHasBeenSet = true; m_launchSpecification = value; }
357 
361  inline void SetLaunchSpecification(LaunchSpecification&& value) { m_launchSpecificationHasBeenSet = true; m_launchSpecification = std::move(value); }
362 
366  inline SpotInstanceRequest& WithLaunchSpecification(const LaunchSpecification& value) { SetLaunchSpecification(value); return *this;}
367 
371  inline SpotInstanceRequest& WithLaunchSpecification(LaunchSpecification&& value) { SetLaunchSpecification(std::move(value)); return *this;}
372 
373 
377  inline const Aws::String& GetLaunchedAvailabilityZone() const{ return m_launchedAvailabilityZone; }
378 
382  inline bool LaunchedAvailabilityZoneHasBeenSet() const { return m_launchedAvailabilityZoneHasBeenSet; }
383 
387  inline void SetLaunchedAvailabilityZone(const Aws::String& value) { m_launchedAvailabilityZoneHasBeenSet = true; m_launchedAvailabilityZone = value; }
388 
392  inline void SetLaunchedAvailabilityZone(Aws::String&& value) { m_launchedAvailabilityZoneHasBeenSet = true; m_launchedAvailabilityZone = std::move(value); }
393 
397  inline void SetLaunchedAvailabilityZone(const char* value) { m_launchedAvailabilityZoneHasBeenSet = true; m_launchedAvailabilityZone.assign(value); }
398 
402  inline SpotInstanceRequest& WithLaunchedAvailabilityZone(const Aws::String& value) { SetLaunchedAvailabilityZone(value); return *this;}
403 
407  inline SpotInstanceRequest& WithLaunchedAvailabilityZone(Aws::String&& value) { SetLaunchedAvailabilityZone(std::move(value)); return *this;}
408 
412  inline SpotInstanceRequest& WithLaunchedAvailabilityZone(const char* value) { SetLaunchedAvailabilityZone(value); return *this;}
413 
414 
418  inline const RIProductDescription& GetProductDescription() const{ return m_productDescription; }
419 
423  inline bool ProductDescriptionHasBeenSet() const { return m_productDescriptionHasBeenSet; }
424 
428  inline void SetProductDescription(const RIProductDescription& value) { m_productDescriptionHasBeenSet = true; m_productDescription = value; }
429 
433  inline void SetProductDescription(RIProductDescription&& value) { m_productDescriptionHasBeenSet = true; m_productDescription = std::move(value); }
434 
438  inline SpotInstanceRequest& WithProductDescription(const RIProductDescription& value) { SetProductDescription(value); return *this;}
439 
443  inline SpotInstanceRequest& WithProductDescription(RIProductDescription&& value) { SetProductDescription(std::move(value)); return *this;}
444 
445 
449  inline const Aws::String& GetSpotInstanceRequestId() const{ return m_spotInstanceRequestId; }
450 
454  inline bool SpotInstanceRequestIdHasBeenSet() const { return m_spotInstanceRequestIdHasBeenSet; }
455 
459  inline void SetSpotInstanceRequestId(const Aws::String& value) { m_spotInstanceRequestIdHasBeenSet = true; m_spotInstanceRequestId = value; }
460 
464  inline void SetSpotInstanceRequestId(Aws::String&& value) { m_spotInstanceRequestIdHasBeenSet = true; m_spotInstanceRequestId = std::move(value); }
465 
469  inline void SetSpotInstanceRequestId(const char* value) { m_spotInstanceRequestIdHasBeenSet = true; m_spotInstanceRequestId.assign(value); }
470 
474  inline SpotInstanceRequest& WithSpotInstanceRequestId(const Aws::String& value) { SetSpotInstanceRequestId(value); return *this;}
475 
479  inline SpotInstanceRequest& WithSpotInstanceRequestId(Aws::String&& value) { SetSpotInstanceRequestId(std::move(value)); return *this;}
480 
484  inline SpotInstanceRequest& WithSpotInstanceRequestId(const char* value) { SetSpotInstanceRequestId(value); return *this;}
485 
486 
491  inline const Aws::String& GetSpotPrice() const{ return m_spotPrice; }
492 
497  inline bool SpotPriceHasBeenSet() const { return m_spotPriceHasBeenSet; }
498 
503  inline void SetSpotPrice(const Aws::String& value) { m_spotPriceHasBeenSet = true; m_spotPrice = value; }
504 
509  inline void SetSpotPrice(Aws::String&& value) { m_spotPriceHasBeenSet = true; m_spotPrice = std::move(value); }
510 
515  inline void SetSpotPrice(const char* value) { m_spotPriceHasBeenSet = true; m_spotPrice.assign(value); }
516 
521  inline SpotInstanceRequest& WithSpotPrice(const Aws::String& value) { SetSpotPrice(value); return *this;}
522 
527  inline SpotInstanceRequest& WithSpotPrice(Aws::String&& value) { SetSpotPrice(std::move(value)); return *this;}
528 
533  inline SpotInstanceRequest& WithSpotPrice(const char* value) { SetSpotPrice(value); return *this;}
534 
535 
542  inline const SpotInstanceState& GetState() const{ return m_state; }
543 
550  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
551 
558  inline void SetState(const SpotInstanceState& value) { m_stateHasBeenSet = true; m_state = value; }
559 
566  inline void SetState(SpotInstanceState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
567 
574  inline SpotInstanceRequest& WithState(const SpotInstanceState& value) { SetState(value); return *this;}
575 
582  inline SpotInstanceRequest& WithState(SpotInstanceState&& value) { SetState(std::move(value)); return *this;}
583 
584 
588  inline const SpotInstanceStatus& GetStatus() const{ return m_status; }
589 
593  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
594 
598  inline void SetStatus(const SpotInstanceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
599 
603  inline void SetStatus(SpotInstanceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
604 
608  inline SpotInstanceRequest& WithStatus(const SpotInstanceStatus& value) { SetStatus(value); return *this;}
609 
613  inline SpotInstanceRequest& WithStatus(SpotInstanceStatus&& value) { SetStatus(std::move(value)); return *this;}
614 
615 
619  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
620 
624  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
625 
629  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
630 
634  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
635 
639  inline SpotInstanceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
640 
644  inline SpotInstanceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
645 
649  inline SpotInstanceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
650 
654  inline SpotInstanceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
655 
656 
660  inline const SpotInstanceType& GetType() const{ return m_type; }
661 
665  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
666 
670  inline void SetType(const SpotInstanceType& value) { m_typeHasBeenSet = true; m_type = value; }
671 
675  inline void SetType(SpotInstanceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
676 
680  inline SpotInstanceRequest& WithType(const SpotInstanceType& value) { SetType(value); return *this;}
681 
685  inline SpotInstanceRequest& WithType(SpotInstanceType&& value) { SetType(std::move(value)); return *this;}
686 
687 
693  inline const Aws::Utils::DateTime& GetValidFrom() const{ return m_validFrom; }
694 
700  inline bool ValidFromHasBeenSet() const { return m_validFromHasBeenSet; }
701 
707  inline void SetValidFrom(const Aws::Utils::DateTime& value) { m_validFromHasBeenSet = true; m_validFrom = value; }
708 
714  inline void SetValidFrom(Aws::Utils::DateTime&& value) { m_validFromHasBeenSet = true; m_validFrom = std::move(value); }
715 
721  inline SpotInstanceRequest& WithValidFrom(const Aws::Utils::DateTime& value) { SetValidFrom(value); return *this;}
722 
728  inline SpotInstanceRequest& WithValidFrom(Aws::Utils::DateTime&& value) { SetValidFrom(std::move(value)); return *this;}
729 
730 
741  inline const Aws::Utils::DateTime& GetValidUntil() const{ return m_validUntil; }
742 
753  inline bool ValidUntilHasBeenSet() const { return m_validUntilHasBeenSet; }
754 
765  inline void SetValidUntil(const Aws::Utils::DateTime& value) { m_validUntilHasBeenSet = true; m_validUntil = value; }
766 
777  inline void SetValidUntil(Aws::Utils::DateTime&& value) { m_validUntilHasBeenSet = true; m_validUntil = std::move(value); }
778 
789  inline SpotInstanceRequest& WithValidUntil(const Aws::Utils::DateTime& value) { SetValidUntil(value); return *this;}
790 
801  inline SpotInstanceRequest& WithValidUntil(Aws::Utils::DateTime&& value) { SetValidUntil(std::move(value)); return *this;}
802 
803 
807  inline const InstanceInterruptionBehavior& GetInstanceInterruptionBehavior() const{ return m_instanceInterruptionBehavior; }
808 
812  inline bool InstanceInterruptionBehaviorHasBeenSet() const { return m_instanceInterruptionBehaviorHasBeenSet; }
813 
817  inline void SetInstanceInterruptionBehavior(const InstanceInterruptionBehavior& value) { m_instanceInterruptionBehaviorHasBeenSet = true; m_instanceInterruptionBehavior = value; }
818 
822  inline void SetInstanceInterruptionBehavior(InstanceInterruptionBehavior&& value) { m_instanceInterruptionBehaviorHasBeenSet = true; m_instanceInterruptionBehavior = std::move(value); }
823 
827  inline SpotInstanceRequest& WithInstanceInterruptionBehavior(const InstanceInterruptionBehavior& value) { SetInstanceInterruptionBehavior(value); return *this;}
828 
832  inline SpotInstanceRequest& WithInstanceInterruptionBehavior(InstanceInterruptionBehavior&& value) { SetInstanceInterruptionBehavior(std::move(value)); return *this;}
833 
834  private:
835 
836  Aws::String m_actualBlockHourlyPrice;
837  bool m_actualBlockHourlyPriceHasBeenSet;
838 
839  Aws::String m_availabilityZoneGroup;
840  bool m_availabilityZoneGroupHasBeenSet;
841 
842  int m_blockDurationMinutes;
843  bool m_blockDurationMinutesHasBeenSet;
844 
845  Aws::Utils::DateTime m_createTime;
846  bool m_createTimeHasBeenSet;
847 
848  SpotInstanceStateFault m_fault;
849  bool m_faultHasBeenSet;
850 
851  Aws::String m_instanceId;
852  bool m_instanceIdHasBeenSet;
853 
854  Aws::String m_launchGroup;
855  bool m_launchGroupHasBeenSet;
856 
857  LaunchSpecification m_launchSpecification;
858  bool m_launchSpecificationHasBeenSet;
859 
860  Aws::String m_launchedAvailabilityZone;
861  bool m_launchedAvailabilityZoneHasBeenSet;
862 
863  RIProductDescription m_productDescription;
864  bool m_productDescriptionHasBeenSet;
865 
866  Aws::String m_spotInstanceRequestId;
867  bool m_spotInstanceRequestIdHasBeenSet;
868 
869  Aws::String m_spotPrice;
870  bool m_spotPriceHasBeenSet;
871 
872  SpotInstanceState m_state;
873  bool m_stateHasBeenSet;
874 
875  SpotInstanceStatus m_status;
876  bool m_statusHasBeenSet;
877 
878  Aws::Vector<Tag> m_tags;
879  bool m_tagsHasBeenSet;
880 
881  SpotInstanceType m_type;
882  bool m_typeHasBeenSet;
883 
884  Aws::Utils::DateTime m_validFrom;
885  bool m_validFromHasBeenSet;
886 
887  Aws::Utils::DateTime m_validUntil;
888  bool m_validUntilHasBeenSet;
889 
890  InstanceInterruptionBehavior m_instanceInterruptionBehavior;
891  bool m_instanceInterruptionBehaviorHasBeenSet;
892  };
893 
894 } // namespace Model
895 } // namespace EC2
896 } // namespace Aws
Aws::EC2::Model::SpotInstanceRequest::WithType
SpotInstanceRequest & WithType(const SpotInstanceType &value)
Definition: SpotInstanceRequest.h:680
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EC2::Model::SpotInstanceRequest::LaunchSpecificationHasBeenSet
bool LaunchSpecificationHasBeenSet() const
Definition: SpotInstanceRequest.h:351
Aws::EC2::Model::SpotInstanceRequest::operator=
SpotInstanceRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::SpotInstanceRequest::GetProductDescription
const RIProductDescription & GetProductDescription() const
Definition: SpotInstanceRequest.h:418
Aws::EC2::Model::InstanceInterruptionBehavior
InstanceInterruptionBehavior
Definition: InstanceInterruptionBehavior.h:17
Aws::EC2::Model::SpotInstanceRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: SpotInstanceRequest.h:255
Aws::EC2::Model::SpotInstanceRequest::SetAvailabilityZoneGroup
void SetAvailabilityZoneGroup(const char *value)
Definition: SpotInstanceRequest.h:126
Aws::EC2::Model::SpotInstanceRequest::FaultHasBeenSet
bool FaultHasBeenSet() const
Definition: SpotInstanceRequest.h:222
Aws::EC2::Model::SpotInstanceRequest::SetFault
void SetFault(const SpotInstanceStateFault &value)
Definition: SpotInstanceRequest.h:227
Aws::EC2::Model::SpotInstanceRequest::WithInstanceId
SpotInstanceRequest & WithInstanceId(const Aws::String &value)
Definition: SpotInstanceRequest.h:279
Aws::EC2::Model::SpotInstanceRequest::WithFault
SpotInstanceRequest & WithFault(SpotInstanceStateFault &&value)
Definition: SpotInstanceRequest.h:242
Aws::EC2::Model::SpotInstanceRequest::WithActualBlockHourlyPrice
SpotInstanceRequest & WithActualBlockHourlyPrice(Aws::String &&value)
Definition: SpotInstanceRequest.h:85
Aws::EC2::Model::SpotInstanceRequest::SetValidUntil
void SetValidUntil(Aws::Utils::DateTime &&value)
Definition: SpotInstanceRequest.h:777
Aws::EC2::Model::SpotInstanceRequest::SetType
void SetType(SpotInstanceType &&value)
Definition: SpotInstanceRequest.h:675
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::SpotInstanceRequest::SetLaunchSpecification
void SetLaunchSpecification(LaunchSpecification &&value)
Definition: SpotInstanceRequest.h:361
Aws::EC2::Model::SpotInstanceRequest::SetFault
void SetFault(SpotInstanceStateFault &&value)
Definition: SpotInstanceRequest.h:232
Aws::EC2::Model::SpotInstanceRequest::WithStatus
SpotInstanceRequest & WithStatus(SpotInstanceStatus &&value)
Definition: SpotInstanceRequest.h:613
Aws::EC2::Model::SpotInstanceRequest::WithAvailabilityZoneGroup
SpotInstanceRequest & WithAvailabilityZoneGroup(const Aws::String &value)
Definition: SpotInstanceRequest.h:133
Aws::EC2::Model::SpotInstanceRequest::WithInstanceInterruptionBehavior
SpotInstanceRequest & WithInstanceInterruptionBehavior(InstanceInterruptionBehavior &&value)
Definition: SpotInstanceRequest.h:832
Aws::EC2::Model::SpotInstanceRequest::WithLaunchGroup
SpotInstanceRequest & WithLaunchGroup(const Aws::String &value)
Definition: SpotInstanceRequest.h:328
Aws::EC2::Model::SpotInstanceRequest::SetLaunchGroup
void SetLaunchGroup(const Aws::String &value)
Definition: SpotInstanceRequest.h:310
Aws::EC2::Model::SpotInstanceRequest::WithState
SpotInstanceRequest & WithState(const SpotInstanceState &value)
Definition: SpotInstanceRequest.h:574
SpotInstanceStateFault.h
Aws::EC2::Model::SpotInstanceRequest
Definition: SpotInstanceRequest.h:42
Aws::EC2::Model::SpotInstanceRequest::SpotInstanceRequest
SpotInstanceRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::SpotInstanceRequest::GetLaunchedAvailabilityZone
const Aws::String & GetLaunchedAvailabilityZone() const
Definition: SpotInstanceRequest.h:377
Aws::EC2::Model::SpotInstanceRequest::SetActualBlockHourlyPrice
void SetActualBlockHourlyPrice(Aws::String &&value)
Definition: SpotInstanceRequest.h:70
Aws::EC2::Model::SpotInstanceRequest::WithCreateTime
SpotInstanceRequest & WithCreateTime(Aws::Utils::DateTime &&value)
Definition: SpotInstanceRequest.h:211
DateTime.h
Aws::EC2::Model::SpotInstanceRequest::WithLaunchGroup
SpotInstanceRequest & WithLaunchGroup(Aws::String &&value)
Definition: SpotInstanceRequest.h:334
SpotInstanceState.h
Aws::EC2::Model::SpotInstanceRequest::GetCreateTime
const Aws::Utils::DateTime & GetCreateTime() const
Definition: SpotInstanceRequest.h:176
Aws::EC2::Model::SpotInstanceRequest::SetLaunchedAvailabilityZone
void SetLaunchedAvailabilityZone(const Aws::String &value)
Definition: SpotInstanceRequest.h:387
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::SpotInstanceRequest::WithSpotInstanceRequestId
SpotInstanceRequest & WithSpotInstanceRequestId(const char *value)
Definition: SpotInstanceRequest.h:484
Aws::EC2::Model::SpotInstanceRequest::WithFault
SpotInstanceRequest & WithFault(const SpotInstanceStateFault &value)
Definition: SpotInstanceRequest.h:237
Aws::EC2::Model::SpotInstanceRequest::WithLaunchedAvailabilityZone
SpotInstanceRequest & WithLaunchedAvailabilityZone(const Aws::String &value)
Definition: SpotInstanceRequest.h:402
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::SpotInstanceRequest::SetActualBlockHourlyPrice
void SetActualBlockHourlyPrice(const char *value)
Definition: SpotInstanceRequest.h:75
Aws::EC2::Model::SpotInstanceRequest::GetSpotInstanceRequestId
const Aws::String & GetSpotInstanceRequestId() const
Definition: SpotInstanceRequest.h:449
Aws::EC2::Model::SpotInstanceRequest::WithLaunchSpecification
SpotInstanceRequest & WithLaunchSpecification(const LaunchSpecification &value)
Definition: SpotInstanceRequest.h:366
AWSStreamFwd.h
SpotInstanceStatus.h
Aws::EC2::Model::SpotInstanceRequest::SpotInstanceRequest
SpotInstanceRequest()
Aws::EC2::Model::SpotInstanceRequest::SetLaunchGroup
void SetLaunchGroup(const char *value)
Definition: SpotInstanceRequest.h:322
Aws::EC2::Model::SpotInstanceRequest::WithActualBlockHourlyPrice
SpotInstanceRequest & WithActualBlockHourlyPrice(const Aws::String &value)
Definition: SpotInstanceRequest.h:80
Aws::EC2::Model::SpotInstanceRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: SpotInstanceRequest.h:267
Aws::EC2::Model::SpotInstanceRequest::WithSpotInstanceRequestId
SpotInstanceRequest & WithSpotInstanceRequestId(Aws::String &&value)
Definition: SpotInstanceRequest.h:479
AWSVector.h
Tag.h
Aws::EC2::Model::SpotInstanceRequest::WithValidUntil
SpotInstanceRequest & WithValidUntil(const Aws::Utils::DateTime &value)
Definition: SpotInstanceRequest.h:789
Aws::EC2::Model::SpotInstanceRequest::WithAvailabilityZoneGroup
SpotInstanceRequest & WithAvailabilityZoneGroup(Aws::String &&value)
Definition: SpotInstanceRequest.h:140
Aws::EC2::Model::SpotInstanceRequest::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::SpotInstanceRequest::GetActualBlockHourlyPrice
const Aws::String & GetActualBlockHourlyPrice() const
Definition: SpotInstanceRequest.h:55
Aws::EC2::Model::SpotInstanceRequest::WithProductDescription
SpotInstanceRequest & WithProductDescription(RIProductDescription &&value)
Definition: SpotInstanceRequest.h:443
Aws::EC2::Model::SpotInstanceRequest::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::SpotInstanceRequest::WithProductDescription
SpotInstanceRequest & WithProductDescription(const RIProductDescription &value)
Definition: SpotInstanceRequest.h:438
Aws::EC2::Model::SpotInstanceRequest::GetAvailabilityZoneGroup
const Aws::String & GetAvailabilityZoneGroup() const
Definition: SpotInstanceRequest.h:98
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::SpotInstanceRequest::ActualBlockHourlyPriceHasBeenSet
bool ActualBlockHourlyPriceHasBeenSet() const
Definition: SpotInstanceRequest.h:60
Aws::EC2::Model::SpotInstanceRequest::WithLaunchSpecification
SpotInstanceRequest & WithLaunchSpecification(LaunchSpecification &&value)
Definition: SpotInstanceRequest.h:371
Aws::EC2::Model::SpotInstanceStateFault
Definition: SpotInstanceStateFault.h:32
Aws::EC2::Model::SpotInstanceState
SpotInstanceState
Definition: SpotInstanceState.h:17
Aws::EC2::Model::SpotInstanceRequest::GetLaunchGroup
const Aws::String & GetLaunchGroup() const
Definition: SpotInstanceRequest.h:298
Aws::EC2::Model::SpotInstanceRequest::SetProductDescription
void SetProductDescription(const RIProductDescription &value)
Definition: SpotInstanceRequest.h:428
Aws::EC2::Model::SpotInstanceRequest::SetSpotPrice
void SetSpotPrice(const Aws::String &value)
Definition: SpotInstanceRequest.h:503
Aws::EC2::Model::SpotInstanceRequest::SetAvailabilityZoneGroup
void SetAvailabilityZoneGroup(const Aws::String &value)
Definition: SpotInstanceRequest.h:112
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::SpotInstanceRequest::SetLaunchGroup
void SetLaunchGroup(Aws::String &&value)
Definition: SpotInstanceRequest.h:316
Aws::EC2::Model::SpotInstanceRequest::WithStatus
SpotInstanceRequest & WithStatus(const SpotInstanceStatus &value)
Definition: SpotInstanceRequest.h:608
Aws::EC2::Model::SpotInstanceRequest::SetStatus
void SetStatus(const SpotInstanceStatus &value)
Definition: SpotInstanceRequest.h:598
Aws::EC2::Model::SpotInstanceRequest::GetBlockDurationMinutes
int GetBlockDurationMinutes() const
Definition: SpotInstanceRequest.h:153
Aws::EC2::Model::SpotInstanceRequest::WithActualBlockHourlyPrice
SpotInstanceRequest & WithActualBlockHourlyPrice(const char *value)
Definition: SpotInstanceRequest.h:90
Aws::EC2::Model::SpotInstanceRequest::SetType
void SetType(const SpotInstanceType &value)
Definition: SpotInstanceRequest.h:670
Aws::EC2::Model::SpotInstanceRequest::SetStatus
void SetStatus(SpotInstanceStatus &&value)
Definition: SpotInstanceRequest.h:603
Aws::EC2::Model::SpotInstanceType
SpotInstanceType
Definition: SpotInstanceType.h:17
Aws::EC2::Model::SpotInstanceRequest::WithState
SpotInstanceRequest & WithState(SpotInstanceState &&value)
Definition: SpotInstanceRequest.h:582
Aws::EC2::Model::SpotInstanceRequest::AddTags
SpotInstanceRequest & AddTags(Tag &&value)
Definition: SpotInstanceRequest.h:654
Aws::EC2::Model::SpotInstanceRequest::SetSpotInstanceRequestId
void SetSpotInstanceRequestId(const Aws::String &value)
Definition: SpotInstanceRequest.h:459
Aws::EC2::Model::SpotInstanceRequest::GetStatus
const SpotInstanceStatus & GetStatus() const
Definition: SpotInstanceRequest.h:588
Aws::EC2::Model::SpotInstanceRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: SpotInstanceRequest.h:634
Aws::EC2::Model::SpotInstanceRequest::GetValidFrom
const Aws::Utils::DateTime & GetValidFrom() const
Definition: SpotInstanceRequest.h:693
InstanceInterruptionBehavior.h
AWSString.h
Aws::EC2::Model::SpotInstanceRequest::WithBlockDurationMinutes
SpotInstanceRequest & WithBlockDurationMinutes(int value)
Definition: SpotInstanceRequest.h:168
Aws::EC2::Model::SpotInstanceRequest::SetProductDescription
void SetProductDescription(RIProductDescription &&value)
Definition: SpotInstanceRequest.h:433
Aws::EC2::Model::SpotInstanceRequest::WithType
SpotInstanceRequest & WithType(SpotInstanceType &&value)
Definition: SpotInstanceRequest.h:685
Aws::EC2::Model::SpotInstanceRequest::SetSpotPrice
void SetSpotPrice(const char *value)
Definition: SpotInstanceRequest.h:515
Aws::EC2::Model::SpotInstanceRequest::SetValidFrom
void SetValidFrom(Aws::Utils::DateTime &&value)
Definition: SpotInstanceRequest.h:714
Aws::EC2::Model::SpotInstanceRequest::WithSpotPrice
SpotInstanceRequest & WithSpotPrice(Aws::String &&value)
Definition: SpotInstanceRequest.h:527
Aws::EC2::Model::SpotInstanceRequest::WithCreateTime
SpotInstanceRequest & WithCreateTime(const Aws::Utils::DateTime &value)
Definition: SpotInstanceRequest.h:204
Aws::EC2::Model::SpotInstanceRequest::GetType
const SpotInstanceType & GetType() const
Definition: SpotInstanceRequest.h:660
Aws::EC2::Model::SpotInstanceRequest::GetFault
const SpotInstanceStateFault & GetFault() const
Definition: SpotInstanceRequest.h:217
Aws::EC2::Model::SpotInstanceRequest::GetInstanceInterruptionBehavior
const InstanceInterruptionBehavior & GetInstanceInterruptionBehavior() const
Definition: SpotInstanceRequest.h:807
Aws::EC2::Model::SpotInstanceRequest::WithSpotInstanceRequestId
SpotInstanceRequest & WithSpotInstanceRequestId(const Aws::String &value)
Definition: SpotInstanceRequest.h:474
Aws::EC2::Model::SpotInstanceRequest::GetSpotPrice
const Aws::String & GetSpotPrice() const
Definition: SpotInstanceRequest.h:491
RIProductDescription.h
SpotInstanceType.h
Aws::EC2::Model::SpotInstanceRequest::SetSpotInstanceRequestId
void SetSpotInstanceRequestId(Aws::String &&value)
Definition: SpotInstanceRequest.h:464
Aws::EC2::Model::SpotInstanceRequest::SetActualBlockHourlyPrice
void SetActualBlockHourlyPrice(const Aws::String &value)
Definition: SpotInstanceRequest.h:65
Aws::EC2::Model::SpotInstanceRequest::SetState
void SetState(SpotInstanceState &&value)
Definition: SpotInstanceRequest.h:566
Aws::EC2::Model::SpotInstanceRequest::SetCreateTime
void SetCreateTime(Aws::Utils::DateTime &&value)
Definition: SpotInstanceRequest.h:197
Aws::EC2::Model::SpotInstanceRequest::WithValidUntil
SpotInstanceRequest & WithValidUntil(Aws::Utils::DateTime &&value)
Definition: SpotInstanceRequest.h:801
Aws::EC2::Model::SpotInstanceRequest::WithInstanceId
SpotInstanceRequest & WithInstanceId(const char *value)
Definition: SpotInstanceRequest.h:291
Aws::EC2::Model::SpotInstanceRequest::WithValidFrom
SpotInstanceRequest & WithValidFrom(Aws::Utils::DateTime &&value)
Definition: SpotInstanceRequest.h:728
Aws::EC2::Model::SpotInstanceRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: SpotInstanceRequest.h:273
Aws::EC2::Model::SpotInstanceRequest::WithInstanceInterruptionBehavior
SpotInstanceRequest & WithInstanceInterruptionBehavior(const InstanceInterruptionBehavior &value)
Definition: SpotInstanceRequest.h:827
Aws::EC2::Model::SpotInstanceRequest::BlockDurationMinutesHasBeenSet
bool BlockDurationMinutesHasBeenSet() const
Definition: SpotInstanceRequest.h:158
Aws::EC2::Model::SpotInstanceRequest::SetBlockDurationMinutes
void SetBlockDurationMinutes(int value)
Definition: SpotInstanceRequest.h:163
Aws::EC2::Model::SpotInstanceRequest::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: SpotInstanceRequest.h:665
Aws::EC2::Model::SpotInstanceRequest::SetLaunchSpecification
void SetLaunchSpecification(const LaunchSpecification &value)
Definition: SpotInstanceRequest.h:356
Aws::EC2::Model::SpotInstanceRequest::WithSpotPrice
SpotInstanceRequest & WithSpotPrice(const char *value)
Definition: SpotInstanceRequest.h:533
Aws::EC2::Model::SpotInstanceRequest::WithInstanceId
SpotInstanceRequest & WithInstanceId(Aws::String &&value)
Definition: SpotInstanceRequest.h:285
Aws::EC2::Model::SpotInstanceRequest::SetValidUntil
void SetValidUntil(const Aws::Utils::DateTime &value)
Definition: SpotInstanceRequest.h:765
Aws::EC2::Model::SpotInstanceRequest::SetLaunchedAvailabilityZone
void SetLaunchedAvailabilityZone(const char *value)
Definition: SpotInstanceRequest.h:397
Aws::EC2::Model::SpotInstanceRequest::WithLaunchedAvailabilityZone
SpotInstanceRequest & WithLaunchedAvailabilityZone(Aws::String &&value)
Definition: SpotInstanceRequest.h:407
Aws::EC2::Model::SpotInstanceRequest::SetValidFrom
void SetValidFrom(const Aws::Utils::DateTime &value)
Definition: SpotInstanceRequest.h:707
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::SpotInstanceRequest::LaunchGroupHasBeenSet
bool LaunchGroupHasBeenSet() const
Definition: SpotInstanceRequest.h:304
Aws::EC2::Model::SpotInstanceRequest::ValidUntilHasBeenSet
bool ValidUntilHasBeenSet() const
Definition: SpotInstanceRequest.h:753
Aws::EC2::Model::SpotInstanceRequest::WithTags
SpotInstanceRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: SpotInstanceRequest.h:639
Aws::EC2::Model::SpotInstanceRequest::WithTags
SpotInstanceRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: SpotInstanceRequest.h:644
Aws::EC2::Model::SpotInstanceRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: SpotInstanceRequest.h:249
Aws::EC2::Model::SpotInstanceRequest::ProductDescriptionHasBeenSet
bool ProductDescriptionHasBeenSet() const
Definition: SpotInstanceRequest.h:423
Aws::EC2::Model::SpotInstanceRequest::SetState
void SetState(const SpotInstanceState &value)
Definition: SpotInstanceRequest.h:558
Aws::EC2::Model::SpotInstanceRequest::AddTags
SpotInstanceRequest & AddTags(const Tag &value)
Definition: SpotInstanceRequest.h:649
Aws::EC2::Model::SpotInstanceRequest::SetInstanceInterruptionBehavior
void SetInstanceInterruptionBehavior(InstanceInterruptionBehavior &&value)
Definition: SpotInstanceRequest.h:822
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::SpotInstanceRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: SpotInstanceRequest.h:261
Aws::EC2::Model::SpotInstanceRequest::WithLaunchGroup
SpotInstanceRequest & WithLaunchGroup(const char *value)
Definition: SpotInstanceRequest.h:340
Aws::EC2::Model::SpotInstanceRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: SpotInstanceRequest.h:619
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::SpotInstanceStatus
Definition: SpotInstanceStatus.h:34
Aws::EC2::Model::SpotInstanceRequest::StateHasBeenSet
bool StateHasBeenSet() const
Definition: SpotInstanceRequest.h:550
Aws::EC2::Model::SpotInstanceRequest::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: SpotInstanceRequest.h:593
Aws::EC2::Model::SpotInstanceRequest::GetValidUntil
const Aws::Utils::DateTime & GetValidUntil() const
Definition: SpotInstanceRequest.h:741
Aws::EC2::Model::RIProductDescription
RIProductDescription
Definition: RIProductDescription.h:17
Aws::EC2::Model::SpotInstanceRequest::SetSpotPrice
void SetSpotPrice(Aws::String &&value)
Definition: SpotInstanceRequest.h:509
Aws::EC2::Model::SpotInstanceRequest::SetLaunchedAvailabilityZone
void SetLaunchedAvailabilityZone(Aws::String &&value)
Definition: SpotInstanceRequest.h:392
Aws::EC2::Model::SpotInstanceRequest::SetSpotInstanceRequestId
void SetSpotInstanceRequestId(const char *value)
Definition: SpotInstanceRequest.h:469
Aws::EC2::Model::SpotInstanceRequest::GetState
const SpotInstanceState & GetState() const
Definition: SpotInstanceRequest.h:542
Aws::EC2::Model::SpotInstanceRequest::WithSpotPrice
SpotInstanceRequest & WithSpotPrice(const Aws::String &value)
Definition: SpotInstanceRequest.h:521
Aws::EC2::Model::SpotInstanceRequest::CreateTimeHasBeenSet
bool CreateTimeHasBeenSet() const
Definition: SpotInstanceRequest.h:183
Aws::EC2::Model::SpotInstanceRequest::InstanceInterruptionBehaviorHasBeenSet
bool InstanceInterruptionBehaviorHasBeenSet() const
Definition: SpotInstanceRequest.h:812
Aws::EC2::Model::SpotInstanceRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: SpotInstanceRequest.h:629
Aws::EC2::Model::SpotInstanceRequest::LaunchedAvailabilityZoneHasBeenSet
bool LaunchedAvailabilityZoneHasBeenSet() const
Definition: SpotInstanceRequest.h:382
Aws::EC2::Model::SpotInstanceRequest::SetInstanceInterruptionBehavior
void SetInstanceInterruptionBehavior(const InstanceInterruptionBehavior &value)
Definition: SpotInstanceRequest.h:817
EC2_EXPORTS.h
Aws::EC2::Model::SpotInstanceRequest::SpotPriceHasBeenSet
bool SpotPriceHasBeenSet() const
Definition: SpotInstanceRequest.h:497
Aws::EC2::Model::SpotInstanceRequest::AvailabilityZoneGroupHasBeenSet
bool AvailabilityZoneGroupHasBeenSet() const
Definition: SpotInstanceRequest.h:105
Aws::EC2::Model::SpotInstanceRequest::SetCreateTime
void SetCreateTime(const Aws::Utils::DateTime &value)
Definition: SpotInstanceRequest.h:190
Aws::EC2::Model::SpotInstanceRequest::SpotInstanceRequestIdHasBeenSet
bool SpotInstanceRequestIdHasBeenSet() const
Definition: SpotInstanceRequest.h:454
Aws::EC2::Model::SpotInstanceRequest::WithLaunchedAvailabilityZone
SpotInstanceRequest & WithLaunchedAvailabilityZone(const char *value)
Definition: SpotInstanceRequest.h:412
Aws::EC2::Model::SpotInstanceRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: SpotInstanceRequest.h:624
Aws::EC2::Model::SpotInstanceRequest::SetAvailabilityZoneGroup
void SetAvailabilityZoneGroup(Aws::String &&value)
Definition: SpotInstanceRequest.h:119
Aws::EC2::Model::LaunchSpecification
Definition: LaunchSpecification.h:41
LaunchSpecification.h
Aws::EC2::Model::SpotInstanceRequest::WithValidFrom
SpotInstanceRequest & WithValidFrom(const Aws::Utils::DateTime &value)
Definition: SpotInstanceRequest.h:721
Aws::EC2::Model::SpotInstanceRequest::ValidFromHasBeenSet
bool ValidFromHasBeenSet() const
Definition: SpotInstanceRequest.h:700
Aws::EC2::Model::SpotInstanceRequest::WithAvailabilityZoneGroup
SpotInstanceRequest & WithAvailabilityZoneGroup(const char *value)
Definition: SpotInstanceRequest.h:147
Aws::EC2::Model::SpotInstanceRequest::GetLaunchSpecification
const LaunchSpecification & GetLaunchSpecification() const
Definition: SpotInstanceRequest.h:346