AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeAddressesRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/Filter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace 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_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
46 inline const Aws::Vector<Aws::String>& GetPublicIps() const{ return m_publicIps; }
47 inline bool PublicIpsHasBeenSet() const { return m_publicIpsHasBeenSet; }
48 inline void SetPublicIps(const Aws::Vector<Aws::String>& value) { m_publicIpsHasBeenSet = true; m_publicIps = value; }
49 inline void SetPublicIps(Aws::Vector<Aws::String>&& value) { m_publicIpsHasBeenSet = true; m_publicIps = std::move(value); }
50 inline DescribeAddressesRequest& WithPublicIps(const Aws::Vector<Aws::String>& value) { SetPublicIps(value); return *this;}
51 inline DescribeAddressesRequest& WithPublicIps(Aws::Vector<Aws::String>&& value) { SetPublicIps(std::move(value)); return *this;}
52 inline DescribeAddressesRequest& AddPublicIps(const Aws::String& value) { m_publicIpsHasBeenSet = true; m_publicIps.push_back(value); return *this; }
53 inline DescribeAddressesRequest& AddPublicIps(Aws::String&& value) { m_publicIpsHasBeenSet = true; m_publicIps.push_back(std::move(value)); return *this; }
54 inline DescribeAddressesRequest& AddPublicIps(const char* value) { m_publicIpsHasBeenSet = true; m_publicIps.push_back(value); return *this; }
56
58
64 inline bool GetDryRun() const{ return m_dryRun; }
65 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
66 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
67 inline DescribeAddressesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
69
71
94 inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
95 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
96 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
97 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
98 inline DescribeAddressesRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
99 inline DescribeAddressesRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
100 inline DescribeAddressesRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
101 inline DescribeAddressesRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
103
105
108 inline const Aws::Vector<Aws::String>& GetAllocationIds() const{ return m_allocationIds; }
109 inline bool AllocationIdsHasBeenSet() const { return m_allocationIdsHasBeenSet; }
110 inline void SetAllocationIds(const Aws::Vector<Aws::String>& value) { m_allocationIdsHasBeenSet = true; m_allocationIds = value; }
111 inline void SetAllocationIds(Aws::Vector<Aws::String>&& value) { m_allocationIdsHasBeenSet = true; m_allocationIds = std::move(value); }
113 inline DescribeAddressesRequest& WithAllocationIds(Aws::Vector<Aws::String>&& value) { SetAllocationIds(std::move(value)); return *this;}
114 inline DescribeAddressesRequest& AddAllocationIds(const Aws::String& value) { m_allocationIdsHasBeenSet = true; m_allocationIds.push_back(value); return *this; }
115 inline DescribeAddressesRequest& AddAllocationIds(Aws::String&& value) { m_allocationIdsHasBeenSet = true; m_allocationIds.push_back(std::move(value)); return *this; }
116 inline DescribeAddressesRequest& AddAllocationIds(const char* value) { m_allocationIdsHasBeenSet = true; m_allocationIds.push_back(value); return *this; }
118 private:
119
120 Aws::Vector<Aws::String> m_publicIps;
121 bool m_publicIpsHasBeenSet = false;
122
123 bool m_dryRun;
124 bool m_dryRunHasBeenSet = false;
125
126 Aws::Vector<Filter> m_filters;
127 bool m_filtersHasBeenSet = false;
128
129 Aws::Vector<Aws::String> m_allocationIds;
130 bool m_allocationIdsHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace EC2
135} // namespace Aws
AWS_EC2_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetAllocationIds() const
DescribeAddressesRequest & WithFilters(Aws::Vector< Filter > &&value)
DescribeAddressesRequest & WithFilters(const Aws::Vector< Filter > &value)
void SetAllocationIds(Aws::Vector< Aws::String > &&value)
DescribeAddressesRequest & AddAllocationIds(const Aws::String &value)
DescribeAddressesRequest & WithPublicIps(const Aws::Vector< Aws::String > &value)
DescribeAddressesRequest & WithAllocationIds(const Aws::Vector< Aws::String > &value)
DescribeAddressesRequest & AddFilters(Filter &&value)
void SetFilters(Aws::Vector< Filter > &&value)
DescribeAddressesRequest & AddAllocationIds(const char *value)
virtual const char * GetServiceRequestName() const override
DescribeAddressesRequest & AddPublicIps(const Aws::String &value)
void SetFilters(const Aws::Vector< Filter > &value)
const Aws::Vector< Filter > & GetFilters() const
DescribeAddressesRequest & WithAllocationIds(Aws::Vector< Aws::String > &&value)
DescribeAddressesRequest & WithDryRun(bool value)
void SetAllocationIds(const Aws::Vector< Aws::String > &value)
DescribeAddressesRequest & AddPublicIps(const char *value)
void SetPublicIps(const Aws::Vector< Aws::String > &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< Aws::String > & GetPublicIps() const
DescribeAddressesRequest & AddPublicIps(Aws::String &&value)
DescribeAddressesRequest & AddFilters(const Filter &value)
DescribeAddressesRequest & AddAllocationIds(Aws::String &&value)
DescribeAddressesRequest & WithPublicIps(Aws::Vector< Aws::String > &&value)
void SetPublicIps(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector