AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeDimensionKeysRequest.h
1
6#pragma once
7#include <aws/pi/PI_EXPORTS.h>
8#include <aws/pi/PIRequest.h>
9#include <aws/pi/model/ServiceType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/pi/model/DimensionGroup.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <utility>
16
17namespace Aws
18{
19namespace PI
20{
21namespace Model
22{
23
27 {
28 public:
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "DescribeDimensionKeys"; }
36
37 AWS_PI_API Aws::String SerializePayload() const override;
38
40
41
43
48 inline const ServiceType& GetServiceType() const{ return m_serviceType; }
49 inline bool ServiceTypeHasBeenSet() const { return m_serviceTypeHasBeenSet; }
50 inline void SetServiceType(const ServiceType& value) { m_serviceTypeHasBeenSet = true; m_serviceType = value; }
51 inline void SetServiceType(ServiceType&& value) { m_serviceTypeHasBeenSet = true; m_serviceType = std::move(value); }
52 inline DescribeDimensionKeysRequest& WithServiceType(const ServiceType& value) { SetServiceType(value); return *this;}
53 inline DescribeDimensionKeysRequest& WithServiceType(ServiceType&& value) { SetServiceType(std::move(value)); return *this;}
55
57
63 inline const Aws::String& GetIdentifier() const{ return m_identifier; }
64 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
65 inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; }
66 inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); }
67 inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); }
68 inline DescribeDimensionKeysRequest& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;}
69 inline DescribeDimensionKeysRequest& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;}
70 inline DescribeDimensionKeysRequest& WithIdentifier(const char* value) { SetIdentifier(value); return *this;}
72
74
82 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
83 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
84 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
85 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
86 inline DescribeDimensionKeysRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
87 inline DescribeDimensionKeysRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
89
91
98 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
99 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
100 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
101 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
102 inline DescribeDimensionKeysRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
103 inline DescribeDimensionKeysRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
105
107
121 inline const Aws::String& GetMetric() const{ return m_metric; }
122 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
123 inline void SetMetric(const Aws::String& value) { m_metricHasBeenSet = true; m_metric = value; }
124 inline void SetMetric(Aws::String&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }
125 inline void SetMetric(const char* value) { m_metricHasBeenSet = true; m_metric.assign(value); }
126 inline DescribeDimensionKeysRequest& WithMetric(const Aws::String& value) { SetMetric(value); return *this;}
127 inline DescribeDimensionKeysRequest& WithMetric(Aws::String&& value) { SetMetric(std::move(value)); return *this;}
128 inline DescribeDimensionKeysRequest& WithMetric(const char* value) { SetMetric(value); return *this;}
130
132
143 inline int GetPeriodInSeconds() const{ return m_periodInSeconds; }
144 inline bool PeriodInSecondsHasBeenSet() const { return m_periodInSecondsHasBeenSet; }
145 inline void SetPeriodInSeconds(int value) { m_periodInSecondsHasBeenSet = true; m_periodInSeconds = value; }
146 inline DescribeDimensionKeysRequest& WithPeriodInSeconds(int value) { SetPeriodInSeconds(value); return *this;}
148
150
157 inline const DimensionGroup& GetGroupBy() const{ return m_groupBy; }
158 inline bool GroupByHasBeenSet() const { return m_groupByHasBeenSet; }
159 inline void SetGroupBy(const DimensionGroup& value) { m_groupByHasBeenSet = true; m_groupBy = value; }
160 inline void SetGroupBy(DimensionGroup&& value) { m_groupByHasBeenSet = true; m_groupBy = std::move(value); }
161 inline DescribeDimensionKeysRequest& WithGroupBy(const DimensionGroup& value) { SetGroupBy(value); return *this;}
162 inline DescribeDimensionKeysRequest& WithGroupBy(DimensionGroup&& value) { SetGroupBy(std::move(value)); return *this;}
164
166
173 inline const Aws::Vector<Aws::String>& GetAdditionalMetrics() const{ return m_additionalMetrics; }
174 inline bool AdditionalMetricsHasBeenSet() const { return m_additionalMetricsHasBeenSet; }
175 inline void SetAdditionalMetrics(const Aws::Vector<Aws::String>& value) { m_additionalMetricsHasBeenSet = true; m_additionalMetrics = value; }
176 inline void SetAdditionalMetrics(Aws::Vector<Aws::String>&& value) { m_additionalMetricsHasBeenSet = true; m_additionalMetrics = std::move(value); }
179 inline DescribeDimensionKeysRequest& AddAdditionalMetrics(const Aws::String& value) { m_additionalMetricsHasBeenSet = true; m_additionalMetrics.push_back(value); return *this; }
180 inline DescribeDimensionKeysRequest& AddAdditionalMetrics(Aws::String&& value) { m_additionalMetricsHasBeenSet = true; m_additionalMetrics.push_back(std::move(value)); return *this; }
181 inline DescribeDimensionKeysRequest& AddAdditionalMetrics(const char* value) { m_additionalMetricsHasBeenSet = true; m_additionalMetrics.push_back(value); return *this; }
183
185
189 inline const DimensionGroup& GetPartitionBy() const{ return m_partitionBy; }
190 inline bool PartitionByHasBeenSet() const { return m_partitionByHasBeenSet; }
191 inline void SetPartitionBy(const DimensionGroup& value) { m_partitionByHasBeenSet = true; m_partitionBy = value; }
192 inline void SetPartitionBy(DimensionGroup&& value) { m_partitionByHasBeenSet = true; m_partitionBy = std::move(value); }
193 inline DescribeDimensionKeysRequest& WithPartitionBy(const DimensionGroup& value) { SetPartitionBy(value); return *this;}
194 inline DescribeDimensionKeysRequest& WithPartitionBy(DimensionGroup&& value) { SetPartitionBy(std::move(value)); return *this;}
196
198
206 inline const Aws::Map<Aws::String, Aws::String>& GetFilter() const{ return m_filter; }
207 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
208 inline void SetFilter(const Aws::Map<Aws::String, Aws::String>& value) { m_filterHasBeenSet = true; m_filter = value; }
209 inline void SetFilter(Aws::Map<Aws::String, Aws::String>&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
211 inline DescribeDimensionKeysRequest& WithFilter(Aws::Map<Aws::String, Aws::String>&& value) { SetFilter(std::move(value)); return *this;}
212 inline DescribeDimensionKeysRequest& AddFilter(const Aws::String& key, const Aws::String& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; }
213 inline DescribeDimensionKeysRequest& AddFilter(Aws::String&& key, const Aws::String& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), value); return *this; }
214 inline DescribeDimensionKeysRequest& AddFilter(const Aws::String& key, Aws::String&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; }
215 inline DescribeDimensionKeysRequest& AddFilter(Aws::String&& key, Aws::String&& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), std::move(value)); return *this; }
216 inline DescribeDimensionKeysRequest& AddFilter(const char* key, Aws::String&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; }
217 inline DescribeDimensionKeysRequest& AddFilter(Aws::String&& key, const char* value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), value); return *this; }
218 inline DescribeDimensionKeysRequest& AddFilter(const char* key, const char* value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; }
220
222
227 inline int GetMaxResults() const{ return m_maxResults; }
228 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
229 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
230 inline DescribeDimensionKeysRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
232
234
239 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
240 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
241 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
242 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
243 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
244 inline DescribeDimensionKeysRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
245 inline DescribeDimensionKeysRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
246 inline DescribeDimensionKeysRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
248 private:
249
250 ServiceType m_serviceType;
251 bool m_serviceTypeHasBeenSet = false;
252
253 Aws::String m_identifier;
254 bool m_identifierHasBeenSet = false;
255
256 Aws::Utils::DateTime m_startTime;
257 bool m_startTimeHasBeenSet = false;
258
259 Aws::Utils::DateTime m_endTime;
260 bool m_endTimeHasBeenSet = false;
261
262 Aws::String m_metric;
263 bool m_metricHasBeenSet = false;
264
265 int m_periodInSeconds;
266 bool m_periodInSecondsHasBeenSet = false;
267
268 DimensionGroup m_groupBy;
269 bool m_groupByHasBeenSet = false;
270
271 Aws::Vector<Aws::String> m_additionalMetrics;
272 bool m_additionalMetricsHasBeenSet = false;
273
274 DimensionGroup m_partitionBy;
275 bool m_partitionByHasBeenSet = false;
276
278 bool m_filterHasBeenSet = false;
279
280 int m_maxResults;
281 bool m_maxResultsHasBeenSet = false;
282
283 Aws::String m_nextToken;
284 bool m_nextTokenHasBeenSet = false;
285 };
286
287} // namespace Model
288} // namespace PI
289} // namespace Aws
DescribeDimensionKeysRequest & WithServiceType(ServiceType &&value)
DescribeDimensionKeysRequest & AddFilter(const Aws::String &key, Aws::String &&value)
void SetEndTime(const Aws::Utils::DateTime &value)
void SetFilter(const Aws::Map< Aws::String, Aws::String > &value)
virtual const char * GetServiceRequestName() const override
DescribeDimensionKeysRequest & WithFilter(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Vector< Aws::String > & GetAdditionalMetrics() const
DescribeDimensionKeysRequest & AddFilter(const char *key, Aws::String &&value)
void SetFilter(Aws::Map< Aws::String, Aws::String > &&value)
DescribeDimensionKeysRequest & WithNextToken(Aws::String &&value)
void SetAdditionalMetrics(const Aws::Vector< Aws::String > &value)
DescribeDimensionKeysRequest & WithPartitionBy(DimensionGroup &&value)
DescribeDimensionKeysRequest & WithIdentifier(Aws::String &&value)
DescribeDimensionKeysRequest & WithEndTime(Aws::Utils::DateTime &&value)
void SetStartTime(const Aws::Utils::DateTime &value)
DescribeDimensionKeysRequest & WithNextToken(const Aws::String &value)
DescribeDimensionKeysRequest & WithMetric(const char *value)
DescribeDimensionKeysRequest & AddFilter(Aws::String &&key, const char *value)
DescribeDimensionKeysRequest & WithPeriodInSeconds(int value)
DescribeDimensionKeysRequest & WithMaxResults(int value)
void SetAdditionalMetrics(Aws::Vector< Aws::String > &&value)
DescribeDimensionKeysRequest & WithMetric(Aws::String &&value)
DescribeDimensionKeysRequest & WithGroupBy(const DimensionGroup &value)
DescribeDimensionKeysRequest & WithServiceType(const ServiceType &value)
DescribeDimensionKeysRequest & AddAdditionalMetrics(const char *value)
DescribeDimensionKeysRequest & WithNextToken(const char *value)
DescribeDimensionKeysRequest & WithMetric(const Aws::String &value)
DescribeDimensionKeysRequest & WithIdentifier(const Aws::String &value)
DescribeDimensionKeysRequest & WithStartTime(Aws::Utils::DateTime &&value)
const Aws::Map< Aws::String, Aws::String > & GetFilter() const
DescribeDimensionKeysRequest & WithGroupBy(DimensionGroup &&value)
DescribeDimensionKeysRequest & WithIdentifier(const char *value)
DescribeDimensionKeysRequest & WithFilter(Aws::Map< Aws::String, Aws::String > &&value)
DescribeDimensionKeysRequest & AddAdditionalMetrics(const Aws::String &value)
DescribeDimensionKeysRequest & AddFilter(const Aws::String &key, const Aws::String &value)
DescribeDimensionKeysRequest & AddFilter(const char *key, const char *value)
DescribeDimensionKeysRequest & AddFilter(Aws::String &&key, Aws::String &&value)
DescribeDimensionKeysRequest & WithStartTime(const Aws::Utils::DateTime &value)
DescribeDimensionKeysRequest & WithAdditionalMetrics(const Aws::Vector< Aws::String > &value)
AWS_PI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeDimensionKeysRequest & WithPartitionBy(const DimensionGroup &value)
DescribeDimensionKeysRequest & AddAdditionalMetrics(Aws::String &&value)
AWS_PI_API Aws::String SerializePayload() const override
DescribeDimensionKeysRequest & WithEndTime(const Aws::Utils::DateTime &value)
DescribeDimensionKeysRequest & WithAdditionalMetrics(Aws::Vector< Aws::String > &&value)
DescribeDimensionKeysRequest & AddFilter(Aws::String &&key, const Aws::String &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