AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
DescribeIpamPoolAllocationsRequest.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 DescribeIpamPoolAllocationsRequest() = 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 "DescribeIpamPoolAllocations"; }
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
44 inline bool GetDryRun() const { return m_dryRun; }
45 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
46 inline void SetDryRun(bool value) {
47 m_dryRunHasBeenSet = true;
48 m_dryRun = value;
49 }
51 SetDryRun(value);
52 return *this;
53 }
55
57
60 inline const Aws::Vector<Aws::String>& GetIpamPoolAllocationIds() const { return m_ipamPoolAllocationIds; }
61 inline bool IpamPoolAllocationIdsHasBeenSet() const { return m_ipamPoolAllocationIdsHasBeenSet; }
62 template <typename IpamPoolAllocationIdsT = Aws::Vector<Aws::String>>
63 void SetIpamPoolAllocationIds(IpamPoolAllocationIdsT&& value) {
64 m_ipamPoolAllocationIdsHasBeenSet = true;
65 m_ipamPoolAllocationIds = std::forward<IpamPoolAllocationIdsT>(value);
66 }
67 template <typename IpamPoolAllocationIdsT = Aws::Vector<Aws::String>>
69 SetIpamPoolAllocationIds(std::forward<IpamPoolAllocationIdsT>(value));
70 return *this;
71 }
72 template <typename IpamPoolAllocationIdsT = Aws::String>
74 m_ipamPoolAllocationIdsHasBeenSet = true;
75 m_ipamPoolAllocationIds.emplace_back(std::forward<IpamPoolAllocationIdsT>(value));
76 return *this;
77 }
79
81
87 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
88 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
89 template <typename FiltersT = Aws::Vector<Filter>>
90 void SetFilters(FiltersT&& value) {
91 m_filtersHasBeenSet = true;
92 m_filters = std::forward<FiltersT>(value);
93 }
94 template <typename FiltersT = Aws::Vector<Filter>>
96 SetFilters(std::forward<FiltersT>(value));
97 return *this;
98 }
99 template <typename FiltersT = Filter>
101 m_filtersHasBeenSet = true;
102 m_filters.emplace_back(std::forward<FiltersT>(value));
103 return *this;
104 }
106
108
114 inline int GetMaxResults() const { return m_maxResults; }
115 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
116 inline void SetMaxResults(int value) {
117 m_maxResultsHasBeenSet = true;
118 m_maxResults = value;
119 }
121 SetMaxResults(value);
122 return *this;
123 }
125
127
130 inline const Aws::String& GetNextToken() const { return m_nextToken; }
131 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
132 template <typename NextTokenT = Aws::String>
133 void SetNextToken(NextTokenT&& value) {
134 m_nextTokenHasBeenSet = true;
135 m_nextToken = std::forward<NextTokenT>(value);
136 }
137 template <typename NextTokenT = Aws::String>
139 SetNextToken(std::forward<NextTokenT>(value));
140 return *this;
141 }
143 private:
144 bool m_dryRun{false};
145
146 Aws::Vector<Aws::String> m_ipamPoolAllocationIds;
147
148 Aws::Vector<Filter> m_filters;
149
150 int m_maxResults{0};
151
152 Aws::String m_nextToken;
153 bool m_dryRunHasBeenSet = false;
154 bool m_ipamPoolAllocationIdsHasBeenSet = false;
155 bool m_filtersHasBeenSet = false;
156 bool m_maxResultsHasBeenSet = false;
157 bool m_nextTokenHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace EC2
162} // namespace Aws
DescribeIpamPoolAllocationsRequest & WithFilters(FiltersT &&value)
DescribeIpamPoolAllocationsRequest & AddFilters(FiltersT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeIpamPoolAllocationsRequest & WithIpamPoolAllocationIds(IpamPoolAllocationIdsT &&value)
const Aws::Vector< Aws::String > & GetIpamPoolAllocationIds() const
DescribeIpamPoolAllocationsRequest & WithMaxResults(int value)
DescribeIpamPoolAllocationsRequest & WithNextToken(NextTokenT &&value)
DescribeIpamPoolAllocationsRequest & WithDryRun(bool value)
DescribeIpamPoolAllocationsRequest & AddIpamPoolAllocationIds(IpamPoolAllocationIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector