AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
26 AWS_EC2_API DescribeAddressesRequest() = default;
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 template<typename PublicIpsT = Aws::Vector<Aws::String>>
49 void SetPublicIps(PublicIpsT&& value) { m_publicIpsHasBeenSet = true; m_publicIps = std::forward<PublicIpsT>(value); }
50 template<typename PublicIpsT = Aws::Vector<Aws::String>>
51 DescribeAddressesRequest& WithPublicIps(PublicIpsT&& value) { SetPublicIps(std::forward<PublicIpsT>(value)); return *this;}
52 template<typename PublicIpsT = Aws::String>
53 DescribeAddressesRequest& AddPublicIps(PublicIpsT&& value) { m_publicIpsHasBeenSet = true; m_publicIps.emplace_back(std::forward<PublicIpsT>(value)); return *this; }
55
57
63 inline bool GetDryRun() const { return m_dryRun; }
64 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
65 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
66 inline DescribeAddressesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
68
70
93 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
94 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
95 template<typename FiltersT = Aws::Vector<Filter>>
96 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
97 template<typename FiltersT = Aws::Vector<Filter>>
98 DescribeAddressesRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
99 template<typename FiltersT = Filter>
100 DescribeAddressesRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
102
104
107 inline const Aws::Vector<Aws::String>& GetAllocationIds() const { return m_allocationIds; }
108 inline bool AllocationIdsHasBeenSet() const { return m_allocationIdsHasBeenSet; }
109 template<typename AllocationIdsT = Aws::Vector<Aws::String>>
110 void SetAllocationIds(AllocationIdsT&& value) { m_allocationIdsHasBeenSet = true; m_allocationIds = std::forward<AllocationIdsT>(value); }
111 template<typename AllocationIdsT = Aws::Vector<Aws::String>>
112 DescribeAddressesRequest& WithAllocationIds(AllocationIdsT&& value) { SetAllocationIds(std::forward<AllocationIdsT>(value)); return *this;}
113 template<typename AllocationIdsT = Aws::String>
114 DescribeAddressesRequest& AddAllocationIds(AllocationIdsT&& value) { m_allocationIdsHasBeenSet = true; m_allocationIds.emplace_back(std::forward<AllocationIdsT>(value)); return *this; }
116 private:
117
118 Aws::Vector<Aws::String> m_publicIps;
119 bool m_publicIpsHasBeenSet = false;
120
121 bool m_dryRun{false};
122 bool m_dryRunHasBeenSet = false;
123
124 Aws::Vector<Filter> m_filters;
125 bool m_filtersHasBeenSet = false;
126
127 Aws::Vector<Aws::String> m_allocationIds;
128 bool m_allocationIdsHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace EC2
133} // 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