AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeCapacityReservationTopologyRequest.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:
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 "DescribeCapacityReservationTopology"; }
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
61 inline const Aws::String& GetNextToken() const { return m_nextToken; }
62 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
63 template <typename NextTokenT = Aws::String>
64 void SetNextToken(NextTokenT&& value) {
65 m_nextTokenHasBeenSet = true;
66 m_nextToken = std::forward<NextTokenT>(value);
67 }
68 template <typename NextTokenT = Aws::String>
70 SetNextToken(std::forward<NextTokenT>(value));
71 return *this;
72 }
74
76
84 inline int GetMaxResults() const { return m_maxResults; }
85 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
86 inline void SetMaxResults(int value) {
87 m_maxResultsHasBeenSet = true;
88 m_maxResults = value;
89 }
91 SetMaxResults(value);
92 return *this;
93 }
95
97
102 inline const Aws::Vector<Aws::String>& GetCapacityReservationIds() const { return m_capacityReservationIds; }
103 inline bool CapacityReservationIdsHasBeenSet() const { return m_capacityReservationIdsHasBeenSet; }
104 template <typename CapacityReservationIdsT = Aws::Vector<Aws::String>>
105 void SetCapacityReservationIds(CapacityReservationIdsT&& value) {
106 m_capacityReservationIdsHasBeenSet = true;
107 m_capacityReservationIds = std::forward<CapacityReservationIdsT>(value);
108 }
109 template <typename CapacityReservationIdsT = Aws::Vector<Aws::String>>
111 SetCapacityReservationIds(std::forward<CapacityReservationIdsT>(value));
112 return *this;
113 }
114 template <typename CapacityReservationIdsT = Aws::String>
116 m_capacityReservationIdsHasBeenSet = true;
117 m_capacityReservationIds.emplace_back(std::forward<CapacityReservationIdsT>(value));
118 return *this;
119 }
121
123
132 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
133 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
134 template <typename FiltersT = Aws::Vector<Filter>>
135 void SetFilters(FiltersT&& value) {
136 m_filtersHasBeenSet = true;
137 m_filters = std::forward<FiltersT>(value);
138 }
139 template <typename FiltersT = Aws::Vector<Filter>>
141 SetFilters(std::forward<FiltersT>(value));
142 return *this;
143 }
144 template <typename FiltersT = Filter>
146 m_filtersHasBeenSet = true;
147 m_filters.emplace_back(std::forward<FiltersT>(value));
148 return *this;
149 }
151 private:
152 bool m_dryRun{false};
153
154 Aws::String m_nextToken;
155
156 int m_maxResults{0};
157
158 Aws::Vector<Aws::String> m_capacityReservationIds;
159
160 Aws::Vector<Filter> m_filters;
161 bool m_dryRunHasBeenSet = false;
162 bool m_nextTokenHasBeenSet = false;
163 bool m_maxResultsHasBeenSet = false;
164 bool m_capacityReservationIdsHasBeenSet = false;
165 bool m_filtersHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace EC2
170} // namespace Aws
DescribeCapacityReservationTopologyRequest & WithCapacityReservationIds(CapacityReservationIdsT &&value)
DescribeCapacityReservationTopologyRequest & AddCapacityReservationIds(CapacityReservationIdsT &&value)
DescribeCapacityReservationTopologyRequest & WithFilters(FiltersT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeCapacityReservationTopologyRequest & WithNextToken(NextTokenT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeCapacityReservationTopologyRequest & AddFilters(FiltersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector