AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateFleetMetricRequest.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/AggregationType.h>
11#include <aws/iot/model/FleetMetricUnit.h>
12#include <utility>
13
14namespace Aws
15{
16namespace IoT
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_IOT_API UpdateFleetMetricRequest() = default;
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_IOT_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetMetricName() const { return m_metricName; }
42 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
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 UpdateFleetMetricRequest& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
48
50
53 inline const Aws::String& GetQueryString() const { return m_queryString; }
54 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
55 template<typename QueryStringT = Aws::String>
56 void SetQueryString(QueryStringT&& value) { m_queryStringHasBeenSet = true; m_queryString = std::forward<QueryStringT>(value); }
57 template<typename QueryStringT = Aws::String>
58 UpdateFleetMetricRequest& WithQueryString(QueryStringT&& value) { SetQueryString(std::forward<QueryStringT>(value)); return *this;}
60
62
65 inline const AggregationType& GetAggregationType() const { return m_aggregationType; }
66 inline bool AggregationTypeHasBeenSet() const { return m_aggregationTypeHasBeenSet; }
67 template<typename AggregationTypeT = AggregationType>
68 void SetAggregationType(AggregationTypeT&& value) { m_aggregationTypeHasBeenSet = true; m_aggregationType = std::forward<AggregationTypeT>(value); }
69 template<typename AggregationTypeT = AggregationType>
70 UpdateFleetMetricRequest& WithAggregationType(AggregationTypeT&& value) { SetAggregationType(std::forward<AggregationTypeT>(value)); return *this;}
72
74
78 inline int GetPeriod() const { return m_period; }
79 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
80 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
81 inline UpdateFleetMetricRequest& WithPeriod(int value) { SetPeriod(value); return *this;}
83
85
88 inline const Aws::String& GetAggregationField() const { return m_aggregationField; }
89 inline bool AggregationFieldHasBeenSet() const { return m_aggregationFieldHasBeenSet; }
90 template<typename AggregationFieldT = Aws::String>
91 void SetAggregationField(AggregationFieldT&& value) { m_aggregationFieldHasBeenSet = true; m_aggregationField = std::forward<AggregationFieldT>(value); }
92 template<typename AggregationFieldT = Aws::String>
93 UpdateFleetMetricRequest& WithAggregationField(AggregationFieldT&& value) { SetAggregationField(std::forward<AggregationFieldT>(value)); return *this;}
95
97
100 inline const Aws::String& GetDescription() const { return m_description; }
101 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
102 template<typename DescriptionT = Aws::String>
103 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
104 template<typename DescriptionT = Aws::String>
105 UpdateFleetMetricRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
107
109
112 inline const Aws::String& GetQueryVersion() const { return m_queryVersion; }
113 inline bool QueryVersionHasBeenSet() const { return m_queryVersionHasBeenSet; }
114 template<typename QueryVersionT = Aws::String>
115 void SetQueryVersion(QueryVersionT&& value) { m_queryVersionHasBeenSet = true; m_queryVersion = std::forward<QueryVersionT>(value); }
116 template<typename QueryVersionT = Aws::String>
117 UpdateFleetMetricRequest& WithQueryVersion(QueryVersionT&& value) { SetQueryVersion(std::forward<QueryVersionT>(value)); return *this;}
119
121
124 inline const Aws::String& GetIndexName() const { return m_indexName; }
125 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
126 template<typename IndexNameT = Aws::String>
127 void SetIndexName(IndexNameT&& value) { m_indexNameHasBeenSet = true; m_indexName = std::forward<IndexNameT>(value); }
128 template<typename IndexNameT = Aws::String>
129 UpdateFleetMetricRequest& WithIndexName(IndexNameT&& value) { SetIndexName(std::forward<IndexNameT>(value)); return *this;}
131
133
139 inline FleetMetricUnit GetUnit() const { return m_unit; }
140 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
141 inline void SetUnit(FleetMetricUnit value) { m_unitHasBeenSet = true; m_unit = value; }
142 inline UpdateFleetMetricRequest& WithUnit(FleetMetricUnit value) { SetUnit(value); return *this;}
144
146
149 inline long long GetExpectedVersion() const { return m_expectedVersion; }
150 inline bool ExpectedVersionHasBeenSet() const { return m_expectedVersionHasBeenSet; }
151 inline void SetExpectedVersion(long long value) { m_expectedVersionHasBeenSet = true; m_expectedVersion = value; }
152 inline UpdateFleetMetricRequest& WithExpectedVersion(long long value) { SetExpectedVersion(value); return *this;}
154 private:
155
156 Aws::String m_metricName;
157 bool m_metricNameHasBeenSet = false;
158
159 Aws::String m_queryString;
160 bool m_queryStringHasBeenSet = false;
161
162 AggregationType m_aggregationType;
163 bool m_aggregationTypeHasBeenSet = false;
164
165 int m_period{0};
166 bool m_periodHasBeenSet = false;
167
168 Aws::String m_aggregationField;
169 bool m_aggregationFieldHasBeenSet = false;
170
171 Aws::String m_description;
172 bool m_descriptionHasBeenSet = false;
173
174 Aws::String m_queryVersion;
175 bool m_queryVersionHasBeenSet = false;
176
177 Aws::String m_indexName;
178 bool m_indexNameHasBeenSet = false;
179
181 bool m_unitHasBeenSet = false;
182
183 long long m_expectedVersion{0};
184 bool m_expectedVersionHasBeenSet = false;
185 };
186
187} // namespace Model
188} // namespace IoT
189} // namespace Aws
UpdateFleetMetricRequest & WithAggregationType(AggregationTypeT &&value)
UpdateFleetMetricRequest & WithAggregationField(AggregationFieldT &&value)
UpdateFleetMetricRequest & WithExpectedVersion(long long value)
UpdateFleetMetricRequest & WithMetricName(MetricNameT &&value)
UpdateFleetMetricRequest & WithDescription(DescriptionT &&value)
virtual const char * GetServiceRequestName() const override
UpdateFleetMetricRequest & WithQueryVersion(QueryVersionT &&value)
UpdateFleetMetricRequest & WithIndexName(IndexNameT &&value)
UpdateFleetMetricRequest & WithQueryString(QueryStringT &&value)
UpdateFleetMetricRequest & WithUnit(FleetMetricUnit value)
void SetAggregationType(AggregationTypeT &&value)
void SetAggregationField(AggregationFieldT &&value)
UpdateFleetMetricRequest & WithPeriod(int value)
AWS_IOT_API UpdateFleetMetricRequest()=default
AWS_IOT_API Aws::String SerializePayload() const override
const AggregationType & GetAggregationType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String