AWS SDK for C++  1.9.128
AWS SDK for C++
DescribeAddressesRequest.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>
10 #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 "DescribeAddresses"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
67  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
68 
95  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
96 
123  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
124 
151  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
152 
179  inline DescribeAddressesRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
180 
207  inline DescribeAddressesRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
208 
235  inline DescribeAddressesRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
236 
263  inline DescribeAddressesRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
264 
265 
270  inline const Aws::Vector<Aws::String>& GetPublicIps() const{ return m_publicIps; }
271 
276  inline bool PublicIpsHasBeenSet() const { return m_publicIpsHasBeenSet; }
277 
282  inline void SetPublicIps(const Aws::Vector<Aws::String>& value) { m_publicIpsHasBeenSet = true; m_publicIps = value; }
283 
288  inline void SetPublicIps(Aws::Vector<Aws::String>&& value) { m_publicIpsHasBeenSet = true; m_publicIps = std::move(value); }
289 
294  inline DescribeAddressesRequest& WithPublicIps(const Aws::Vector<Aws::String>& value) { SetPublicIps(value); return *this;}
295 
300  inline DescribeAddressesRequest& WithPublicIps(Aws::Vector<Aws::String>&& value) { SetPublicIps(std::move(value)); return *this;}
301 
306  inline DescribeAddressesRequest& AddPublicIps(const Aws::String& value) { m_publicIpsHasBeenSet = true; m_publicIps.push_back(value); return *this; }
307 
312  inline DescribeAddressesRequest& AddPublicIps(Aws::String&& value) { m_publicIpsHasBeenSet = true; m_publicIps.push_back(std::move(value)); return *this; }
313 
318  inline DescribeAddressesRequest& AddPublicIps(const char* value) { m_publicIpsHasBeenSet = true; m_publicIps.push_back(value); return *this; }
319 
320 
324  inline const Aws::Vector<Aws::String>& GetAllocationIds() const{ return m_allocationIds; }
325 
329  inline bool AllocationIdsHasBeenSet() const { return m_allocationIdsHasBeenSet; }
330 
334  inline void SetAllocationIds(const Aws::Vector<Aws::String>& value) { m_allocationIdsHasBeenSet = true; m_allocationIds = value; }
335 
339  inline void SetAllocationIds(Aws::Vector<Aws::String>&& value) { m_allocationIdsHasBeenSet = true; m_allocationIds = std::move(value); }
340 
344  inline DescribeAddressesRequest& WithAllocationIds(const Aws::Vector<Aws::String>& value) { SetAllocationIds(value); return *this;}
345 
349  inline DescribeAddressesRequest& WithAllocationIds(Aws::Vector<Aws::String>&& value) { SetAllocationIds(std::move(value)); return *this;}
350 
354  inline DescribeAddressesRequest& AddAllocationIds(const Aws::String& value) { m_allocationIdsHasBeenSet = true; m_allocationIds.push_back(value); return *this; }
355 
359  inline DescribeAddressesRequest& AddAllocationIds(Aws::String&& value) { m_allocationIdsHasBeenSet = true; m_allocationIds.push_back(std::move(value)); return *this; }
360 
364  inline DescribeAddressesRequest& AddAllocationIds(const char* value) { m_allocationIdsHasBeenSet = true; m_allocationIds.push_back(value); return *this; }
365 
366 
373  inline bool GetDryRun() const{ return m_dryRun; }
374 
381  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
382 
389  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
390 
397  inline DescribeAddressesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
398 
399  private:
400 
401  Aws::Vector<Filter> m_filters;
402  bool m_filtersHasBeenSet;
403 
404  Aws::Vector<Aws::String> m_publicIps;
405  bool m_publicIpsHasBeenSet;
406 
407  Aws::Vector<Aws::String> m_allocationIds;
408  bool m_allocationIdsHasBeenSet;
409 
410  bool m_dryRun;
411  bool m_dryRunHasBeenSet;
412  };
413 
414 } // namespace Model
415 } // namespace EC2
416 } // namespace Aws
Aws::EC2::Model::DescribeAddressesRequest
Definition: DescribeAddressesRequest.h:24
Aws::EC2::Model::DescribeAddressesRequest::WithFilters
DescribeAddressesRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeAddressesRequest.h:207
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeAddressesRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeAddressesRequest.h:389
Aws::EC2::Model::DescribeAddressesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeAddressesRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeAddressesRequest.h:373
Aws::EC2::Model::DescribeAddressesRequest::AddPublicIps
DescribeAddressesRequest & AddPublicIps(Aws::String &&value)
Definition: DescribeAddressesRequest.h:312
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeAddressesRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeAddressesRequest.h:95
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeAddressesRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeAddressesRequest.h:151
Aws::EC2::Model::DescribeAddressesRequest::GetPublicIps
const Aws::Vector< Aws::String > & GetPublicIps() const
Definition: DescribeAddressesRequest.h:270
Aws::EC2::Model::DescribeAddressesRequest::WithAllocationIds
DescribeAddressesRequest & WithAllocationIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeAddressesRequest.h:344
AWSVector.h
Filter.h
Aws::EC2::Model::DescribeAddressesRequest::SetAllocationIds
void SetAllocationIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeAddressesRequest.h:334
Aws::EC2::Model::DescribeAddressesRequest::SetPublicIps
void SetPublicIps(Aws::Vector< Aws::String > &&value)
Definition: DescribeAddressesRequest.h:288
Aws::EC2::Model::DescribeAddressesRequest::WithFilters
DescribeAddressesRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeAddressesRequest.h:179
Aws::EC2::Model::DescribeAddressesRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeAddressesRequest.h:381
Aws::EC2::Model::DescribeAddressesRequest::AddPublicIps
DescribeAddressesRequest & AddPublicIps(const Aws::String &value)
Definition: DescribeAddressesRequest.h:306
Aws::EC2::Model::DescribeAddressesRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeAddressesRequest.h:67
Aws::EC2::Model::DescribeAddressesRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeAddressesRequest.h:123
Aws::EC2::Model::DescribeAddressesRequest::SetAllocationIds
void SetAllocationIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeAddressesRequest.h:339
Aws::EC2::Model::DescribeAddressesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeAddressesRequest.h:32
Aws::EC2::Model::DescribeAddressesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeAddressesRequest::WithPublicIps
DescribeAddressesRequest & WithPublicIps(const Aws::Vector< Aws::String > &value)
Definition: DescribeAddressesRequest.h:294
Aws::EC2::Model::DescribeAddressesRequest::AddPublicIps
DescribeAddressesRequest & AddPublicIps(const char *value)
Definition: DescribeAddressesRequest.h:318
EC2Request.h
Aws::EC2::Model::DescribeAddressesRequest::AddFilters
DescribeAddressesRequest & AddFilters(Filter &&value)
Definition: DescribeAddressesRequest.h:263
Aws::EC2::Model::DescribeAddressesRequest::GetAllocationIds
const Aws::Vector< Aws::String > & GetAllocationIds() const
Definition: DescribeAddressesRequest.h:324
AWSString.h
Aws::EC2::Model::DescribeAddressesRequest::AddFilters
DescribeAddressesRequest & AddFilters(const Filter &value)
Definition: DescribeAddressesRequest.h:235
Aws::EC2::Model::DescribeAddressesRequest::AddAllocationIds
DescribeAddressesRequest & AddAllocationIds(Aws::String &&value)
Definition: DescribeAddressesRequest.h:359
Aws::EC2::Model::DescribeAddressesRequest::AddAllocationIds
DescribeAddressesRequest & AddAllocationIds(const char *value)
Definition: DescribeAddressesRequest.h:364
Aws::EC2::Model::DescribeAddressesRequest::AddAllocationIds
DescribeAddressesRequest & AddAllocationIds(const Aws::String &value)
Definition: DescribeAddressesRequest.h:354
Aws
Definition: AccessManagementClient.h:15
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::DescribeAddressesRequest::AllocationIdsHasBeenSet
bool AllocationIdsHasBeenSet() const
Definition: DescribeAddressesRequest.h:329
Aws::EC2::Model::DescribeAddressesRequest::SetPublicIps
void SetPublicIps(const Aws::Vector< Aws::String > &value)
Definition: DescribeAddressesRequest.h:282
Aws::EC2::Model::DescribeAddressesRequest::WithAllocationIds
DescribeAddressesRequest & WithAllocationIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeAddressesRequest.h:349
Aws::EC2::Model::DescribeAddressesRequest::WithDryRun
DescribeAddressesRequest & WithDryRun(bool value)
Definition: DescribeAddressesRequest.h:397
EC2_EXPORTS.h
Aws::EC2::Model::DescribeAddressesRequest::WithPublicIps
DescribeAddressesRequest & WithPublicIps(Aws::Vector< Aws::String > &&value)
Definition: DescribeAddressesRequest.h:300
Aws::EC2::Model::DescribeAddressesRequest::PublicIpsHasBeenSet
bool PublicIpsHasBeenSet() const
Definition: DescribeAddressesRequest.h:276
Aws::EC2::Model::DescribeAddressesRequest::DescribeAddressesRequest
DescribeAddressesRequest()