AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribeFleetMetricResult.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/model/AggregationType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/iot/model/FleetMetricUnit.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace IoT
27{
28namespace Model
29{
31 {
32 public:
33 AWS_IOT_API DescribeFleetMetricResult() = default;
36
37
39
42 inline const Aws::String& GetMetricName() const { return m_metricName; }
43 template<typename MetricNameT = Aws::String>
44 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
45 template<typename MetricNameT = Aws::String>
46 DescribeFleetMetricResult& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
48
50
53 inline const Aws::String& GetQueryString() const { return m_queryString; }
54 template<typename QueryStringT = Aws::String>
55 void SetQueryString(QueryStringT&& value) { m_queryStringHasBeenSet = true; m_queryString = std::forward<QueryStringT>(value); }
56 template<typename QueryStringT = Aws::String>
57 DescribeFleetMetricResult& WithQueryString(QueryStringT&& value) { SetQueryString(std::forward<QueryStringT>(value)); return *this;}
59
61
64 inline const AggregationType& GetAggregationType() const { return m_aggregationType; }
65 template<typename AggregationTypeT = AggregationType>
66 void SetAggregationType(AggregationTypeT&& value) { m_aggregationTypeHasBeenSet = true; m_aggregationType = std::forward<AggregationTypeT>(value); }
67 template<typename AggregationTypeT = AggregationType>
68 DescribeFleetMetricResult& WithAggregationType(AggregationTypeT&& value) { SetAggregationType(std::forward<AggregationTypeT>(value)); return *this;}
70
72
76 inline int GetPeriod() const { return m_period; }
77 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
78 inline DescribeFleetMetricResult& WithPeriod(int value) { SetPeriod(value); return *this;}
80
82
85 inline const Aws::String& GetAggregationField() const { return m_aggregationField; }
86 template<typename AggregationFieldT = Aws::String>
87 void SetAggregationField(AggregationFieldT&& value) { m_aggregationFieldHasBeenSet = true; m_aggregationField = std::forward<AggregationFieldT>(value); }
88 template<typename AggregationFieldT = Aws::String>
89 DescribeFleetMetricResult& WithAggregationField(AggregationFieldT&& value) { SetAggregationField(std::forward<AggregationFieldT>(value)); return *this;}
91
93
96 inline const Aws::String& GetDescription() const { return m_description; }
97 template<typename DescriptionT = Aws::String>
98 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
99 template<typename DescriptionT = Aws::String>
100 DescribeFleetMetricResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
102
104
107 inline const Aws::String& GetQueryVersion() const { return m_queryVersion; }
108 template<typename QueryVersionT = Aws::String>
109 void SetQueryVersion(QueryVersionT&& value) { m_queryVersionHasBeenSet = true; m_queryVersion = std::forward<QueryVersionT>(value); }
110 template<typename QueryVersionT = Aws::String>
111 DescribeFleetMetricResult& WithQueryVersion(QueryVersionT&& value) { SetQueryVersion(std::forward<QueryVersionT>(value)); return *this;}
113
115
118 inline const Aws::String& GetIndexName() const { return m_indexName; }
119 template<typename IndexNameT = Aws::String>
120 void SetIndexName(IndexNameT&& value) { m_indexNameHasBeenSet = true; m_indexName = std::forward<IndexNameT>(value); }
121 template<typename IndexNameT = Aws::String>
122 DescribeFleetMetricResult& WithIndexName(IndexNameT&& value) { SetIndexName(std::forward<IndexNameT>(value)); return *this;}
124
126
129 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
130 template<typename CreationDateT = Aws::Utils::DateTime>
131 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
132 template<typename CreationDateT = Aws::Utils::DateTime>
133 DescribeFleetMetricResult& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
135
137
140 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
141 template<typename LastModifiedDateT = Aws::Utils::DateTime>
142 void SetLastModifiedDate(LastModifiedDateT&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::forward<LastModifiedDateT>(value); }
143 template<typename LastModifiedDateT = Aws::Utils::DateTime>
144 DescribeFleetMetricResult& WithLastModifiedDate(LastModifiedDateT&& value) { SetLastModifiedDate(std::forward<LastModifiedDateT>(value)); return *this;}
146
148
154 inline FleetMetricUnit GetUnit() const { return m_unit; }
155 inline void SetUnit(FleetMetricUnit value) { m_unitHasBeenSet = true; m_unit = value; }
156 inline DescribeFleetMetricResult& WithUnit(FleetMetricUnit value) { SetUnit(value); return *this;}
158
160
163 inline long long GetVersion() const { return m_version; }
164 inline void SetVersion(long long value) { m_versionHasBeenSet = true; m_version = value; }
165 inline DescribeFleetMetricResult& WithVersion(long long value) { SetVersion(value); return *this;}
167
169
172 inline const Aws::String& GetMetricArn() const { return m_metricArn; }
173 template<typename MetricArnT = Aws::String>
174 void SetMetricArn(MetricArnT&& value) { m_metricArnHasBeenSet = true; m_metricArn = std::forward<MetricArnT>(value); }
175 template<typename MetricArnT = Aws::String>
176 DescribeFleetMetricResult& WithMetricArn(MetricArnT&& value) { SetMetricArn(std::forward<MetricArnT>(value)); return *this;}
178
180
181 inline const Aws::String& GetRequestId() const { return m_requestId; }
182 template<typename RequestIdT = Aws::String>
183 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
184 template<typename RequestIdT = Aws::String>
185 DescribeFleetMetricResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
187 private:
188
189 Aws::String m_metricName;
190 bool m_metricNameHasBeenSet = false;
191
192 Aws::String m_queryString;
193 bool m_queryStringHasBeenSet = false;
194
195 AggregationType m_aggregationType;
196 bool m_aggregationTypeHasBeenSet = false;
197
198 int m_period{0};
199 bool m_periodHasBeenSet = false;
200
201 Aws::String m_aggregationField;
202 bool m_aggregationFieldHasBeenSet = false;
203
204 Aws::String m_description;
205 bool m_descriptionHasBeenSet = false;
206
207 Aws::String m_queryVersion;
208 bool m_queryVersionHasBeenSet = false;
209
210 Aws::String m_indexName;
211 bool m_indexNameHasBeenSet = false;
212
213 Aws::Utils::DateTime m_creationDate{};
214 bool m_creationDateHasBeenSet = false;
215
216 Aws::Utils::DateTime m_lastModifiedDate{};
217 bool m_lastModifiedDateHasBeenSet = false;
218
220 bool m_unitHasBeenSet = false;
221
222 long long m_version{0};
223 bool m_versionHasBeenSet = false;
224
225 Aws::String m_metricArn;
226 bool m_metricArnHasBeenSet = false;
227
228 Aws::String m_requestId;
229 bool m_requestIdHasBeenSet = false;
230 };
231
232} // namespace Model
233} // namespace IoT
234} // namespace Aws
DescribeFleetMetricResult & WithPeriod(int value)
const Aws::Utils::DateTime & GetCreationDate() const
AWS_IOT_API DescribeFleetMetricResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeFleetMetricResult & WithQueryString(QueryStringT &&value)
DescribeFleetMetricResult & WithAggregationField(AggregationFieldT &&value)
AWS_IOT_API DescribeFleetMetricResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeFleetMetricResult & WithLastModifiedDate(LastModifiedDateT &&value)
DescribeFleetMetricResult & WithAggregationType(AggregationTypeT &&value)
DescribeFleetMetricResult & WithIndexName(IndexNameT &&value)
DescribeFleetMetricResult & WithQueryVersion(QueryVersionT &&value)
DescribeFleetMetricResult & WithDescription(DescriptionT &&value)
DescribeFleetMetricResult & WithVersion(long long value)
DescribeFleetMetricResult & WithMetricArn(MetricArnT &&value)
DescribeFleetMetricResult & WithRequestId(RequestIdT &&value)
DescribeFleetMetricResult & WithCreationDate(CreationDateT &&value)
const Aws::Utils::DateTime & GetLastModifiedDate() const
DescribeFleetMetricResult & WithMetricName(MetricNameT &&value)
DescribeFleetMetricResult & WithUnit(FleetMetricUnit value)
void SetAggregationField(AggregationFieldT &&value)
AWS_IOT_API DescribeFleetMetricResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue