AWS SDK for C++  0.14.3
AWS SDK for C++
DescribeHostsRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ec2/EC2_EXPORTS.h>
17 #include <aws/ec2/EC2Request.h>
20 #include <aws/ec2/model/Filter.h>
21 
22 namespace Aws
23 {
24 namespace EC2
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
42  inline const Aws::Vector<Aws::String>& GetHostIds() const{ return m_hostIds; }
43 
48  inline void SetHostIds(const Aws::Vector<Aws::String>& value) { m_hostIdsHasBeenSet = true; m_hostIds = value; }
49 
54  inline void SetHostIds(Aws::Vector<Aws::String>&& value) { m_hostIdsHasBeenSet = true; m_hostIds = value; }
55 
60  inline DescribeHostsRequest& WithHostIds(const Aws::Vector<Aws::String>& value) { SetHostIds(value); return *this;}
61 
66  inline DescribeHostsRequest& WithHostIds(Aws::Vector<Aws::String>&& value) { SetHostIds(value); return *this;}
67 
72  inline DescribeHostsRequest& AddHostIds(const Aws::String& value) { m_hostIdsHasBeenSet = true; m_hostIds.push_back(value); return *this; }
73 
78  inline DescribeHostsRequest& AddHostIds(Aws::String&& value) { m_hostIdsHasBeenSet = true; m_hostIds.push_back(value); return *this; }
79 
84  inline DescribeHostsRequest& AddHostIds(const char* value) { m_hostIdsHasBeenSet = true; m_hostIds.push_back(value); return *this; }
85 
89  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
90 
94  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
95 
99  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
100 
104  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
105 
109  inline DescribeHostsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
110 
114  inline DescribeHostsRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
115 
119  inline DescribeHostsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
120 
129  inline int GetMaxResults() const{ return m_maxResults; }
130 
139  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
140 
149  inline DescribeHostsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
150 
166  inline const Aws::Vector<Filter>& GetFilter() const{ return m_filter; }
167 
183  inline void SetFilter(const Aws::Vector<Filter>& value) { m_filterHasBeenSet = true; m_filter = value; }
184 
200  inline void SetFilter(Aws::Vector<Filter>&& value) { m_filterHasBeenSet = true; m_filter = value; }
201 
217  inline DescribeHostsRequest& WithFilter(const Aws::Vector<Filter>& value) { SetFilter(value); return *this;}
218 
234  inline DescribeHostsRequest& WithFilter(Aws::Vector<Filter>&& value) { SetFilter(value); return *this;}
235 
251  inline DescribeHostsRequest& AddFilter(const Filter& value) { m_filterHasBeenSet = true; m_filter.push_back(value); return *this; }
252 
268  inline DescribeHostsRequest& AddFilter(Filter&& value) { m_filterHasBeenSet = true; m_filter.push_back(value); return *this; }
269 
270  private:
271  Aws::Vector<Aws::String> m_hostIds;
272  bool m_hostIdsHasBeenSet;
273  Aws::String m_nextToken;
274  bool m_nextTokenHasBeenSet;
275  int m_maxResults;
276  bool m_maxResultsHasBeenSet;
277  Aws::Vector<Filter> m_filter;
278  bool m_filterHasBeenSet;
279  };
280 
281 } // namespace Model
282 } // namespace EC2
283 } // namespace Aws
DescribeHostsRequest & AddFilter(Filter &&value)
DescribeHostsRequest & AddHostIds(Aws::String &&value)
DescribeHostsRequest & WithNextToken(Aws::String &&value)
void SetFilter(Aws::Vector< Filter > &&value)
DescribeHostsRequest & WithNextToken(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DescribeHostsRequest & WithMaxResults(int value)
void SetHostIds(const Aws::Vector< Aws::String > &value)
DescribeHostsRequest & AddFilter(const Filter &value)
DescribeHostsRequest & WithFilter(Aws::Vector< Filter > &&value)
DescribeHostsRequest & AddHostIds(const char *value)
DescribeHostsRequest & WithHostIds(Aws::Vector< Aws::String > &&value)
void SetFilter(const Aws::Vector< Filter > &value)
DescribeHostsRequest & AddHostIds(const Aws::String &value)
const Aws::String & GetNextToken() const
const Aws::Vector< Aws::String > & GetHostIds() const
DescribeHostsRequest & WithHostIds(const Aws::Vector< Aws::String > &value)
DescribeHostsRequest & WithFilter(const Aws::Vector< Filter > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeHostsRequest & WithNextToken(const Aws::String &value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
const Aws::Vector< Filter > & GetFilter() const
void SetHostIds(Aws::Vector< Aws::String > &&value)
void SetNextToken(const Aws::String &value)
JSON (JavaScript Object Notation).