AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SpotPrice.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/InstanceType.h>
11#include <aws/ec2/model/RIProductDescription.h>
12#include <aws/core/utils/DateTime.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
40 {
41 public:
42 AWS_EC2_API SpotPrice();
43 AWS_EC2_API SpotPrice(const Aws::Utils::Xml::XmlNode& xmlNode);
44 AWS_EC2_API SpotPrice& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45
46 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
48
49
51
54 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
55 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
56 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
57 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
58 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
59 inline SpotPrice& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
60 inline SpotPrice& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
61 inline SpotPrice& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
63
65
68 inline const InstanceType& GetInstanceType() const{ return m_instanceType; }
69 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
70 inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
71 inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
72 inline SpotPrice& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;}
73 inline SpotPrice& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
75
77
80 inline const RIProductDescription& GetProductDescription() const{ return m_productDescription; }
81 inline bool ProductDescriptionHasBeenSet() const { return m_productDescriptionHasBeenSet; }
82 inline void SetProductDescription(const RIProductDescription& value) { m_productDescriptionHasBeenSet = true; m_productDescription = value; }
83 inline void SetProductDescription(RIProductDescription&& value) { m_productDescriptionHasBeenSet = true; m_productDescription = std::move(value); }
84 inline SpotPrice& WithProductDescription(const RIProductDescription& value) { SetProductDescription(value); return *this;}
85 inline SpotPrice& WithProductDescription(RIProductDescription&& value) { SetProductDescription(std::move(value)); return *this;}
87
89
97 inline const Aws::String& GetSpotPrice() const{ return m_spotPrice; }
98 inline bool SpotPriceHasBeenSet() const { return m_spotPriceHasBeenSet; }
99 inline void SetSpotPrice(const Aws::String& value) { m_spotPriceHasBeenSet = true; m_spotPrice = value; }
100 inline void SetSpotPrice(Aws::String&& value) { m_spotPriceHasBeenSet = true; m_spotPrice = std::move(value); }
101 inline void SetSpotPrice(const char* value) { m_spotPriceHasBeenSet = true; m_spotPrice.assign(value); }
102 inline SpotPrice& WithSpotPrice(const Aws::String& value) { SetSpotPrice(value); return *this;}
103 inline SpotPrice& WithSpotPrice(Aws::String&& value) { SetSpotPrice(std::move(value)); return *this;}
104 inline SpotPrice& WithSpotPrice(const char* value) { SetSpotPrice(value); return *this;}
106
108
112 inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
113 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
114 inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
115 inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
116 inline SpotPrice& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
117 inline SpotPrice& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
119 private:
120
121 Aws::String m_availabilityZone;
122 bool m_availabilityZoneHasBeenSet = false;
123
124 InstanceType m_instanceType;
125 bool m_instanceTypeHasBeenSet = false;
126
127 RIProductDescription m_productDescription;
128 bool m_productDescriptionHasBeenSet = false;
129
130 Aws::String m_spotPrice;
131 bool m_spotPriceHasBeenSet = false;
132
133 Aws::Utils::DateTime m_timestamp;
134 bool m_timestampHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace EC2
139} // namespace Aws
SpotPrice & WithInstanceType(const InstanceType &value)
Definition SpotPrice.h:72
const Aws::String & GetAvailabilityZone() const
Definition SpotPrice.h:54
void SetInstanceType(InstanceType &&value)
Definition SpotPrice.h:71
SpotPrice & WithAvailabilityZone(Aws::String &&value)
Definition SpotPrice.h:60
void SetAvailabilityZone(const Aws::String &value)
Definition SpotPrice.h:56
void SetAvailabilityZone(const char *value)
Definition SpotPrice.h:58
bool ProductDescriptionHasBeenSet() const
Definition SpotPrice.h:81
AWS_EC2_API SpotPrice(const Aws::Utils::Xml::XmlNode &xmlNode)
bool AvailabilityZoneHasBeenSet() const
Definition SpotPrice.h:55
AWS_EC2_API SpotPrice & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool SpotPriceHasBeenSet() const
Definition SpotPrice.h:98
void SetTimestamp(const Aws::Utils::DateTime &value)
Definition SpotPrice.h:114
void SetAvailabilityZone(Aws::String &&value)
Definition SpotPrice.h:57
SpotPrice & WithTimestamp(Aws::Utils::DateTime &&value)
Definition SpotPrice.h:117
SpotPrice & WithSpotPrice(const char *value)
Definition SpotPrice.h:104
bool InstanceTypeHasBeenSet() const
Definition SpotPrice.h:69
SpotPrice & WithTimestamp(const Aws::Utils::DateTime &value)
Definition SpotPrice.h:116
SpotPrice & WithSpotPrice(const Aws::String &value)
Definition SpotPrice.h:102
void SetTimestamp(Aws::Utils::DateTime &&value)
Definition SpotPrice.h:115
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetInstanceType(const InstanceType &value)
Definition SpotPrice.h:70
const RIProductDescription & GetProductDescription() const
Definition SpotPrice.h:80
SpotPrice & WithProductDescription(RIProductDescription &&value)
Definition SpotPrice.h:85
const Aws::String & GetSpotPrice() const
Definition SpotPrice.h:97
void SetProductDescription(RIProductDescription &&value)
Definition SpotPrice.h:83
const InstanceType & GetInstanceType() const
Definition SpotPrice.h:68
SpotPrice & WithInstanceType(InstanceType &&value)
Definition SpotPrice.h:73
void SetSpotPrice(const char *value)
Definition SpotPrice.h:101
bool TimestampHasBeenSet() const
Definition SpotPrice.h:113
void SetSpotPrice(const Aws::String &value)
Definition SpotPrice.h:99
SpotPrice & WithAvailabilityZone(const Aws::String &value)
Definition SpotPrice.h:59
SpotPrice & WithAvailabilityZone(const char *value)
Definition SpotPrice.h:61
void SetSpotPrice(Aws::String &&value)
Definition SpotPrice.h:100
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetProductDescription(const RIProductDescription &value)
Definition SpotPrice.h:82
SpotPrice & WithSpotPrice(Aws::String &&value)
Definition SpotPrice.h:103
const Aws::Utils::DateTime & GetTimestamp() const
Definition SpotPrice.h:112
SpotPrice & WithProductDescription(const RIProductDescription &value)
Definition SpotPrice.h:84
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream