AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeHostReservationOfferingsRequest.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 "DescribeHostReservationOfferings"; }
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 const Aws::Vector<Filter>& GetFilter() const { return m_filter; }
45 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
46 template <typename FilterT = Aws::Vector<Filter>>
47 void SetFilter(FilterT&& value) {
48 m_filterHasBeenSet = true;
49 m_filter = std::forward<FilterT>(value);
50 }
51 template <typename FilterT = Aws::Vector<Filter>>
53 SetFilter(std::forward<FilterT>(value));
54 return *this;
55 }
56 template <typename FilterT = Filter>
58 m_filterHasBeenSet = true;
59 m_filter.emplace_back(std::forward<FilterT>(value));
60 return *this;
61 }
63
65
72 inline int GetMaxDuration() const { return m_maxDuration; }
73 inline bool MaxDurationHasBeenSet() const { return m_maxDurationHasBeenSet; }
74 inline void SetMaxDuration(int value) {
75 m_maxDurationHasBeenSet = true;
76 m_maxDuration = value;
77 }
79 SetMaxDuration(value);
80 return *this;
81 }
83
85
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
112 inline int GetMinDuration() const { return m_minDuration; }
113 inline bool MinDurationHasBeenSet() const { return m_minDurationHasBeenSet; }
114 inline void SetMinDuration(int value) {
115 m_minDurationHasBeenSet = true;
116 m_minDuration = value;
117 }
119 SetMinDuration(value);
120 return *this;
121 }
123
125
128 inline const Aws::String& GetNextToken() const { return m_nextToken; }
129 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
130 template <typename NextTokenT = Aws::String>
131 void SetNextToken(NextTokenT&& value) {
132 m_nextTokenHasBeenSet = true;
133 m_nextToken = std::forward<NextTokenT>(value);
134 }
135 template <typename NextTokenT = Aws::String>
137 SetNextToken(std::forward<NextTokenT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::String& GetOfferingId() const { return m_offeringId; }
147 inline bool OfferingIdHasBeenSet() const { return m_offeringIdHasBeenSet; }
148 template <typename OfferingIdT = Aws::String>
149 void SetOfferingId(OfferingIdT&& value) {
150 m_offeringIdHasBeenSet = true;
151 m_offeringId = std::forward<OfferingIdT>(value);
152 }
153 template <typename OfferingIdT = Aws::String>
155 SetOfferingId(std::forward<OfferingIdT>(value));
156 return *this;
157 }
159 private:
160 Aws::Vector<Filter> m_filter;
161
162 int m_maxDuration{0};
163
164 int m_maxResults{0};
165
166 int m_minDuration{0};
167
168 Aws::String m_nextToken;
169
170 Aws::String m_offeringId;
171 bool m_filterHasBeenSet = false;
172 bool m_maxDurationHasBeenSet = false;
173 bool m_maxResultsHasBeenSet = false;
174 bool m_minDurationHasBeenSet = false;
175 bool m_nextTokenHasBeenSet = false;
176 bool m_offeringIdHasBeenSet = false;
177};
178
179} // namespace Model
180} // namespace EC2
181} // namespace Aws
DescribeHostReservationOfferingsRequest & WithMinDuration(int value)
DescribeHostReservationOfferingsRequest & AddFilter(FilterT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeHostReservationOfferingsRequest & WithFilter(FilterT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeHostReservationOfferingsRequest & WithMaxResults(int value)
DescribeHostReservationOfferingsRequest & WithMaxDuration(int value)
DescribeHostReservationOfferingsRequest & WithNextToken(NextTokenT &&value)
DescribeHostReservationOfferingsRequest & WithOfferingId(OfferingIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector