AWS SDK for C++  1.9.74
AWS SDK for C++
DescribeMovingAddressesRequest.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 "DescribeMovingAddresses"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
46  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
47 
53  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
54 
60  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
61 
67  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
68 
74  inline DescribeMovingAddressesRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
75 
81  inline DescribeMovingAddressesRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
82 
88  inline DescribeMovingAddressesRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
89 
95  inline DescribeMovingAddressesRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
96 
97 
104  inline bool GetDryRun() const{ return m_dryRun; }
105 
112  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
113 
120  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
121 
128  inline DescribeMovingAddressesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
129 
130 
139  inline int GetMaxResults() const{ return m_maxResults; }
140 
149  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
150 
159  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
160 
169  inline DescribeMovingAddressesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
170 
171 
175  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
176 
180  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
181 
185  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
186 
190  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
191 
195  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
196 
200  inline DescribeMovingAddressesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
201 
205  inline DescribeMovingAddressesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
206 
210  inline DescribeMovingAddressesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
211 
212 
216  inline const Aws::Vector<Aws::String>& GetPublicIps() const{ return m_publicIps; }
217 
221  inline bool PublicIpsHasBeenSet() const { return m_publicIpsHasBeenSet; }
222 
226  inline void SetPublicIps(const Aws::Vector<Aws::String>& value) { m_publicIpsHasBeenSet = true; m_publicIps = value; }
227 
231  inline void SetPublicIps(Aws::Vector<Aws::String>&& value) { m_publicIpsHasBeenSet = true; m_publicIps = std::move(value); }
232 
236  inline DescribeMovingAddressesRequest& WithPublicIps(const Aws::Vector<Aws::String>& value) { SetPublicIps(value); return *this;}
237 
241  inline DescribeMovingAddressesRequest& WithPublicIps(Aws::Vector<Aws::String>&& value) { SetPublicIps(std::move(value)); return *this;}
242 
246  inline DescribeMovingAddressesRequest& AddPublicIps(const Aws::String& value) { m_publicIpsHasBeenSet = true; m_publicIps.push_back(value); return *this; }
247 
251  inline DescribeMovingAddressesRequest& AddPublicIps(Aws::String&& value) { m_publicIpsHasBeenSet = true; m_publicIps.push_back(std::move(value)); return *this; }
252 
256  inline DescribeMovingAddressesRequest& AddPublicIps(const char* value) { m_publicIpsHasBeenSet = true; m_publicIps.push_back(value); return *this; }
257 
258  private:
259 
260  Aws::Vector<Filter> m_filters;
261  bool m_filtersHasBeenSet;
262 
263  bool m_dryRun;
264  bool m_dryRunHasBeenSet;
265 
266  int m_maxResults;
267  bool m_maxResultsHasBeenSet;
268 
269  Aws::String m_nextToken;
270  bool m_nextTokenHasBeenSet;
271 
272  Aws::Vector<Aws::String> m_publicIps;
273  bool m_publicIpsHasBeenSet;
274  };
275 
276 } // namespace Model
277 } // namespace EC2
278 } // namespace Aws
Aws::EC2::Model::DescribeMovingAddressesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeMovingAddressesRequest::WithPublicIps
DescribeMovingAddressesRequest & WithPublicIps(Aws::Vector< Aws::String > &&value)
Definition: DescribeMovingAddressesRequest.h:241
Aws::EC2::Model::DescribeMovingAddressesRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeMovingAddressesRequest.h:104
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeMovingAddressesRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeMovingAddressesRequest.h:46
Aws::EC2::Model::DescribeMovingAddressesRequest::WithPublicIps
DescribeMovingAddressesRequest & WithPublicIps(const Aws::Vector< Aws::String > &value)
Definition: DescribeMovingAddressesRequest.h:236
Aws::EC2::Model::DescribeMovingAddressesRequest
Definition: DescribeMovingAddressesRequest.h:24
Aws::EC2::Model::DescribeMovingAddressesRequest::SetPublicIps
void SetPublicIps(Aws::Vector< Aws::String > &&value)
Definition: DescribeMovingAddressesRequest.h:231
Aws::EC2::Model::DescribeMovingAddressesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeMovingAddressesRequest.h:159
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
Aws::EC2::Model::DescribeMovingAddressesRequest::WithNextToken
DescribeMovingAddressesRequest & WithNextToken(const char *value)
Definition: DescribeMovingAddressesRequest.h:210
Aws::EC2::Model::DescribeMovingAddressesRequest::AddFilters
DescribeMovingAddressesRequest & AddFilters(Filter &&value)
Definition: DescribeMovingAddressesRequest.h:95
Aws::EC2::Model::DescribeMovingAddressesRequest::AddFilters
DescribeMovingAddressesRequest & AddFilters(const Filter &value)
Definition: DescribeMovingAddressesRequest.h:88
Aws::EC2::Model::DescribeMovingAddressesRequest::WithNextToken
DescribeMovingAddressesRequest & WithNextToken(const Aws::String &value)
Definition: DescribeMovingAddressesRequest.h:200
AWSVector.h
Filter.h
Aws::EC2::Model::DescribeMovingAddressesRequest::WithMaxResults
DescribeMovingAddressesRequest & WithMaxResults(int value)
Definition: DescribeMovingAddressesRequest.h:169
Aws::EC2::Model::DescribeMovingAddressesRequest::PublicIpsHasBeenSet
bool PublicIpsHasBeenSet() const
Definition: DescribeMovingAddressesRequest.h:221
Aws::EC2::Model::DescribeMovingAddressesRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeMovingAddressesRequest.h:112
Aws::EC2::Model::DescribeMovingAddressesRequest::AddPublicIps
DescribeMovingAddressesRequest & AddPublicIps(Aws::String &&value)
Definition: DescribeMovingAddressesRequest.h:251
EC2Request.h
Aws::EC2::Model::DescribeMovingAddressesRequest::AddPublicIps
DescribeMovingAddressesRequest & AddPublicIps(const char *value)
Definition: DescribeMovingAddressesRequest.h:256
Aws::EC2::Model::DescribeMovingAddressesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeMovingAddressesRequest.h:190
Aws::EC2::Model::DescribeMovingAddressesRequest::SetPublicIps
void SetPublicIps(const Aws::Vector< Aws::String > &value)
Definition: DescribeMovingAddressesRequest.h:226
Aws::EC2::Model::DescribeMovingAddressesRequest::WithFilters
DescribeMovingAddressesRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeMovingAddressesRequest.h:74
Aws::EC2::Model::DescribeMovingAddressesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeMovingAddressesRequest.h:175
AWSString.h
Aws::EC2::Model::DescribeMovingAddressesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeMovingAddressesRequest.h:32
Aws::EC2::Model::DescribeMovingAddressesRequest::WithNextToken
DescribeMovingAddressesRequest & WithNextToken(Aws::String &&value)
Definition: DescribeMovingAddressesRequest.h:205
Aws::EC2::Model::DescribeMovingAddressesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeMovingAddressesRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeMovingAddressesRequest.h:53
Aws::EC2::Model::DescribeMovingAddressesRequest::WithDryRun
DescribeMovingAddressesRequest & WithDryRun(bool value)
Definition: DescribeMovingAddressesRequest.h:128
Aws::EC2::Model::DescribeMovingAddressesRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeMovingAddressesRequest.h:67
Aws::EC2::Model::DescribeMovingAddressesRequest::DescribeMovingAddressesRequest
DescribeMovingAddressesRequest()
Aws::EC2::Model::DescribeMovingAddressesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeMovingAddressesRequest.h:149
Aws::EC2::Model::DescribeMovingAddressesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeMovingAddressesRequest.h:180
Aws::EC2::Model::DescribeMovingAddressesRequest::AddPublicIps
DescribeMovingAddressesRequest & AddPublicIps(const Aws::String &value)
Definition: DescribeMovingAddressesRequest.h:246
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeMovingAddressesRequest::WithFilters
DescribeMovingAddressesRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeMovingAddressesRequest.h:81
Aws::EC2::Model::DescribeMovingAddressesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeMovingAddressesRequest.h:185
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeMovingAddressesRequest::GetPublicIps
const Aws::Vector< Aws::String > & GetPublicIps() const
Definition: DescribeMovingAddressesRequest.h:216
Aws::EC2::Model::DescribeMovingAddressesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeMovingAddressesRequest.h:195
Aws::EC2::Model::DescribeMovingAddressesRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeMovingAddressesRequest.h:120
Aws::EC2::EC2Request
Definition: EC2Request.h:17
EC2_EXPORTS.h
Aws::EC2::Model::DescribeMovingAddressesRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeMovingAddressesRequest.h:60
Aws::EC2::Model::DescribeMovingAddressesRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeMovingAddressesRequest.h:139