AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeCapacityBlocksRequest.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 DescribeCapacityBlocksRequest() = 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 "DescribeCapacityBlocks"; }
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::Vector<Aws::String>& GetCapacityBlockIds() const { return m_capacityBlockIds; }
42 inline bool CapacityBlockIdsHasBeenSet() const { return m_capacityBlockIdsHasBeenSet; }
43 template <typename CapacityBlockIdsT = Aws::Vector<Aws::String>>
44 void SetCapacityBlockIds(CapacityBlockIdsT&& value) {
45 m_capacityBlockIdsHasBeenSet = true;
46 m_capacityBlockIds = std::forward<CapacityBlockIdsT>(value);
47 }
48 template <typename CapacityBlockIdsT = Aws::Vector<Aws::String>>
50 SetCapacityBlockIds(std::forward<CapacityBlockIdsT>(value));
51 return *this;
52 }
53 template <typename CapacityBlockIdsT = Aws::String>
55 m_capacityBlockIdsHasBeenSet = true;
56 m_capacityBlockIds.emplace_back(std::forward<CapacityBlockIdsT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetNextToken() const { return m_nextToken; }
66 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
67 template <typename NextTokenT = Aws::String>
68 void SetNextToken(NextTokenT&& value) {
69 m_nextTokenHasBeenSet = true;
70 m_nextToken = std::forward<NextTokenT>(value);
71 }
72 template <typename NextTokenT = Aws::String>
74 SetNextToken(std::forward<NextTokenT>(value));
75 return *this;
76 }
78
80
86 inline int GetMaxResults() const { return m_maxResults; }
87 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
88 inline void SetMaxResults(int value) {
89 m_maxResultsHasBeenSet = true;
90 m_maxResults = value;
91 }
93 SetMaxResults(value);
94 return *this;
95 }
97
99
116 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
117 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
118 template <typename FiltersT = Aws::Vector<Filter>>
119 void SetFilters(FiltersT&& value) {
120 m_filtersHasBeenSet = true;
121 m_filters = std::forward<FiltersT>(value);
122 }
123 template <typename FiltersT = Aws::Vector<Filter>>
125 SetFilters(std::forward<FiltersT>(value));
126 return *this;
127 }
128 template <typename FiltersT = Filter>
130 m_filtersHasBeenSet = true;
131 m_filters.emplace_back(std::forward<FiltersT>(value));
132 return *this;
133 }
135
137
143 inline bool GetDryRun() const { return m_dryRun; }
144 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
145 inline void SetDryRun(bool value) {
146 m_dryRunHasBeenSet = true;
147 m_dryRun = value;
148 }
150 SetDryRun(value);
151 return *this;
152 }
154 private:
155 Aws::Vector<Aws::String> m_capacityBlockIds;
156
157 Aws::String m_nextToken;
158
159 int m_maxResults{0};
160
161 Aws::Vector<Filter> m_filters;
162
163 bool m_dryRun{false};
164 bool m_capacityBlockIdsHasBeenSet = false;
165 bool m_nextTokenHasBeenSet = false;
166 bool m_maxResultsHasBeenSet = false;
167 bool m_filtersHasBeenSet = false;
168 bool m_dryRunHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace EC2
173} // namespace Aws
DescribeCapacityBlocksRequest & WithFilters(FiltersT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeCapacityBlocksRequest & WithNextToken(NextTokenT &&value)
DescribeCapacityBlocksRequest & WithDryRun(bool value)
const Aws::Vector< Aws::String > & GetCapacityBlockIds() const
DescribeCapacityBlocksRequest & WithMaxResults(int value)
DescribeCapacityBlocksRequest & WithCapacityBlockIds(CapacityBlockIdsT &&value)
DescribeCapacityBlocksRequest & AddCapacityBlockIds(CapacityBlockIdsT &&value)
virtual const char * GetServiceRequestName() const override
DescribeCapacityBlocksRequest & AddFilters(FiltersT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector