AWS SDK for C++  1.8.71
AWS SDK for C++
DescribeDimensionKeysRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/pi/PI_EXPORTS.h>
8 #include <aws/pi/PIRequest.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace PI
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "DescribeDimensionKeys"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
40 
45  inline const ServiceType& GetServiceType() const{ return m_serviceType; }
46 
51  inline bool ServiceTypeHasBeenSet() const { return m_serviceTypeHasBeenSet; }
52 
57  inline void SetServiceType(const ServiceType& value) { m_serviceTypeHasBeenSet = true; m_serviceType = value; }
58 
63  inline void SetServiceType(ServiceType&& value) { m_serviceTypeHasBeenSet = true; m_serviceType = std::move(value); }
64 
69  inline DescribeDimensionKeysRequest& WithServiceType(const ServiceType& value) { SetServiceType(value); return *this;}
70 
75  inline DescribeDimensionKeysRequest& WithServiceType(ServiceType&& value) { SetServiceType(std::move(value)); return *this;}
76 
77 
84  inline const Aws::String& GetIdentifier() const{ return m_identifier; }
85 
92  inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
93 
100  inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; }
101 
108  inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); }
109 
116  inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); }
117 
124  inline DescribeDimensionKeysRequest& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;}
125 
132  inline DescribeDimensionKeysRequest& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;}
133 
140  inline DescribeDimensionKeysRequest& WithIdentifier(const char* value) { SetIdentifier(value); return *this;}
141 
142 
151  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
152 
161  inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
162 
171  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
172 
181  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
182 
191  inline DescribeDimensionKeysRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
192 
201  inline DescribeDimensionKeysRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
202 
203 
210  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
211 
218  inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
219 
226  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
227 
234  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
235 
242  inline DescribeDimensionKeysRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
243 
250  inline DescribeDimensionKeysRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
251 
252 
260  inline const Aws::String& GetMetric() const{ return m_metric; }
261 
269  inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
270 
278  inline void SetMetric(const Aws::String& value) { m_metricHasBeenSet = true; m_metric = value; }
279 
287  inline void SetMetric(Aws::String&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }
288 
296  inline void SetMetric(const char* value) { m_metricHasBeenSet = true; m_metric.assign(value); }
297 
305  inline DescribeDimensionKeysRequest& WithMetric(const Aws::String& value) { SetMetric(value); return *this;}
306 
314  inline DescribeDimensionKeysRequest& WithMetric(Aws::String&& value) { SetMetric(std::move(value)); return *this;}
315 
323  inline DescribeDimensionKeysRequest& WithMetric(const char* value) { SetMetric(value); return *this;}
324 
325 
337  inline int GetPeriodInSeconds() const{ return m_periodInSeconds; }
338 
350  inline bool PeriodInSecondsHasBeenSet() const { return m_periodInSecondsHasBeenSet; }
351 
363  inline void SetPeriodInSeconds(int value) { m_periodInSecondsHasBeenSet = true; m_periodInSeconds = value; }
364 
376  inline DescribeDimensionKeysRequest& WithPeriodInSeconds(int value) { SetPeriodInSeconds(value); return *this;}
377 
378 
386  inline const DimensionGroup& GetGroupBy() const{ return m_groupBy; }
387 
395  inline bool GroupByHasBeenSet() const { return m_groupByHasBeenSet; }
396 
404  inline void SetGroupBy(const DimensionGroup& value) { m_groupByHasBeenSet = true; m_groupBy = value; }
405 
413  inline void SetGroupBy(DimensionGroup&& value) { m_groupByHasBeenSet = true; m_groupBy = std::move(value); }
414 
422  inline DescribeDimensionKeysRequest& WithGroupBy(const DimensionGroup& value) { SetGroupBy(value); return *this;}
423 
431  inline DescribeDimensionKeysRequest& WithGroupBy(DimensionGroup&& value) { SetGroupBy(std::move(value)); return *this;}
432 
433 
438  inline const DimensionGroup& GetPartitionBy() const{ return m_partitionBy; }
439 
444  inline bool PartitionByHasBeenSet() const { return m_partitionByHasBeenSet; }
445 
450  inline void SetPartitionBy(const DimensionGroup& value) { m_partitionByHasBeenSet = true; m_partitionBy = value; }
451 
456  inline void SetPartitionBy(DimensionGroup&& value) { m_partitionByHasBeenSet = true; m_partitionBy = std::move(value); }
457 
462  inline DescribeDimensionKeysRequest& WithPartitionBy(const DimensionGroup& value) { SetPartitionBy(value); return *this;}
463 
468  inline DescribeDimensionKeysRequest& WithPartitionBy(DimensionGroup&& value) { SetPartitionBy(std::move(value)); return *this;}
469 
470 
477  inline const Aws::Map<Aws::String, Aws::String>& GetFilter() const{ return m_filter; }
478 
485  inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
486 
493  inline void SetFilter(const Aws::Map<Aws::String, Aws::String>& value) { m_filterHasBeenSet = true; m_filter = value; }
494 
501  inline void SetFilter(Aws::Map<Aws::String, Aws::String>&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
502 
509  inline DescribeDimensionKeysRequest& WithFilter(const Aws::Map<Aws::String, Aws::String>& value) { SetFilter(value); return *this;}
510 
517  inline DescribeDimensionKeysRequest& WithFilter(Aws::Map<Aws::String, Aws::String>&& value) { SetFilter(std::move(value)); return *this;}
518 
525  inline DescribeDimensionKeysRequest& AddFilter(const Aws::String& key, const Aws::String& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; }
526 
533  inline DescribeDimensionKeysRequest& AddFilter(Aws::String&& key, const Aws::String& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), value); return *this; }
534 
541  inline DescribeDimensionKeysRequest& AddFilter(const Aws::String& key, Aws::String&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; }
542 
549  inline DescribeDimensionKeysRequest& AddFilter(Aws::String&& key, Aws::String&& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), std::move(value)); return *this; }
550 
557  inline DescribeDimensionKeysRequest& AddFilter(const char* key, Aws::String&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; }
558 
565  inline DescribeDimensionKeysRequest& AddFilter(Aws::String&& key, const char* value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), value); return *this; }
566 
573  inline DescribeDimensionKeysRequest& AddFilter(const char* key, const char* value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; }
574 
575 
581  inline int GetMaxResults() const{ return m_maxResults; }
582 
588  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
589 
595  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
596 
602  inline DescribeDimensionKeysRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
603 
604 
610  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
611 
617  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
618 
624  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
625 
631  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
632 
638  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
639 
645  inline DescribeDimensionKeysRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
646 
652  inline DescribeDimensionKeysRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
653 
659  inline DescribeDimensionKeysRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
660 
661  private:
662 
663  ServiceType m_serviceType;
664  bool m_serviceTypeHasBeenSet;
665 
666  Aws::String m_identifier;
667  bool m_identifierHasBeenSet;
668 
669  Aws::Utils::DateTime m_startTime;
670  bool m_startTimeHasBeenSet;
671 
672  Aws::Utils::DateTime m_endTime;
673  bool m_endTimeHasBeenSet;
674 
675  Aws::String m_metric;
676  bool m_metricHasBeenSet;
677 
678  int m_periodInSeconds;
679  bool m_periodInSecondsHasBeenSet;
680 
681  DimensionGroup m_groupBy;
682  bool m_groupByHasBeenSet;
683 
684  DimensionGroup m_partitionBy;
685  bool m_partitionByHasBeenSet;
686 
688  bool m_filterHasBeenSet;
689 
690  int m_maxResults;
691  bool m_maxResultsHasBeenSet;
692 
693  Aws::String m_nextToken;
694  bool m_nextTokenHasBeenSet;
695  };
696 
697 } // namespace Model
698 } // namespace PI
699 } // namespace Aws
DescribeDimensionKeysRequest & WithIdentifier(Aws::String &&value)
DescribeDimensionKeysRequest & AddFilter(const char *key, const char *value)
DescribeDimensionKeysRequest & WithPartitionBy(const DimensionGroup &value)
DescribeDimensionKeysRequest & WithStartTime(Aws::Utils::DateTime &&value)
DescribeDimensionKeysRequest & WithEndTime(const Aws::Utils::DateTime &value)
DescribeDimensionKeysRequest & WithMetric(const Aws::String &value)
DescribeDimensionKeysRequest & AddFilter(const Aws::String &key, Aws::String &&value)
DescribeDimensionKeysRequest & WithFilter(const Aws::Map< Aws::String, Aws::String > &value)
DescribeDimensionKeysRequest & WithMaxResults(int value)
DescribeDimensionKeysRequest & WithFilter(Aws::Map< Aws::String, Aws::String > &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
DescribeDimensionKeysRequest & AddFilter(Aws::String &&key, const Aws::String &value)
DescribeDimensionKeysRequest & AddFilter(Aws::String &&key, const char *value)
void SetFilter(const Aws::Map< Aws::String, Aws::String > &value)
DescribeDimensionKeysRequest & WithStartTime(const Aws::Utils::DateTime &value)
DescribeDimensionKeysRequest & WithEndTime(Aws::Utils::DateTime &&value)
DescribeDimensionKeysRequest & WithPeriodInSeconds(int value)
virtual const char * GetServiceRequestName() const override
DescribeDimensionKeysRequest & WithNextToken(const char *value)
DescribeDimensionKeysRequest & WithNextToken(const Aws::String &value)
DescribeDimensionKeysRequest & WithNextToken(Aws::String &&value)
DescribeDimensionKeysRequest & WithGroupBy(const DimensionGroup &value)
DescribeDimensionKeysRequest & AddFilter(Aws::String &&key, Aws::String &&value)
DescribeDimensionKeysRequest & AddFilter(const char *key, Aws::String &&value)
DescribeDimensionKeysRequest & WithServiceType(ServiceType &&value)
DescribeDimensionKeysRequest & WithIdentifier(const Aws::String &value)
DescribeDimensionKeysRequest & WithPartitionBy(DimensionGroup &&value)
DescribeDimensionKeysRequest & WithServiceType(const ServiceType &value)
void SetEndTime(const Aws::Utils::DateTime &value)
void SetFilter(Aws::Map< Aws::String, Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetStartTime(const Aws::Utils::DateTime &value)
#define AWS_PI_API
Definition: PI_EXPORTS.h:28
const Aws::Map< Aws::String, Aws::String > & GetFilter() const
DescribeDimensionKeysRequest & WithIdentifier(const char *value)
DescribeDimensionKeysRequest & WithGroupBy(DimensionGroup &&value)
DescribeDimensionKeysRequest & AddFilter(const Aws::String &key, const Aws::String &value)
DescribeDimensionKeysRequest & WithMetric(const char *value)
DescribeDimensionKeysRequest & WithMetric(Aws::String &&value)