AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
GetIpamPoolCidrsRequest.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 GetIpamPoolCidrsRequest() = 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 "GetIpamPoolCidrs"; }
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 }
50 inline GetIpamPoolCidrsRequest& WithDryRun(bool value) {
51 SetDryRun(value);
52 return *this;
53 }
55
57
60 inline const Aws::String& GetIpamPoolId() const { return m_ipamPoolId; }
61 inline bool IpamPoolIdHasBeenSet() const { return m_ipamPoolIdHasBeenSet; }
62 template <typename IpamPoolIdT = Aws::String>
63 void SetIpamPoolId(IpamPoolIdT&& value) {
64 m_ipamPoolIdHasBeenSet = true;
65 m_ipamPoolId = std::forward<IpamPoolIdT>(value);
66 }
67 template <typename IpamPoolIdT = Aws::String>
69 SetIpamPoolId(std::forward<IpamPoolIdT>(value));
70 return *this;
71 }
73
75
81 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
82 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
83 template <typename FiltersT = Aws::Vector<Filter>>
84 void SetFilters(FiltersT&& value) {
85 m_filtersHasBeenSet = true;
86 m_filters = std::forward<FiltersT>(value);
87 }
88 template <typename FiltersT = Aws::Vector<Filter>>
90 SetFilters(std::forward<FiltersT>(value));
91 return *this;
92 }
93 template <typename FiltersT = Filter>
95 m_filtersHasBeenSet = true;
96 m_filters.emplace_back(std::forward<FiltersT>(value));
97 return *this;
98 }
100
102
108 inline int GetMaxResults() const { return m_maxResults; }
109 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
110 inline void SetMaxResults(int value) {
111 m_maxResultsHasBeenSet = true;
112 m_maxResults = value;
113 }
115 SetMaxResults(value);
116 return *this;
117 }
119
121
124 inline const Aws::String& GetNextToken() const { return m_nextToken; }
125 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
126 template <typename NextTokenT = Aws::String>
127 void SetNextToken(NextTokenT&& value) {
128 m_nextTokenHasBeenSet = true;
129 m_nextToken = std::forward<NextTokenT>(value);
130 }
131 template <typename NextTokenT = Aws::String>
133 SetNextToken(std::forward<NextTokenT>(value));
134 return *this;
135 }
137 private:
138 bool m_dryRun{false};
139
140 Aws::String m_ipamPoolId;
141
142 Aws::Vector<Filter> m_filters;
143
144 int m_maxResults{0};
145
146 Aws::String m_nextToken;
147 bool m_dryRunHasBeenSet = false;
148 bool m_ipamPoolIdHasBeenSet = false;
149 bool m_filtersHasBeenSet = false;
150 bool m_maxResultsHasBeenSet = false;
151 bool m_nextTokenHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace EC2
156} // namespace Aws
GetIpamPoolCidrsRequest & WithIpamPoolId(IpamPoolIdT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
GetIpamPoolCidrsRequest & AddFilters(FiltersT &&value)
AWS_EC2_API GetIpamPoolCidrsRequest()=default
virtual const char * GetServiceRequestName() const override
GetIpamPoolCidrsRequest & WithDryRun(bool value)
GetIpamPoolCidrsRequest & WithNextToken(NextTokenT &&value)
const Aws::Vector< Filter > & GetFilters() const
GetIpamPoolCidrsRequest & WithFilters(FiltersT &&value)
GetIpamPoolCidrsRequest & WithMaxResults(int value)
AWS_EC2_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector