AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
51 inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
52 inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
53 inline ListMetricValuesRequest& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
54 inline ListMetricValuesRequest& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
55 inline ListMetricValuesRequest& WithThingName(const char* value) { SetThingName(value); return *this;}
57
59
62 inline const Aws::String& GetMetricName() const{ return m_metricName; }
63 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
64 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
65 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
66 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
67 inline ListMetricValuesRequest& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
68 inline ListMetricValuesRequest& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
69 inline ListMetricValuesRequest& WithMetricName(const char* value) { SetMetricName(value); return *this;}
71
73
76 inline const Aws::String& GetDimensionName() const{ return m_dimensionName; }
77 inline bool DimensionNameHasBeenSet() const { return m_dimensionNameHasBeenSet; }
78 inline void SetDimensionName(const Aws::String& value) { m_dimensionNameHasBeenSet = true; m_dimensionName = value; }
79 inline void SetDimensionName(Aws::String&& value) { m_dimensionNameHasBeenSet = true; m_dimensionName = std::move(value); }
80 inline void SetDimensionName(const char* value) { m_dimensionNameHasBeenSet = true; m_dimensionName.assign(value); }
81 inline ListMetricValuesRequest& WithDimensionName(const Aws::String& value) { SetDimensionName(value); return *this;}
82 inline ListMetricValuesRequest& WithDimensionName(Aws::String&& value) { SetDimensionName(std::move(value)); return *this;}
83 inline ListMetricValuesRequest& WithDimensionName(const char* value) { SetDimensionName(value); return *this;}
85
87
90 inline const DimensionValueOperator& GetDimensionValueOperator() const{ return m_dimensionValueOperator; }
91 inline bool DimensionValueOperatorHasBeenSet() const { return m_dimensionValueOperatorHasBeenSet; }
92 inline void SetDimensionValueOperator(const DimensionValueOperator& value) { m_dimensionValueOperatorHasBeenSet = true; m_dimensionValueOperator = value; }
93 inline void SetDimensionValueOperator(DimensionValueOperator&& value) { m_dimensionValueOperatorHasBeenSet = true; m_dimensionValueOperator = std::move(value); }
97
99
102 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
103 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
104 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
105 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
106 inline ListMetricValuesRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
107 inline ListMetricValuesRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
109
111
114 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
115 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
116 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
117 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
118 inline ListMetricValuesRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
119 inline ListMetricValuesRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
121
123
126 inline int GetMaxResults() const{ return m_maxResults; }
127 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
128 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
129 inline ListMetricValuesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
131
133
136 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
137 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
138 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
139 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
140 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
141 inline ListMetricValuesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
142 inline ListMetricValuesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
143 inline ListMetricValuesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
145 private:
146
147 Aws::String m_thingName;
148 bool m_thingNameHasBeenSet = false;
149
150 Aws::String m_metricName;
151 bool m_metricNameHasBeenSet = false;
152
153 Aws::String m_dimensionName;
154 bool m_dimensionNameHasBeenSet = false;
155
156 DimensionValueOperator m_dimensionValueOperator;
157 bool m_dimensionValueOperatorHasBeenSet = false;
158
159 Aws::Utils::DateTime m_startTime;
160 bool m_startTimeHasBeenSet = false;
161
162 Aws::Utils::DateTime m_endTime;
163 bool m_endTimeHasBeenSet = false;
164
165 int m_maxResults;
166 bool m_maxResultsHasBeenSet = false;
167
168 Aws::String m_nextToken;
169 bool m_nextTokenHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace IoT
174} // namespace Aws
const Aws::Utils::DateTime & GetStartTime() const
ListMetricValuesRequest & WithMetricName(const Aws::String &value)
ListMetricValuesRequest & WithStartTime(Aws::Utils::DateTime &&value)
void SetDimensionValueOperator(DimensionValueOperator &&value)
ListMetricValuesRequest & WithNextToken(const char *value)
ListMetricValuesRequest & WithMetricName(const char *value)
ListMetricValuesRequest & WithDimensionValueOperator(const DimensionValueOperator &value)
const DimensionValueOperator & GetDimensionValueOperator() const
ListMetricValuesRequest & WithStartTime(const Aws::Utils::DateTime &value)
ListMetricValuesRequest & WithEndTime(const Aws::Utils::DateTime &value)
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListMetricValuesRequest & WithNextToken(Aws::String &&value)
ListMetricValuesRequest & WithDimensionName(Aws::String &&value)
void SetDimensionValueOperator(const DimensionValueOperator &value)
const Aws::Utils::DateTime & GetEndTime() const
ListMetricValuesRequest & WithMaxResults(int value)
virtual const char * GetServiceRequestName() const override
ListMetricValuesRequest & WithMetricName(Aws::String &&value)
ListMetricValuesRequest & WithDimensionValueOperator(DimensionValueOperator &&value)
ListMetricValuesRequest & WithThingName(const char *value)
void SetEndTime(const Aws::Utils::DateTime &value)
ListMetricValuesRequest & WithDimensionName(const char *value)
ListMetricValuesRequest & WithThingName(Aws::String &&value)
ListMetricValuesRequest & WithNextToken(const Aws::String &value)
void SetStartTime(Aws::Utils::DateTime &&value)
ListMetricValuesRequest & WithThingName(const Aws::String &value)
void SetEndTime(Aws::Utils::DateTime &&value)
ListMetricValuesRequest & WithDimensionName(const Aws::String &value)
void SetDimensionName(const Aws::String &value)
ListMetricValuesRequest & WithEndTime(Aws::Utils::DateTime &&value)
AWS_IOT_API Aws::String SerializePayload() const override
void SetStartTime(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String