AWS SDK for C++  1.9.129
AWS SDK for C++
UpdateFleetMetricRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace IoT
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "UpdateFleetMetric"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
40  inline const Aws::String& GetMetricName() const{ return m_metricName; }
41 
45  inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
46 
50  inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
51 
55  inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
56 
60  inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
61 
65  inline UpdateFleetMetricRequest& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
66 
70  inline UpdateFleetMetricRequest& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
71 
75  inline UpdateFleetMetricRequest& WithMetricName(const char* value) { SetMetricName(value); return *this;}
76 
77 
81  inline const Aws::String& GetQueryString() const{ return m_queryString; }
82 
86  inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
87 
91  inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
92 
96  inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
97 
101  inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); }
102 
106  inline UpdateFleetMetricRequest& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
107 
111  inline UpdateFleetMetricRequest& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
112 
116  inline UpdateFleetMetricRequest& WithQueryString(const char* value) { SetQueryString(value); return *this;}
117 
118 
122  inline const AggregationType& GetAggregationType() const{ return m_aggregationType; }
123 
127  inline bool AggregationTypeHasBeenSet() const { return m_aggregationTypeHasBeenSet; }
128 
132  inline void SetAggregationType(const AggregationType& value) { m_aggregationTypeHasBeenSet = true; m_aggregationType = value; }
133 
137  inline void SetAggregationType(AggregationType&& value) { m_aggregationTypeHasBeenSet = true; m_aggregationType = std::move(value); }
138 
142  inline UpdateFleetMetricRequest& WithAggregationType(const AggregationType& value) { SetAggregationType(value); return *this;}
143 
147  inline UpdateFleetMetricRequest& WithAggregationType(AggregationType&& value) { SetAggregationType(std::move(value)); return *this;}
148 
149 
154  inline int GetPeriod() const{ return m_period; }
155 
160  inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
161 
166  inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
167 
172  inline UpdateFleetMetricRequest& WithPeriod(int value) { SetPeriod(value); return *this;}
173 
174 
178  inline const Aws::String& GetAggregationField() const{ return m_aggregationField; }
179 
183  inline bool AggregationFieldHasBeenSet() const { return m_aggregationFieldHasBeenSet; }
184 
188  inline void SetAggregationField(const Aws::String& value) { m_aggregationFieldHasBeenSet = true; m_aggregationField = value; }
189 
193  inline void SetAggregationField(Aws::String&& value) { m_aggregationFieldHasBeenSet = true; m_aggregationField = std::move(value); }
194 
198  inline void SetAggregationField(const char* value) { m_aggregationFieldHasBeenSet = true; m_aggregationField.assign(value); }
199 
203  inline UpdateFleetMetricRequest& WithAggregationField(const Aws::String& value) { SetAggregationField(value); return *this;}
204 
208  inline UpdateFleetMetricRequest& WithAggregationField(Aws::String&& value) { SetAggregationField(std::move(value)); return *this;}
209 
213  inline UpdateFleetMetricRequest& WithAggregationField(const char* value) { SetAggregationField(value); return *this;}
214 
215 
219  inline const Aws::String& GetDescription() const{ return m_description; }
220 
224  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
225 
229  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
230 
234  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
235 
239  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
240 
244  inline UpdateFleetMetricRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
245 
249  inline UpdateFleetMetricRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
250 
254  inline UpdateFleetMetricRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
255 
256 
260  inline const Aws::String& GetQueryVersion() const{ return m_queryVersion; }
261 
265  inline bool QueryVersionHasBeenSet() const { return m_queryVersionHasBeenSet; }
266 
270  inline void SetQueryVersion(const Aws::String& value) { m_queryVersionHasBeenSet = true; m_queryVersion = value; }
271 
275  inline void SetQueryVersion(Aws::String&& value) { m_queryVersionHasBeenSet = true; m_queryVersion = std::move(value); }
276 
280  inline void SetQueryVersion(const char* value) { m_queryVersionHasBeenSet = true; m_queryVersion.assign(value); }
281 
285  inline UpdateFleetMetricRequest& WithQueryVersion(const Aws::String& value) { SetQueryVersion(value); return *this;}
286 
290  inline UpdateFleetMetricRequest& WithQueryVersion(Aws::String&& value) { SetQueryVersion(std::move(value)); return *this;}
291 
295  inline UpdateFleetMetricRequest& WithQueryVersion(const char* value) { SetQueryVersion(value); return *this;}
296 
297 
301  inline const Aws::String& GetIndexName() const{ return m_indexName; }
302 
306  inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
307 
311  inline void SetIndexName(const Aws::String& value) { m_indexNameHasBeenSet = true; m_indexName = value; }
312 
316  inline void SetIndexName(Aws::String&& value) { m_indexNameHasBeenSet = true; m_indexName = std::move(value); }
317 
321  inline void SetIndexName(const char* value) { m_indexNameHasBeenSet = true; m_indexName.assign(value); }
322 
326  inline UpdateFleetMetricRequest& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;}
327 
331  inline UpdateFleetMetricRequest& WithIndexName(Aws::String&& value) { SetIndexName(std::move(value)); return *this;}
332 
336  inline UpdateFleetMetricRequest& WithIndexName(const char* value) { SetIndexName(value); return *this;}
337 
338 
345  inline const FleetMetricUnit& GetUnit() const{ return m_unit; }
346 
353  inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
354 
361  inline void SetUnit(const FleetMetricUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
362 
369  inline void SetUnit(FleetMetricUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
370 
377  inline UpdateFleetMetricRequest& WithUnit(const FleetMetricUnit& value) { SetUnit(value); return *this;}
378 
385  inline UpdateFleetMetricRequest& WithUnit(FleetMetricUnit&& value) { SetUnit(std::move(value)); return *this;}
386 
387 
391  inline long long GetExpectedVersion() const{ return m_expectedVersion; }
392 
396  inline bool ExpectedVersionHasBeenSet() const { return m_expectedVersionHasBeenSet; }
397 
401  inline void SetExpectedVersion(long long value) { m_expectedVersionHasBeenSet = true; m_expectedVersion = value; }
402 
406  inline UpdateFleetMetricRequest& WithExpectedVersion(long long value) { SetExpectedVersion(value); return *this;}
407 
408  private:
409 
410  Aws::String m_metricName;
411  bool m_metricNameHasBeenSet;
412 
413  Aws::String m_queryString;
414  bool m_queryStringHasBeenSet;
415 
416  AggregationType m_aggregationType;
417  bool m_aggregationTypeHasBeenSet;
418 
419  int m_period;
420  bool m_periodHasBeenSet;
421 
422  Aws::String m_aggregationField;
423  bool m_aggregationFieldHasBeenSet;
424 
425  Aws::String m_description;
426  bool m_descriptionHasBeenSet;
427 
428  Aws::String m_queryVersion;
429  bool m_queryVersionHasBeenSet;
430 
431  Aws::String m_indexName;
432  bool m_indexNameHasBeenSet;
433 
434  FleetMetricUnit m_unit;
435  bool m_unitHasBeenSet;
436 
437  long long m_expectedVersion;
438  bool m_expectedVersionHasBeenSet;
439  };
440 
441 } // namespace Model
442 } // namespace IoT
443 } // namespace Aws
Aws::IoT::Model::UpdateFleetMetricRequest::WithQueryString
UpdateFleetMetricRequest & WithQueryString(Aws::String &&value)
Definition: UpdateFleetMetricRequest.h:111
Aws::IoT::Model::UpdateFleetMetricRequest::WithAggregationField
UpdateFleetMetricRequest & WithAggregationField(const char *value)
Definition: UpdateFleetMetricRequest.h:213
Aws::IoT::Model::AggregationType
Definition: AggregationType.h:34
Aws::IoT::Model::UpdateFleetMetricRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: UpdateFleetMetricRequest.h:229
Aws::IoT::Model::UpdateFleetMetricRequest::WithMetricName
UpdateFleetMetricRequest & WithMetricName(Aws::String &&value)
Definition: UpdateFleetMetricRequest.h:70
Aws::IoT::Model::UpdateFleetMetricRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateFleetMetricRequest.h:32
Aws::IoT::Model::UpdateFleetMetricRequest::WithQueryVersion
UpdateFleetMetricRequest & WithQueryVersion(const char *value)
Definition: UpdateFleetMetricRequest.h:295
Aws::IoT::Model::UpdateFleetMetricRequest::GetUnit
const FleetMetricUnit & GetUnit() const
Definition: UpdateFleetMetricRequest.h:345
Aws::IoT::Model::UpdateFleetMetricRequest::WithAggregationType
UpdateFleetMetricRequest & WithAggregationType(AggregationType &&value)
Definition: UpdateFleetMetricRequest.h:147
FleetMetricUnit.h
Aws::IoT::Model::UpdateFleetMetricRequest::WithQueryString
UpdateFleetMetricRequest & WithQueryString(const Aws::String &value)
Definition: UpdateFleetMetricRequest.h:106
Aws::IoT::Model::UpdateFleetMetricRequest::AggregationFieldHasBeenSet
bool AggregationFieldHasBeenSet() const
Definition: UpdateFleetMetricRequest.h:183
Aws::IoT::Model::UpdateFleetMetricRequest::SetIndexName
void SetIndexName(const char *value)
Definition: UpdateFleetMetricRequest.h:321
Aws::IoT::Model::UpdateFleetMetricRequest::SetAggregationType
void SetAggregationType(AggregationType &&value)
Definition: UpdateFleetMetricRequest.h:137
AggregationType.h
Aws::IoT::Model::UpdateFleetMetricRequest::SetIndexName
void SetIndexName(const Aws::String &value)
Definition: UpdateFleetMetricRequest.h:311
Aws::IoT::Model::UpdateFleetMetricRequest::SetAggregationField
void SetAggregationField(Aws::String &&value)
Definition: UpdateFleetMetricRequest.h:193
Aws::IoT::Model::UpdateFleetMetricRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::UpdateFleetMetricRequest::SetDescription
void SetDescription(const char *value)
Definition: UpdateFleetMetricRequest.h:239
Aws::IoT::Model::UpdateFleetMetricRequest::WithIndexName
UpdateFleetMetricRequest & WithIndexName(const Aws::String &value)
Definition: UpdateFleetMetricRequest.h:326
Aws::IoT::Model::UpdateFleetMetricRequest
Definition: UpdateFleetMetricRequest.h:24
Aws::IoT::Model::UpdateFleetMetricRequest::WithQueryString
UpdateFleetMetricRequest & WithQueryString(const char *value)
Definition: UpdateFleetMetricRequest.h:116
Aws::IoT::Model::UpdateFleetMetricRequest::QueryStringHasBeenSet
bool QueryStringHasBeenSet() const
Definition: UpdateFleetMetricRequest.h:86
Aws::IoT::Model::UpdateFleetMetricRequest::SetMetricName
void SetMetricName(const char *value)
Definition: UpdateFleetMetricRequest.h:60
Aws::IoT::Model::UpdateFleetMetricRequest::SetQueryString
void SetQueryString(const Aws::String &value)
Definition: UpdateFleetMetricRequest.h:91
Aws::IoT::Model::UpdateFleetMetricRequest::GetAggregationType
const AggregationType & GetAggregationType() const
Definition: UpdateFleetMetricRequest.h:122
Aws::IoT::Model::UpdateFleetMetricRequest::WithMetricName
UpdateFleetMetricRequest & WithMetricName(const char *value)
Definition: UpdateFleetMetricRequest.h:75
Aws::IoT::Model::UpdateFleetMetricRequest::SetPeriod
void SetPeriod(int value)
Definition: UpdateFleetMetricRequest.h:166
Aws::IoT::Model::UpdateFleetMetricRequest::WithDescription
UpdateFleetMetricRequest & WithDescription(Aws::String &&value)
Definition: UpdateFleetMetricRequest.h:249
Aws::IoT::Model::FleetMetricUnit
FleetMetricUnit
Definition: FleetMetricUnit.h:17
Aws::IoT::Model::UpdateFleetMetricRequest::SetQueryVersion
void SetQueryVersion(Aws::String &&value)
Definition: UpdateFleetMetricRequest.h:275
Aws::IoT::Model::UpdateFleetMetricRequest::SetAggregationField
void SetAggregationField(const Aws::String &value)
Definition: UpdateFleetMetricRequest.h:188
Aws::IoT::Model::UpdateFleetMetricRequest::GetQueryVersion
const Aws::String & GetQueryVersion() const
Definition: UpdateFleetMetricRequest.h:260
Aws::IoT::Model::UpdateFleetMetricRequest::SetAggregationField
void SetAggregationField(const char *value)
Definition: UpdateFleetMetricRequest.h:198
Aws::IoT::Model::UpdateFleetMetricRequest::UpdateFleetMetricRequest
UpdateFleetMetricRequest()
Aws::IoT::Model::UpdateFleetMetricRequest::SetQueryString
void SetQueryString(Aws::String &&value)
Definition: UpdateFleetMetricRequest.h:96
Aws::IoT::Model::UpdateFleetMetricRequest::WithAggregationType
UpdateFleetMetricRequest & WithAggregationType(const AggregationType &value)
Definition: UpdateFleetMetricRequest.h:142
Aws::IoT::Model::UpdateFleetMetricRequest::SetAggregationType
void SetAggregationType(const AggregationType &value)
Definition: UpdateFleetMetricRequest.h:132
Aws::IoT::Model::UpdateFleetMetricRequest::SetUnit
void SetUnit(FleetMetricUnit &&value)
Definition: UpdateFleetMetricRequest.h:369
Aws::IoT::Model::UpdateFleetMetricRequest::GetPeriod
int GetPeriod() const
Definition: UpdateFleetMetricRequest.h:154
Aws::IoT::Model::UpdateFleetMetricRequest::SetExpectedVersion
void SetExpectedVersion(long long value)
Definition: UpdateFleetMetricRequest.h:401
Aws::IoT::Model::UpdateFleetMetricRequest::GetDescription
const Aws::String & GetDescription() const
Definition: UpdateFleetMetricRequest.h:219
Aws::IoT::Model::UpdateFleetMetricRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: UpdateFleetMetricRequest.h:234
Aws::IoT::Model::UpdateFleetMetricRequest::WithDescription
UpdateFleetMetricRequest & WithDescription(const Aws::String &value)
Definition: UpdateFleetMetricRequest.h:244
Aws::IoT::Model::UpdateFleetMetricRequest::WithDescription
UpdateFleetMetricRequest & WithDescription(const char *value)
Definition: UpdateFleetMetricRequest.h:254
AWSString.h
Aws::IoT::Model::UpdateFleetMetricRequest::SetMetricName
void SetMetricName(const Aws::String &value)
Definition: UpdateFleetMetricRequest.h:50
Aws::IoT::Model::UpdateFleetMetricRequest::GetAggregationField
const Aws::String & GetAggregationField() const
Definition: UpdateFleetMetricRequest.h:178
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::UpdateFleetMetricRequest::WithPeriod
UpdateFleetMetricRequest & WithPeriod(int value)
Definition: UpdateFleetMetricRequest.h:172
Aws::IoT::Model::UpdateFleetMetricRequest::SetIndexName
void SetIndexName(Aws::String &&value)
Definition: UpdateFleetMetricRequest.h:316
Aws::IoT::Model::UpdateFleetMetricRequest::IndexNameHasBeenSet
bool IndexNameHasBeenSet() const
Definition: UpdateFleetMetricRequest.h:306
Aws::IoT::Model::UpdateFleetMetricRequest::SetQueryVersion
void SetQueryVersion(const Aws::String &value)
Definition: UpdateFleetMetricRequest.h:270
Aws::IoT::Model::UpdateFleetMetricRequest::SetQueryVersion
void SetQueryVersion(const char *value)
Definition: UpdateFleetMetricRequest.h:280
Aws::IoT::Model::UpdateFleetMetricRequest::GetQueryString
const Aws::String & GetQueryString() const
Definition: UpdateFleetMetricRequest.h:81
Aws::IoT::Model::UpdateFleetMetricRequest::GetExpectedVersion
long long GetExpectedVersion() const
Definition: UpdateFleetMetricRequest.h:391
Aws::IoT::Model::UpdateFleetMetricRequest::SetQueryString
void SetQueryString(const char *value)
Definition: UpdateFleetMetricRequest.h:101
Aws::IoT::Model::UpdateFleetMetricRequest::ExpectedVersionHasBeenSet
bool ExpectedVersionHasBeenSet() const
Definition: UpdateFleetMetricRequest.h:396
Aws::IoT::Model::UpdateFleetMetricRequest::WithIndexName
UpdateFleetMetricRequest & WithIndexName(const char *value)
Definition: UpdateFleetMetricRequest.h:336
Aws::IoT::Model::UpdateFleetMetricRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: UpdateFleetMetricRequest.h:224
Aws::IoT::Model::UpdateFleetMetricRequest::SetUnit
void SetUnit(const FleetMetricUnit &value)
Definition: UpdateFleetMetricRequest.h:361
Aws::IoT::Model::UpdateFleetMetricRequest::WithAggregationField
UpdateFleetMetricRequest & WithAggregationField(const Aws::String &value)
Definition: UpdateFleetMetricRequest.h:203
Aws::IoT::Model::UpdateFleetMetricRequest::SetMetricName
void SetMetricName(Aws::String &&value)
Definition: UpdateFleetMetricRequest.h:55
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::UpdateFleetMetricRequest::UnitHasBeenSet
bool UnitHasBeenSet() const
Definition: UpdateFleetMetricRequest.h:353
Aws::IoT::Model::UpdateFleetMetricRequest::WithUnit
UpdateFleetMetricRequest & WithUnit(const FleetMetricUnit &value)
Definition: UpdateFleetMetricRequest.h:377
Aws::IoT::Model::UpdateFleetMetricRequest::WithExpectedVersion
UpdateFleetMetricRequest & WithExpectedVersion(long long value)
Definition: UpdateFleetMetricRequest.h:406
Aws::IoT::Model::UpdateFleetMetricRequest::WithAggregationField
UpdateFleetMetricRequest & WithAggregationField(Aws::String &&value)
Definition: UpdateFleetMetricRequest.h:208
Aws::IoT::Model::UpdateFleetMetricRequest::WithQueryVersion
UpdateFleetMetricRequest & WithQueryVersion(Aws::String &&value)
Definition: UpdateFleetMetricRequest.h:290
Aws::IoT::Model::UpdateFleetMetricRequest::QueryVersionHasBeenSet
bool QueryVersionHasBeenSet() const
Definition: UpdateFleetMetricRequest.h:265
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::UpdateFleetMetricRequest::WithQueryVersion
UpdateFleetMetricRequest & WithQueryVersion(const Aws::String &value)
Definition: UpdateFleetMetricRequest.h:285
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::UpdateFleetMetricRequest::GetMetricName
const Aws::String & GetMetricName() const
Definition: UpdateFleetMetricRequest.h:40
Aws::IoT::Model::UpdateFleetMetricRequest::PeriodHasBeenSet
bool PeriodHasBeenSet() const
Definition: UpdateFleetMetricRequest.h:160
IoTRequest.h
Aws::IoT::Model::UpdateFleetMetricRequest::WithIndexName
UpdateFleetMetricRequest & WithIndexName(Aws::String &&value)
Definition: UpdateFleetMetricRequest.h:331
Aws::IoT::Model::UpdateFleetMetricRequest::WithUnit
UpdateFleetMetricRequest & WithUnit(FleetMetricUnit &&value)
Definition: UpdateFleetMetricRequest.h:385
Aws::IoT::Model::UpdateFleetMetricRequest::WithMetricName
UpdateFleetMetricRequest & WithMetricName(const Aws::String &value)
Definition: UpdateFleetMetricRequest.h:65
IoT_EXPORTS.h
Aws::IoT::Model::UpdateFleetMetricRequest::MetricNameHasBeenSet
bool MetricNameHasBeenSet() const
Definition: UpdateFleetMetricRequest.h:45
Aws::IoT::Model::UpdateFleetMetricRequest::AggregationTypeHasBeenSet
bool AggregationTypeHasBeenSet() const
Definition: UpdateFleetMetricRequest.h:127
Aws::IoT::Model::UpdateFleetMetricRequest::GetIndexName
const Aws::String & GetIndexName() const
Definition: UpdateFleetMetricRequest.h:301