AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListMetricValuesRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot/model/DimensionValueOperator.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace IoT
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_IOT_API ListMetricValuesRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "ListMetricValues"; }
37
38 AWS_IOT_API Aws::String SerializePayload() const override;
39
40 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
42
44
48 inline const Aws::String& GetThingName() const { return m_thingName; }
49 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
50 template<typename ThingNameT = Aws::String>
51 void SetThingName(ThingNameT&& value) { m_thingNameHasBeenSet = true; m_thingName = std::forward<ThingNameT>(value); }
52 template<typename ThingNameT = Aws::String>
53 ListMetricValuesRequest& WithThingName(ThingNameT&& value) { SetThingName(std::forward<ThingNameT>(value)); return *this;}
55
57
60 inline const Aws::String& GetMetricName() const { return m_metricName; }
61 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
62 template<typename MetricNameT = Aws::String>
63 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
64 template<typename MetricNameT = Aws::String>
65 ListMetricValuesRequest& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
67
69
72 inline const Aws::String& GetDimensionName() const { return m_dimensionName; }
73 inline bool DimensionNameHasBeenSet() const { return m_dimensionNameHasBeenSet; }
74 template<typename DimensionNameT = Aws::String>
75 void SetDimensionName(DimensionNameT&& value) { m_dimensionNameHasBeenSet = true; m_dimensionName = std::forward<DimensionNameT>(value); }
76 template<typename DimensionNameT = Aws::String>
77 ListMetricValuesRequest& WithDimensionName(DimensionNameT&& value) { SetDimensionName(std::forward<DimensionNameT>(value)); return *this;}
79
81
84 inline DimensionValueOperator GetDimensionValueOperator() const { return m_dimensionValueOperator; }
85 inline bool DimensionValueOperatorHasBeenSet() const { return m_dimensionValueOperatorHasBeenSet; }
86 inline void SetDimensionValueOperator(DimensionValueOperator value) { m_dimensionValueOperatorHasBeenSet = true; m_dimensionValueOperator = value; }
89
91
94 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
95 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
96 template<typename StartTimeT = Aws::Utils::DateTime>
97 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
98 template<typename StartTimeT = Aws::Utils::DateTime>
99 ListMetricValuesRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
101
103
106 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
107 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
108 template<typename EndTimeT = Aws::Utils::DateTime>
109 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
110 template<typename EndTimeT = Aws::Utils::DateTime>
111 ListMetricValuesRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
113
115
118 inline int GetMaxResults() const { return m_maxResults; }
119 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
120 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
121 inline ListMetricValuesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
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) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
132 template<typename NextTokenT = Aws::String>
133 ListMetricValuesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
135 private:
136
137 Aws::String m_thingName;
138 bool m_thingNameHasBeenSet = false;
139
140 Aws::String m_metricName;
141 bool m_metricNameHasBeenSet = false;
142
143 Aws::String m_dimensionName;
144 bool m_dimensionNameHasBeenSet = false;
145
147 bool m_dimensionValueOperatorHasBeenSet = false;
148
149 Aws::Utils::DateTime m_startTime{};
150 bool m_startTimeHasBeenSet = false;
151
152 Aws::Utils::DateTime m_endTime{};
153 bool m_endTimeHasBeenSet = false;
154
155 int m_maxResults{0};
156 bool m_maxResultsHasBeenSet = false;
157
158 Aws::String m_nextToken;
159 bool m_nextTokenHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace IoT
164} // namespace Aws
ListMetricValuesRequest & WithNextToken(NextTokenT &&value)
const Aws::Utils::DateTime & GetStartTime() const
ListMetricValuesRequest & WithStartTime(StartTimeT &&value)
void SetDimensionValueOperator(DimensionValueOperator value)
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListMetricValuesRequest & WithMetricName(MetricNameT &&value)
const Aws::Utils::DateTime & GetEndTime() const
DimensionValueOperator GetDimensionValueOperator() const
ListMetricValuesRequest & WithDimensionValueOperator(DimensionValueOperator value)
ListMetricValuesRequest & WithMaxResults(int value)
virtual const char * GetServiceRequestName() const override
ListMetricValuesRequest & WithEndTime(EndTimeT &&value)
AWS_IOT_API ListMetricValuesRequest()=default
ListMetricValuesRequest & WithDimensionName(DimensionNameT &&value)
AWS_IOT_API Aws::String SerializePayload() const override
ListMetricValuesRequest & WithThingName(ThingNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String