AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeAddressesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/Filter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EC2 {
17namespace Model {
18
22 public:
23 AWS_EC2_API DescribeAddressesRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DescribeAddresses"; }
30
31 AWS_EC2_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
42 inline const Aws::Vector<Aws::String>& GetPublicIps() const { return m_publicIps; }
43 inline bool PublicIpsHasBeenSet() const { return m_publicIpsHasBeenSet; }
44 template <typename PublicIpsT = Aws::Vector<Aws::String>>
45 void SetPublicIps(PublicIpsT&& value) {
46 m_publicIpsHasBeenSet = true;
47 m_publicIps = std::forward<PublicIpsT>(value);
48 }
49 template <typename PublicIpsT = Aws::Vector<Aws::String>>
51 SetPublicIps(std::forward<PublicIpsT>(value));
52 return *this;
53 }
54 template <typename PublicIpsT = Aws::String>
56 m_publicIpsHasBeenSet = true;
57 m_publicIps.emplace_back(std::forward<PublicIpsT>(value));
58 return *this;
59 }
61
63
69 inline bool GetDryRun() const { return m_dryRun; }
70 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
71 inline void SetDryRun(bool value) {
72 m_dryRunHasBeenSet = true;
73 m_dryRun = value;
74 }
76 SetDryRun(value);
77 return *this;
78 }
80
82
105 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
106 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
107 template <typename FiltersT = Aws::Vector<Filter>>
108 void SetFilters(FiltersT&& value) {
109 m_filtersHasBeenSet = true;
110 m_filters = std::forward<FiltersT>(value);
111 }
112 template <typename FiltersT = Aws::Vector<Filter>>
114 SetFilters(std::forward<FiltersT>(value));
115 return *this;
116 }
117 template <typename FiltersT = Filter>
119 m_filtersHasBeenSet = true;
120 m_filters.emplace_back(std::forward<FiltersT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::Vector<Aws::String>& GetAllocationIds() const { return m_allocationIds; }
130 inline bool AllocationIdsHasBeenSet() const { return m_allocationIdsHasBeenSet; }
131 template <typename AllocationIdsT = Aws::Vector<Aws::String>>
132 void SetAllocationIds(AllocationIdsT&& value) {
133 m_allocationIdsHasBeenSet = true;
134 m_allocationIds = std::forward<AllocationIdsT>(value);
135 }
136 template <typename AllocationIdsT = Aws::Vector<Aws::String>>
138 SetAllocationIds(std::forward<AllocationIdsT>(value));
139 return *this;
140 }
141 template <typename AllocationIdsT = Aws::String>
143 m_allocationIdsHasBeenSet = true;
144 m_allocationIds.emplace_back(std::forward<AllocationIdsT>(value));
145 return *this;
146 }
148 private:
149 Aws::Vector<Aws::String> m_publicIps;
150
151 bool m_dryRun{false};
152
153 Aws::Vector<Filter> m_filters;
154
155 Aws::Vector<Aws::String> m_allocationIds;
156 bool m_publicIpsHasBeenSet = false;
157 bool m_dryRunHasBeenSet = false;
158 bool m_filtersHasBeenSet = false;
159 bool m_allocationIdsHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace EC2
164} // namespace Aws
AWS_EC2_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetAllocationIds() const
DescribeAddressesRequest & WithFilters(FiltersT &&value)
DescribeAddressesRequest & AddAllocationIds(AllocationIdsT &&value)
DescribeAddressesRequest & WithPublicIps(PublicIpsT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Filter > & GetFilters() const
AWS_EC2_API DescribeAddressesRequest()=default
DescribeAddressesRequest & WithDryRun(bool value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeAddressesRequest & AddFilters(FiltersT &&value)
const Aws::Vector< Aws::String > & GetPublicIps() const
DescribeAddressesRequest & AddPublicIps(PublicIpsT &&value)
DescribeAddressesRequest & WithAllocationIds(AllocationIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector