AWS SDK for C++  1.9.108
AWS SDK for C++
DescribeHostsRequest.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 "DescribeHosts"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
58  inline const Aws::Vector<Filter>& GetFilter() const{ return m_filter; }
59 
77  inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
78 
96  inline void SetFilter(const Aws::Vector<Filter>& value) { m_filterHasBeenSet = true; m_filter = value; }
97 
115  inline void SetFilter(Aws::Vector<Filter>&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
116 
134  inline DescribeHostsRequest& WithFilter(const Aws::Vector<Filter>& value) { SetFilter(value); return *this;}
135 
153  inline DescribeHostsRequest& WithFilter(Aws::Vector<Filter>&& value) { SetFilter(std::move(value)); return *this;}
154 
172  inline DescribeHostsRequest& AddFilter(const Filter& value) { m_filterHasBeenSet = true; m_filter.push_back(value); return *this; }
173 
191  inline DescribeHostsRequest& AddFilter(Filter&& value) { m_filterHasBeenSet = true; m_filter.push_back(std::move(value)); return *this; }
192 
193 
198  inline const Aws::Vector<Aws::String>& GetHostIds() const{ return m_hostIds; }
199 
204  inline bool HostIdsHasBeenSet() const { return m_hostIdsHasBeenSet; }
205 
210  inline void SetHostIds(const Aws::Vector<Aws::String>& value) { m_hostIdsHasBeenSet = true; m_hostIds = value; }
211 
216  inline void SetHostIds(Aws::Vector<Aws::String>&& value) { m_hostIdsHasBeenSet = true; m_hostIds = std::move(value); }
217 
222  inline DescribeHostsRequest& WithHostIds(const Aws::Vector<Aws::String>& value) { SetHostIds(value); return *this;}
223 
228  inline DescribeHostsRequest& WithHostIds(Aws::Vector<Aws::String>&& value) { SetHostIds(std::move(value)); return *this;}
229 
234  inline DescribeHostsRequest& AddHostIds(const Aws::String& value) { m_hostIdsHasBeenSet = true; m_hostIds.push_back(value); return *this; }
235 
240  inline DescribeHostsRequest& AddHostIds(Aws::String&& value) { m_hostIdsHasBeenSet = true; m_hostIds.push_back(std::move(value)); return *this; }
241 
246  inline DescribeHostsRequest& AddHostIds(const char* value) { m_hostIdsHasBeenSet = true; m_hostIds.push_back(value); return *this; }
247 
248 
257  inline int GetMaxResults() const{ return m_maxResults; }
258 
267  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
268 
277  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
278 
287  inline DescribeHostsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
288 
289 
293  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
294 
298  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
299 
303  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
304 
308  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
309 
313  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
314 
318  inline DescribeHostsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
319 
323  inline DescribeHostsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
324 
328  inline DescribeHostsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
329 
330  private:
331 
332  Aws::Vector<Filter> m_filter;
333  bool m_filterHasBeenSet;
334 
335  Aws::Vector<Aws::String> m_hostIds;
336  bool m_hostIdsHasBeenSet;
337 
338  int m_maxResults;
339  bool m_maxResultsHasBeenSet;
340 
341  Aws::String m_nextToken;
342  bool m_nextTokenHasBeenSet;
343  };
344 
345 } // namespace Model
346 } // namespace EC2
347 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeHostsRequest::DescribeHostsRequest
DescribeHostsRequest()
Aws::EC2::Model::DescribeHostsRequest::SetFilter
void SetFilter(const Aws::Vector< Filter > &value)
Definition: DescribeHostsRequest.h:96
Aws::EC2::Model::DescribeHostsRequest::WithNextToken
DescribeHostsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeHostsRequest.h:318
Aws::EC2::Model::DescribeHostsRequest
Definition: DescribeHostsRequest.h:24
Aws::EC2::Model::DescribeHostsRequest::WithFilter
DescribeHostsRequest & WithFilter(const Aws::Vector< Filter > &value)
Definition: DescribeHostsRequest.h:134
Aws::EC2::Model::DescribeHostsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeHostsRequest.h:267
Aws::EC2::Model::DescribeHostsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeHostsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeHostsRequest.h:313
Aws::EC2::Model::DescribeHostsRequest::AddHostIds
DescribeHostsRequest & AddHostIds(const char *value)
Definition: DescribeHostsRequest.h:246
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeHostsRequest::AddFilter
DescribeHostsRequest & AddFilter(Filter &&value)
Definition: DescribeHostsRequest.h:191
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeHostsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeHostsRequest.h:32
Aws::EC2::Model::DescribeHostsRequest::WithHostIds
DescribeHostsRequest & WithHostIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeHostsRequest.h:228
AWSVector.h
Aws::EC2::Model::DescribeHostsRequest::WithNextToken
DescribeHostsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeHostsRequest.h:323
Filter.h
Aws::EC2::Model::DescribeHostsRequest::HostIdsHasBeenSet
bool HostIdsHasBeenSet() const
Definition: DescribeHostsRequest.h:204
Aws::EC2::Model::DescribeHostsRequest::SetHostIds
void SetHostIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeHostsRequest.h:210
Aws::EC2::Model::DescribeHostsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeHostsRequest::SetHostIds
void SetHostIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeHostsRequest.h:216
Aws::EC2::Model::DescribeHostsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeHostsRequest.h:257
Aws::EC2::Model::DescribeHostsRequest::WithNextToken
DescribeHostsRequest & WithNextToken(const char *value)
Definition: DescribeHostsRequest.h:328
Aws::EC2::Model::DescribeHostsRequest::AddFilter
DescribeHostsRequest & AddFilter(const Filter &value)
Definition: DescribeHostsRequest.h:172
Aws::EC2::Model::DescribeHostsRequest::AddHostIds
DescribeHostsRequest & AddHostIds(Aws::String &&value)
Definition: DescribeHostsRequest.h:240
EC2Request.h
Aws::EC2::Model::DescribeHostsRequest::GetFilter
const Aws::Vector< Filter > & GetFilter() const
Definition: DescribeHostsRequest.h:58
Aws::EC2::Model::DescribeHostsRequest::SetFilter
void SetFilter(Aws::Vector< Filter > &&value)
Definition: DescribeHostsRequest.h:115
Aws::EC2::Model::DescribeHostsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeHostsRequest.h:298
Aws::EC2::Model::DescribeHostsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeHostsRequest.h:277
Aws::EC2::Model::DescribeHostsRequest::WithFilter
DescribeHostsRequest & WithFilter(Aws::Vector< Filter > &&value)
Definition: DescribeHostsRequest.h:153
AWSString.h
Aws::EC2::Model::DescribeHostsRequest::AddHostIds
DescribeHostsRequest & AddHostIds(const Aws::String &value)
Definition: DescribeHostsRequest.h:234
Aws::EC2::Model::DescribeHostsRequest::FilterHasBeenSet
bool FilterHasBeenSet() const
Definition: DescribeHostsRequest.h:77
Aws::EC2::Model::DescribeHostsRequest::GetHostIds
const Aws::Vector< Aws::String > & GetHostIds() const
Definition: DescribeHostsRequest.h:198
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeHostsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeHostsRequest.h:303
Aws::EC2::Model::DescribeHostsRequest::WithHostIds
DescribeHostsRequest & WithHostIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeHostsRequest.h:222
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeHostsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeHostsRequest.h:308
Aws::EC2::Model::DescribeHostsRequest::WithMaxResults
DescribeHostsRequest & WithMaxResults(int value)
Definition: DescribeHostsRequest.h:287
EC2_EXPORTS.h
Aws::EC2::Model::DescribeHostsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeHostsRequest.h:293