AWS SDK for C++  1.9.15
AWS SDK for C++
DescribeHostReservationsRequest.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 "DescribeHostReservations"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
57  inline const Aws::Vector<Filter>& GetFilter() const{ return m_filter; }
58 
75  inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
76 
93  inline void SetFilter(const Aws::Vector<Filter>& value) { m_filterHasBeenSet = true; m_filter = value; }
94 
111  inline void SetFilter(Aws::Vector<Filter>&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
112 
129  inline DescribeHostReservationsRequest& WithFilter(const Aws::Vector<Filter>& value) { SetFilter(value); return *this;}
130 
147  inline DescribeHostReservationsRequest& WithFilter(Aws::Vector<Filter>&& value) { SetFilter(std::move(value)); return *this;}
148 
165  inline DescribeHostReservationsRequest& AddFilter(const Filter& value) { m_filterHasBeenSet = true; m_filter.push_back(value); return *this; }
166 
183  inline DescribeHostReservationsRequest& AddFilter(Filter&& value) { m_filterHasBeenSet = true; m_filter.push_back(std::move(value)); return *this; }
184 
185 
189  inline const Aws::Vector<Aws::String>& GetHostReservationIdSet() const{ return m_hostReservationIdSet; }
190 
194  inline bool HostReservationIdSetHasBeenSet() const { return m_hostReservationIdSetHasBeenSet; }
195 
199  inline void SetHostReservationIdSet(const Aws::Vector<Aws::String>& value) { m_hostReservationIdSetHasBeenSet = true; m_hostReservationIdSet = value; }
200 
204  inline void SetHostReservationIdSet(Aws::Vector<Aws::String>&& value) { m_hostReservationIdSetHasBeenSet = true; m_hostReservationIdSet = std::move(value); }
205 
209  inline DescribeHostReservationsRequest& WithHostReservationIdSet(const Aws::Vector<Aws::String>& value) { SetHostReservationIdSet(value); return *this;}
210 
214  inline DescribeHostReservationsRequest& WithHostReservationIdSet(Aws::Vector<Aws::String>&& value) { SetHostReservationIdSet(std::move(value)); return *this;}
215 
219  inline DescribeHostReservationsRequest& AddHostReservationIdSet(const Aws::String& value) { m_hostReservationIdSetHasBeenSet = true; m_hostReservationIdSet.push_back(value); return *this; }
220 
224  inline DescribeHostReservationsRequest& AddHostReservationIdSet(Aws::String&& value) { m_hostReservationIdSetHasBeenSet = true; m_hostReservationIdSet.push_back(std::move(value)); return *this; }
225 
229  inline DescribeHostReservationsRequest& AddHostReservationIdSet(const char* value) { m_hostReservationIdSetHasBeenSet = true; m_hostReservationIdSet.push_back(value); return *this; }
230 
231 
239  inline int GetMaxResults() const{ return m_maxResults; }
240 
248  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
249 
257  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
258 
266  inline DescribeHostReservationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
267 
268 
272  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
273 
277  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
278 
282  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
283 
287  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
288 
292  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
293 
297  inline DescribeHostReservationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
298 
302  inline DescribeHostReservationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
303 
307  inline DescribeHostReservationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
308 
309  private:
310 
311  Aws::Vector<Filter> m_filter;
312  bool m_filterHasBeenSet;
313 
314  Aws::Vector<Aws::String> m_hostReservationIdSet;
315  bool m_hostReservationIdSetHasBeenSet;
316 
317  int m_maxResults;
318  bool m_maxResultsHasBeenSet;
319 
320  Aws::String m_nextToken;
321  bool m_nextTokenHasBeenSet;
322  };
323 
324 } // namespace Model
325 } // namespace EC2
326 } // namespace Aws
Aws::EC2::Model::DescribeHostReservationsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeHostReservationsRequest::SetFilter
void SetFilter(Aws::Vector< Filter > &&value)
Definition: DescribeHostReservationsRequest.h:111
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeHostReservationsRequest::AddHostReservationIdSet
DescribeHostReservationsRequest & AddHostReservationIdSet(const Aws::String &value)
Definition: DescribeHostReservationsRequest.h:219
Aws::EC2::Model::DescribeHostReservationsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeHostReservationsRequest.h:239
Aws::EC2::Model::DescribeHostReservationsRequest::DescribeHostReservationsRequest
DescribeHostReservationsRequest()
Aws::EC2::Model::DescribeHostReservationsRequest::WithNextToken
DescribeHostReservationsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeHostReservationsRequest.h:302
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeHostReservationsRequest::SetHostReservationIdSet
void SetHostReservationIdSet(Aws::Vector< Aws::String > &&value)
Definition: DescribeHostReservationsRequest.h:204
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeHostReservationsRequest
Definition: DescribeHostReservationsRequest.h:24
Aws::EC2::Model::DescribeHostReservationsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeHostReservationsRequest.h:287
AWSVector.h
Aws::EC2::Model::DescribeHostReservationsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeHostReservationsRequest.h:248
Filter.h
Aws::EC2::Model::DescribeHostReservationsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeHostReservationsRequest.h:282
Aws::EC2::Model::DescribeHostReservationsRequest::HostReservationIdSetHasBeenSet
bool HostReservationIdSetHasBeenSet() const
Definition: DescribeHostReservationsRequest.h:194
Aws::EC2::Model::DescribeHostReservationsRequest::WithMaxResults
DescribeHostReservationsRequest & WithMaxResults(int value)
Definition: DescribeHostReservationsRequest.h:266
Aws::EC2::Model::DescribeHostReservationsRequest::WithHostReservationIdSet
DescribeHostReservationsRequest & WithHostReservationIdSet(const Aws::Vector< Aws::String > &value)
Definition: DescribeHostReservationsRequest.h:209
Aws::EC2::Model::DescribeHostReservationsRequest::WithNextToken
DescribeHostReservationsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeHostReservationsRequest.h:297
Aws::EC2::Model::DescribeHostReservationsRequest::GetFilter
const Aws::Vector< Filter > & GetFilter() const
Definition: DescribeHostReservationsRequest.h:57
Aws::EC2::Model::DescribeHostReservationsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeHostReservationsRequest.h:292
EC2Request.h
Aws::EC2::Model::DescribeHostReservationsRequest::AddHostReservationIdSet
DescribeHostReservationsRequest & AddHostReservationIdSet(const char *value)
Definition: DescribeHostReservationsRequest.h:229
Aws::EC2::Model::DescribeHostReservationsRequest::WithHostReservationIdSet
DescribeHostReservationsRequest & WithHostReservationIdSet(Aws::Vector< Aws::String > &&value)
Definition: DescribeHostReservationsRequest.h:214
Aws::EC2::Model::DescribeHostReservationsRequest::SetFilter
void SetFilter(const Aws::Vector< Filter > &value)
Definition: DescribeHostReservationsRequest.h:93
AWSString.h
Aws::EC2::Model::DescribeHostReservationsRequest::WithFilter
DescribeHostReservationsRequest & WithFilter(const Aws::Vector< Filter > &value)
Definition: DescribeHostReservationsRequest.h:129
Aws::EC2::Model::DescribeHostReservationsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeHostReservationsRequest::FilterHasBeenSet
bool FilterHasBeenSet() const
Definition: DescribeHostReservationsRequest.h:75
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeHostReservationsRequest::AddFilter
DescribeHostReservationsRequest & AddFilter(Filter &&value)
Definition: DescribeHostReservationsRequest.h:183
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeHostReservationsRequest::WithNextToken
DescribeHostReservationsRequest & WithNextToken(const char *value)
Definition: DescribeHostReservationsRequest.h:307
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeHostReservationsRequest::AddHostReservationIdSet
DescribeHostReservationsRequest & AddHostReservationIdSet(Aws::String &&value)
Definition: DescribeHostReservationsRequest.h:224
Aws::EC2::Model::DescribeHostReservationsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeHostReservationsRequest.h:272
Aws::EC2::Model::DescribeHostReservationsRequest::SetHostReservationIdSet
void SetHostReservationIdSet(const Aws::Vector< Aws::String > &value)
Definition: DescribeHostReservationsRequest.h:199
Aws::EC2::Model::DescribeHostReservationsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeHostReservationsRequest.h:277
Aws::EC2::Model::DescribeHostReservationsRequest::WithFilter
DescribeHostReservationsRequest & WithFilter(Aws::Vector< Filter > &&value)
Definition: DescribeHostReservationsRequest.h:147
Aws::EC2::Model::DescribeHostReservationsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeHostReservationsRequest.h:257
Aws::EC2::Model::DescribeHostReservationsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeHostReservationsRequest.h:32
EC2_EXPORTS.h
Aws::EC2::Model::DescribeHostReservationsRequest::GetHostReservationIdSet
const Aws::Vector< Aws::String > & GetHostReservationIdSet() const
Definition: DescribeHostReservationsRequest.h:189
Aws::EC2::Model::DescribeHostReservationsRequest::AddFilter
DescribeHostReservationsRequest & AddFilter(const Filter &value)
Definition: DescribeHostReservationsRequest.h:165