AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
DescribeDimensionKeysRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/pi/PIRequest.h>
12#include <aws/pi/PI_EXPORTS.h>
13#include <aws/pi/model/DimensionGroup.h>
14#include <aws/pi/model/ServiceType.h>
15
16#include <utility>
17
18namespace Aws {
19namespace PI {
20namespace Model {
21
25 public:
26 AWS_PI_API DescribeDimensionKeysRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "DescribeDimensionKeys"; }
33
34 AWS_PI_API Aws::String SerializePayload() const override;
35
37
39
44 inline ServiceType GetServiceType() const { return m_serviceType; }
45 inline bool ServiceTypeHasBeenSet() const { return m_serviceTypeHasBeenSet; }
46 inline void SetServiceType(ServiceType value) {
47 m_serviceTypeHasBeenSet = true;
48 m_serviceType = value;
49 }
51 SetServiceType(value);
52 return *this;
53 }
55
57
63 inline const Aws::String& GetIdentifier() const { return m_identifier; }
64 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
65 template <typename IdentifierT = Aws::String>
66 void SetIdentifier(IdentifierT&& value) {
67 m_identifierHasBeenSet = true;
68 m_identifier = std::forward<IdentifierT>(value);
69 }
70 template <typename IdentifierT = Aws::String>
72 SetIdentifier(std::forward<IdentifierT>(value));
73 return *this;
74 }
76
78
86 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
87 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
88 template <typename StartTimeT = Aws::Utils::DateTime>
89 void SetStartTime(StartTimeT&& value) {
90 m_startTimeHasBeenSet = true;
91 m_startTime = std::forward<StartTimeT>(value);
92 }
93 template <typename StartTimeT = Aws::Utils::DateTime>
95 SetStartTime(std::forward<StartTimeT>(value));
96 return *this;
97 }
99
101
108 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
109 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
110 template <typename EndTimeT = Aws::Utils::DateTime>
111 void SetEndTime(EndTimeT&& value) {
112 m_endTimeHasBeenSet = true;
113 m_endTime = std::forward<EndTimeT>(value);
114 }
115 template <typename EndTimeT = Aws::Utils::DateTime>
117 SetEndTime(std::forward<EndTimeT>(value));
118 return *this;
119 }
121
123
137 inline const Aws::String& GetMetric() const { return m_metric; }
138 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
139 template <typename MetricT = Aws::String>
140 void SetMetric(MetricT&& value) {
141 m_metricHasBeenSet = true;
142 m_metric = std::forward<MetricT>(value);
143 }
144 template <typename MetricT = Aws::String>
146 SetMetric(std::forward<MetricT>(value));
147 return *this;
148 }
150
152
163 inline int GetPeriodInSeconds() const { return m_periodInSeconds; }
164 inline bool PeriodInSecondsHasBeenSet() const { return m_periodInSecondsHasBeenSet; }
165 inline void SetPeriodInSeconds(int value) {
166 m_periodInSecondsHasBeenSet = true;
167 m_periodInSeconds = value;
168 }
170 SetPeriodInSeconds(value);
171 return *this;
172 }
174
176
183 inline const DimensionGroup& GetGroupBy() const { return m_groupBy; }
184 inline bool GroupByHasBeenSet() const { return m_groupByHasBeenSet; }
185 template <typename GroupByT = DimensionGroup>
186 void SetGroupBy(GroupByT&& value) {
187 m_groupByHasBeenSet = true;
188 m_groupBy = std::forward<GroupByT>(value);
189 }
190 template <typename GroupByT = DimensionGroup>
192 SetGroupBy(std::forward<GroupByT>(value));
193 return *this;
194 }
196
198
206 inline const Aws::Vector<Aws::String>& GetAdditionalMetrics() const { return m_additionalMetrics; }
207 inline bool AdditionalMetricsHasBeenSet() const { return m_additionalMetricsHasBeenSet; }
208 template <typename AdditionalMetricsT = Aws::Vector<Aws::String>>
209 void SetAdditionalMetrics(AdditionalMetricsT&& value) {
210 m_additionalMetricsHasBeenSet = true;
211 m_additionalMetrics = std::forward<AdditionalMetricsT>(value);
212 }
213 template <typename AdditionalMetricsT = Aws::Vector<Aws::String>>
215 SetAdditionalMetrics(std::forward<AdditionalMetricsT>(value));
216 return *this;
217 }
218 template <typename AdditionalMetricsT = Aws::String>
220 m_additionalMetricsHasBeenSet = true;
221 m_additionalMetrics.emplace_back(std::forward<AdditionalMetricsT>(value));
222 return *this;
223 }
225
227
231 inline const DimensionGroup& GetPartitionBy() const { return m_partitionBy; }
232 inline bool PartitionByHasBeenSet() const { return m_partitionByHasBeenSet; }
233 template <typename PartitionByT = DimensionGroup>
234 void SetPartitionBy(PartitionByT&& value) {
235 m_partitionByHasBeenSet = true;
236 m_partitionBy = std::forward<PartitionByT>(value);
237 }
238 template <typename PartitionByT = DimensionGroup>
240 SetPartitionBy(std::forward<PartitionByT>(value));
241 return *this;
242 }
244
246
254 inline const Aws::Map<Aws::String, Aws::String>& GetFilter() const { return m_filter; }
255 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
256 template <typename FilterT = Aws::Map<Aws::String, Aws::String>>
257 void SetFilter(FilterT&& value) {
258 m_filterHasBeenSet = true;
259 m_filter = std::forward<FilterT>(value);
260 }
261 template <typename FilterT = Aws::Map<Aws::String, Aws::String>>
263 SetFilter(std::forward<FilterT>(value));
264 return *this;
265 }
266 template <typename FilterKeyT = Aws::String, typename FilterValueT = Aws::String>
267 DescribeDimensionKeysRequest& AddFilter(FilterKeyT&& key, FilterValueT&& value) {
268 m_filterHasBeenSet = true;
269 m_filter.emplace(std::forward<FilterKeyT>(key), std::forward<FilterValueT>(value));
270 return *this;
271 }
273
275
280 inline int GetMaxResults() const { return m_maxResults; }
281 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
282 inline void SetMaxResults(int value) {
283 m_maxResultsHasBeenSet = true;
284 m_maxResults = value;
285 }
287 SetMaxResults(value);
288 return *this;
289 }
291
293
298 inline const Aws::String& GetNextToken() const { return m_nextToken; }
299 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
300 template <typename NextTokenT = Aws::String>
301 void SetNextToken(NextTokenT&& value) {
302 m_nextTokenHasBeenSet = true;
303 m_nextToken = std::forward<NextTokenT>(value);
304 }
305 template <typename NextTokenT = Aws::String>
307 SetNextToken(std::forward<NextTokenT>(value));
308 return *this;
309 }
311 private:
312 ServiceType m_serviceType{ServiceType::NOT_SET};
313
314 Aws::String m_identifier;
315
316 Aws::Utils::DateTime m_startTime{};
317
318 Aws::Utils::DateTime m_endTime{};
319
320 Aws::String m_metric;
321
322 int m_periodInSeconds{0};
323
324 DimensionGroup m_groupBy;
325
326 Aws::Vector<Aws::String> m_additionalMetrics;
327
328 DimensionGroup m_partitionBy;
329
331
332 int m_maxResults{0};
333
334 Aws::String m_nextToken;
335 bool m_serviceTypeHasBeenSet = false;
336 bool m_identifierHasBeenSet = false;
337 bool m_startTimeHasBeenSet = false;
338 bool m_endTimeHasBeenSet = false;
339 bool m_metricHasBeenSet = false;
340 bool m_periodInSecondsHasBeenSet = false;
341 bool m_groupByHasBeenSet = false;
342 bool m_additionalMetricsHasBeenSet = false;
343 bool m_partitionByHasBeenSet = false;
344 bool m_filterHasBeenSet = false;
345 bool m_maxResultsHasBeenSet = false;
346 bool m_nextTokenHasBeenSet = false;
347};
348
349} // namespace Model
350} // namespace PI
351} // namespace Aws
DescribeDimensionKeysRequest & WithPartitionBy(PartitionByT &&value)
DescribeDimensionKeysRequest & AddAdditionalMetrics(AdditionalMetricsT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetAdditionalMetrics() const
DescribeDimensionKeysRequest & WithMetric(MetricT &&value)
DescribeDimensionKeysRequest & WithEndTime(EndTimeT &&value)
DescribeDimensionKeysRequest & WithStartTime(StartTimeT &&value)
DescribeDimensionKeysRequest & WithIdentifier(IdentifierT &&value)
DescribeDimensionKeysRequest & AddFilter(FilterKeyT &&key, FilterValueT &&value)
DescribeDimensionKeysRequest & WithPeriodInSeconds(int value)
DescribeDimensionKeysRequest & WithMaxResults(int value)
DescribeDimensionKeysRequest & WithGroupBy(GroupByT &&value)
DescribeDimensionKeysRequest & WithNextToken(NextTokenT &&value)
const Aws::Map< Aws::String, Aws::String > & GetFilter() const
DescribeDimensionKeysRequest & WithServiceType(ServiceType value)
DescribeDimensionKeysRequest & WithFilter(FilterT &&value)
AWS_PI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_PI_API Aws::String SerializePayload() const override
DescribeDimensionKeysRequest & WithAdditionalMetrics(AdditionalMetricsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector