AWS SDK for C++  1.9.67
AWS SDK for C++
DescribeHostReservationOfferingsRequest.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>
11 #include <aws/ec2/model/Filter.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "DescribeHostReservationOfferings"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
47  inline const Aws::Vector<Filter>& GetFilter() const{ return m_filter; }
48 
55  inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
56 
63  inline void SetFilter(const Aws::Vector<Filter>& value) { m_filterHasBeenSet = true; m_filter = value; }
64 
71  inline void SetFilter(Aws::Vector<Filter>&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
72 
79  inline DescribeHostReservationOfferingsRequest& WithFilter(const Aws::Vector<Filter>& value) { SetFilter(value); return *this;}
80 
87  inline DescribeHostReservationOfferingsRequest& WithFilter(Aws::Vector<Filter>&& value) { SetFilter(std::move(value)); return *this;}
88 
95  inline DescribeHostReservationOfferingsRequest& AddFilter(const Filter& value) { m_filterHasBeenSet = true; m_filter.push_back(value); return *this; }
96 
103  inline DescribeHostReservationOfferingsRequest& AddFilter(Filter&& value) { m_filterHasBeenSet = true; m_filter.push_back(std::move(value)); return *this; }
104 
105 
113  inline int GetMaxDuration() const{ return m_maxDuration; }
114 
122  inline bool MaxDurationHasBeenSet() const { return m_maxDurationHasBeenSet; }
123 
131  inline void SetMaxDuration(int value) { m_maxDurationHasBeenSet = true; m_maxDuration = value; }
132 
140  inline DescribeHostReservationOfferingsRequest& WithMaxDuration(int value) { SetMaxDuration(value); return *this;}
141 
142 
150  inline int GetMaxResults() const{ return m_maxResults; }
151 
159  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
160 
168  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
169 
177  inline DescribeHostReservationOfferingsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
178 
179 
187  inline int GetMinDuration() const{ return m_minDuration; }
188 
196  inline bool MinDurationHasBeenSet() const { return m_minDurationHasBeenSet; }
197 
205  inline void SetMinDuration(int value) { m_minDurationHasBeenSet = true; m_minDuration = value; }
206 
214  inline DescribeHostReservationOfferingsRequest& WithMinDuration(int value) { SetMinDuration(value); return *this;}
215 
216 
220  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
221 
225  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
226 
230  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
231 
235  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
236 
240  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
241 
245  inline DescribeHostReservationOfferingsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
246 
250  inline DescribeHostReservationOfferingsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
251 
255  inline DescribeHostReservationOfferingsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
256 
257 
261  inline const Aws::String& GetOfferingId() const{ return m_offeringId; }
262 
266  inline bool OfferingIdHasBeenSet() const { return m_offeringIdHasBeenSet; }
267 
271  inline void SetOfferingId(const Aws::String& value) { m_offeringIdHasBeenSet = true; m_offeringId = value; }
272 
276  inline void SetOfferingId(Aws::String&& value) { m_offeringIdHasBeenSet = true; m_offeringId = std::move(value); }
277 
281  inline void SetOfferingId(const char* value) { m_offeringIdHasBeenSet = true; m_offeringId.assign(value); }
282 
286  inline DescribeHostReservationOfferingsRequest& WithOfferingId(const Aws::String& value) { SetOfferingId(value); return *this;}
287 
291  inline DescribeHostReservationOfferingsRequest& WithOfferingId(Aws::String&& value) { SetOfferingId(std::move(value)); return *this;}
292 
296  inline DescribeHostReservationOfferingsRequest& WithOfferingId(const char* value) { SetOfferingId(value); return *this;}
297 
298  private:
299 
300  Aws::Vector<Filter> m_filter;
301  bool m_filterHasBeenSet;
302 
303  int m_maxDuration;
304  bool m_maxDurationHasBeenSet;
305 
306  int m_maxResults;
307  bool m_maxResultsHasBeenSet;
308 
309  int m_minDuration;
310  bool m_minDurationHasBeenSet;
311 
312  Aws::String m_nextToken;
313  bool m_nextTokenHasBeenSet;
314 
315  Aws::String m_offeringId;
316  bool m_offeringIdHasBeenSet;
317  };
318 
319 } // namespace Model
320 } // namespace EC2
321 } // namespace Aws
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::GetOfferingId
const Aws::String & GetOfferingId() const
Definition: DescribeHostReservationOfferingsRequest.h:261
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeHostReservationOfferingsRequest.h:150
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::GetMinDuration
int GetMinDuration() const
Definition: DescribeHostReservationOfferingsRequest.h:187
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::SetOfferingId
void SetOfferingId(Aws::String &&value)
Definition: DescribeHostReservationOfferingsRequest.h:276
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::WithNextToken
DescribeHostReservationOfferingsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeHostReservationOfferingsRequest.h:250
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::AddFilter
DescribeHostReservationOfferingsRequest & AddFilter(Filter &&value)
Definition: DescribeHostReservationOfferingsRequest.h:103
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::WithNextToken
DescribeHostReservationOfferingsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeHostReservationOfferingsRequest.h:245
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::GetMaxDuration
int GetMaxDuration() const
Definition: DescribeHostReservationOfferingsRequest.h:113
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::MaxDurationHasBeenSet
bool MaxDurationHasBeenSet() const
Definition: DescribeHostReservationOfferingsRequest.h:122
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::SetFilter
void SetFilter(Aws::Vector< Filter > &&value)
Definition: DescribeHostReservationOfferingsRequest.h:71
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Filter.h
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeHostReservationOfferingsRequest.h:240
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::WithNextToken
DescribeHostReservationOfferingsRequest & WithNextToken(const char *value)
Definition: DescribeHostReservationOfferingsRequest.h:255
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeHostReservationOfferingsRequest.h:159
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::SetOfferingId
void SetOfferingId(const Aws::String &value)
Definition: DescribeHostReservationOfferingsRequest.h:271
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::FilterHasBeenSet
bool FilterHasBeenSet() const
Definition: DescribeHostReservationOfferingsRequest.h:55
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeHostReservationOfferingsRequest.h:32
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::MinDurationHasBeenSet
bool MinDurationHasBeenSet() const
Definition: DescribeHostReservationOfferingsRequest.h:196
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::WithOfferingId
DescribeHostReservationOfferingsRequest & WithOfferingId(const Aws::String &value)
Definition: DescribeHostReservationOfferingsRequest.h:286
EC2Request.h
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::WithOfferingId
DescribeHostReservationOfferingsRequest & WithOfferingId(Aws::String &&value)
Definition: DescribeHostReservationOfferingsRequest.h:291
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::SetOfferingId
void SetOfferingId(const char *value)
Definition: DescribeHostReservationOfferingsRequest.h:281
AWSString.h
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::SetMaxDuration
void SetMaxDuration(int value)
Definition: DescribeHostReservationOfferingsRequest.h:131
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::SetMinDuration
void SetMinDuration(int value)
Definition: DescribeHostReservationOfferingsRequest.h:205
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeHostReservationOfferingsRequest.h:220
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::DescribeHostReservationOfferingsRequest
DescribeHostReservationOfferingsRequest()
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::WithOfferingId
DescribeHostReservationOfferingsRequest & WithOfferingId(const char *value)
Definition: DescribeHostReservationOfferingsRequest.h:296
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeHostReservationOfferingsRequest.h:225
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::WithMinDuration
DescribeHostReservationOfferingsRequest & WithMinDuration(int value)
Definition: DescribeHostReservationOfferingsRequest.h:214
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeHostReservationOfferingsRequest.h:235
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::SetFilter
void SetFilter(const Aws::Vector< Filter > &value)
Definition: DescribeHostReservationOfferingsRequest.h:63
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::WithMaxDuration
DescribeHostReservationOfferingsRequest & WithMaxDuration(int value)
Definition: DescribeHostReservationOfferingsRequest.h:140
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::AddFilter
DescribeHostReservationOfferingsRequest & AddFilter(const Filter &value)
Definition: DescribeHostReservationOfferingsRequest.h:95
Aws::EC2::Model::DescribeHostReservationOfferingsRequest
Definition: DescribeHostReservationOfferingsRequest.h:24
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeHostReservationOfferingsRequest.h:230
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::WithMaxResults
DescribeHostReservationOfferingsRequest & WithMaxResults(int value)
Definition: DescribeHostReservationOfferingsRequest.h:177
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeHostReservationOfferingsRequest.h:168
EC2_EXPORTS.h
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::WithFilter
DescribeHostReservationOfferingsRequest & WithFilter(const Aws::Vector< Filter > &value)
Definition: DescribeHostReservationOfferingsRequest.h:79
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::WithFilter
DescribeHostReservationOfferingsRequest & WithFilter(Aws::Vector< Filter > &&value)
Definition: DescribeHostReservationOfferingsRequest.h:87
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::OfferingIdHasBeenSet
bool OfferingIdHasBeenSet() const
Definition: DescribeHostReservationOfferingsRequest.h:266
Aws::EC2::Model::DescribeHostReservationOfferingsRequest::GetFilter
const Aws::Vector< Filter > & GetFilter() const
Definition: DescribeHostReservationOfferingsRequest.h:47