AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GetCoipPoolUsageRequest.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 GetCoipPoolUsageRequest() = 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 "GetCoipPoolUsage"; }
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
41 inline const Aws::String& GetPoolId() const { return m_poolId; }
42 inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; }
43 template <typename PoolIdT = Aws::String>
44 void SetPoolId(PoolIdT&& value) {
45 m_poolIdHasBeenSet = true;
46 m_poolId = std::forward<PoolIdT>(value);
47 }
48 template <typename PoolIdT = Aws::String>
50 SetPoolId(std::forward<PoolIdT>(value));
51 return *this;
52 }
54
56
66 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
67 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
68 template <typename FiltersT = Aws::Vector<Filter>>
69 void SetFilters(FiltersT&& value) {
70 m_filtersHasBeenSet = true;
71 m_filters = std::forward<FiltersT>(value);
72 }
73 template <typename FiltersT = Aws::Vector<Filter>>
75 SetFilters(std::forward<FiltersT>(value));
76 return *this;
77 }
78 template <typename FiltersT = Filter>
80 m_filtersHasBeenSet = true;
81 m_filters.emplace_back(std::forward<FiltersT>(value));
82 return *this;
83 }
85
87
92 inline int GetMaxResults() const { return m_maxResults; }
93 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
94 inline void SetMaxResults(int value) {
95 m_maxResultsHasBeenSet = true;
96 m_maxResults = value;
97 }
99 SetMaxResults(value);
100 return *this;
101 }
103
105
108 inline const Aws::String& GetNextToken() const { return m_nextToken; }
109 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
110 template <typename NextTokenT = Aws::String>
111 void SetNextToken(NextTokenT&& value) {
112 m_nextTokenHasBeenSet = true;
113 m_nextToken = std::forward<NextTokenT>(value);
114 }
115 template <typename NextTokenT = Aws::String>
117 SetNextToken(std::forward<NextTokenT>(value));
118 return *this;
119 }
121
123
129 inline bool GetDryRun() const { return m_dryRun; }
130 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
131 inline void SetDryRun(bool value) {
132 m_dryRunHasBeenSet = true;
133 m_dryRun = value;
134 }
136 SetDryRun(value);
137 return *this;
138 }
140 private:
141 Aws::String m_poolId;
142
143 Aws::Vector<Filter> m_filters;
144
145 int m_maxResults{0};
146
147 Aws::String m_nextToken;
148
149 bool m_dryRun{false};
150 bool m_poolIdHasBeenSet = false;
151 bool m_filtersHasBeenSet = false;
152 bool m_maxResultsHasBeenSet = false;
153 bool m_nextTokenHasBeenSet = false;
154 bool m_dryRunHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace EC2
159} // namespace Aws
GetCoipPoolUsageRequest & WithNextToken(NextTokenT &&value)
GetCoipPoolUsageRequest & WithFilters(FiltersT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Filter > & GetFilters() const
GetCoipPoolUsageRequest & AddFilters(FiltersT &&value)
AWS_EC2_API GetCoipPoolUsageRequest()=default
GetCoipPoolUsageRequest & WithPoolId(PoolIdT &&value)
GetCoipPoolUsageRequest & WithDryRun(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
GetCoipPoolUsageRequest & WithMaxResults(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector