AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeSpotPriceHistoryRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/ec2/model/InstanceType.h>
13#include <aws/ec2/model/Filter.h>
14#include <utility>
15
16namespace Aws
17{
18namespace EC2
19{
20namespace Model
21{
22
30 {
31 public:
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "DescribeSpotPriceHistory"; }
39
40 AWS_EC2_API Aws::String SerializePayload() const override;
41
42 protected:
43 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
44
45 public:
46
48
54 inline bool GetDryRun() const{ return m_dryRun; }
55 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
56 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
57 inline DescribeSpotPriceHistoryRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
59
61
66 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
67 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
68 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
69 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
71 inline DescribeSpotPriceHistoryRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
73
75
80 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
81 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
82 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
83 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
84 inline DescribeSpotPriceHistoryRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
85 inline DescribeSpotPriceHistoryRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
87
89
92 inline const Aws::Vector<InstanceType>& GetInstanceTypes() const{ return m_instanceTypes; }
93 inline bool InstanceTypesHasBeenSet() const { return m_instanceTypesHasBeenSet; }
94 inline void SetInstanceTypes(const Aws::Vector<InstanceType>& value) { m_instanceTypesHasBeenSet = true; m_instanceTypes = value; }
95 inline void SetInstanceTypes(Aws::Vector<InstanceType>&& value) { m_instanceTypesHasBeenSet = true; m_instanceTypes = std::move(value); }
98 inline DescribeSpotPriceHistoryRequest& AddInstanceTypes(const InstanceType& value) { m_instanceTypesHasBeenSet = true; m_instanceTypes.push_back(value); return *this; }
99 inline DescribeSpotPriceHistoryRequest& AddInstanceTypes(InstanceType&& value) { m_instanceTypesHasBeenSet = true; m_instanceTypes.push_back(std::move(value)); return *this; }
101
103
106 inline const Aws::Vector<Aws::String>& GetProductDescriptions() const{ return m_productDescriptions; }
107 inline bool ProductDescriptionsHasBeenSet() const { return m_productDescriptionsHasBeenSet; }
108 inline void SetProductDescriptions(const Aws::Vector<Aws::String>& value) { m_productDescriptionsHasBeenSet = true; m_productDescriptions = value; }
109 inline void SetProductDescriptions(Aws::Vector<Aws::String>&& value) { m_productDescriptionsHasBeenSet = true; m_productDescriptions = std::move(value); }
112 inline DescribeSpotPriceHistoryRequest& AddProductDescriptions(const Aws::String& value) { m_productDescriptionsHasBeenSet = true; m_productDescriptions.push_back(value); return *this; }
113 inline DescribeSpotPriceHistoryRequest& AddProductDescriptions(Aws::String&& value) { m_productDescriptionsHasBeenSet = true; m_productDescriptions.push_back(std::move(value)); return *this; }
114 inline DescribeSpotPriceHistoryRequest& AddProductDescriptions(const char* value) { m_productDescriptionsHasBeenSet = true; m_productDescriptions.push_back(value); return *this; }
116
118
135 inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
136 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
137 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
138 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
139 inline DescribeSpotPriceHistoryRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
140 inline DescribeSpotPriceHistoryRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
141 inline DescribeSpotPriceHistoryRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
142 inline DescribeSpotPriceHistoryRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
144
146
149 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
150 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
151 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
152 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
153 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
155 inline DescribeSpotPriceHistoryRequest& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
156 inline DescribeSpotPriceHistoryRequest& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
158
160
166 inline int GetMaxResults() const{ return m_maxResults; }
167 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
168 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
169 inline DescribeSpotPriceHistoryRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
171
173
177 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
178 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
179 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
180 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
181 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
182 inline DescribeSpotPriceHistoryRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
183 inline DescribeSpotPriceHistoryRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
184 inline DescribeSpotPriceHistoryRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
186 private:
187
188 bool m_dryRun;
189 bool m_dryRunHasBeenSet = false;
190
191 Aws::Utils::DateTime m_startTime;
192 bool m_startTimeHasBeenSet = false;
193
194 Aws::Utils::DateTime m_endTime;
195 bool m_endTimeHasBeenSet = false;
196
197 Aws::Vector<InstanceType> m_instanceTypes;
198 bool m_instanceTypesHasBeenSet = false;
199
200 Aws::Vector<Aws::String> m_productDescriptions;
201 bool m_productDescriptionsHasBeenSet = false;
202
203 Aws::Vector<Filter> m_filters;
204 bool m_filtersHasBeenSet = false;
205
206 Aws::String m_availabilityZone;
207 bool m_availabilityZoneHasBeenSet = false;
208
209 int m_maxResults;
210 bool m_maxResultsHasBeenSet = false;
211
212 Aws::String m_nextToken;
213 bool m_nextTokenHasBeenSet = false;
214 };
215
216} // namespace Model
217} // namespace EC2
218} // namespace Aws
DescribeSpotPriceHistoryRequest & WithAvailabilityZone(const Aws::String &value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeSpotPriceHistoryRequest & WithProductDescriptions(const Aws::Vector< Aws::String > &value)
DescribeSpotPriceHistoryRequest & AddFilters(Filter &&value)
const Aws::Vector< Aws::String > & GetProductDescriptions() const
DescribeSpotPriceHistoryRequest & WithAvailabilityZone(Aws::String &&value)
DescribeSpotPriceHistoryRequest & WithNextToken(const char *value)
void SetInstanceTypes(const Aws::Vector< InstanceType > &value)
DescribeSpotPriceHistoryRequest & WithFilters(Aws::Vector< Filter > &&value)
DescribeSpotPriceHistoryRequest & WithAvailabilityZone(const char *value)
void SetInstanceTypes(Aws::Vector< InstanceType > &&value)
DescribeSpotPriceHistoryRequest & AddFilters(const Filter &value)
DescribeSpotPriceHistoryRequest & AddInstanceTypes(const InstanceType &value)
DescribeSpotPriceHistoryRequest & AddProductDescriptions(Aws::String &&value)
DescribeSpotPriceHistoryRequest & AddProductDescriptions(const Aws::String &value)
DescribeSpotPriceHistoryRequest & WithInstanceTypes(Aws::Vector< InstanceType > &&value)
DescribeSpotPriceHistoryRequest & WithInstanceTypes(const Aws::Vector< InstanceType > &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeSpotPriceHistoryRequest & WithEndTime(const Aws::Utils::DateTime &value)
void SetProductDescriptions(const Aws::Vector< Aws::String > &value)
DescribeSpotPriceHistoryRequest & WithStartTime(Aws::Utils::DateTime &&value)
DescribeSpotPriceHistoryRequest & WithNextToken(Aws::String &&value)
DescribeSpotPriceHistoryRequest & AddInstanceTypes(InstanceType &&value)
DescribeSpotPriceHistoryRequest & WithProductDescriptions(Aws::Vector< Aws::String > &&value)
void SetProductDescriptions(Aws::Vector< Aws::String > &&value)
DescribeSpotPriceHistoryRequest & WithEndTime(Aws::Utils::DateTime &&value)
DescribeSpotPriceHistoryRequest & WithNextToken(const Aws::String &value)
DescribeSpotPriceHistoryRequest & WithStartTime(const Aws::Utils::DateTime &value)
DescribeSpotPriceHistoryRequest & AddProductDescriptions(const char *value)
const Aws::Vector< InstanceType > & GetInstanceTypes() const
DescribeSpotPriceHistoryRequest & WithDryRun(bool value)
DescribeSpotPriceHistoryRequest & WithMaxResults(int value)
DescribeSpotPriceHistoryRequest & WithFilters(const Aws::Vector< Filter > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector