AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
44 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
45 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
46 inline UpdateFleetMetricRequest& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
47 inline UpdateFleetMetricRequest& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
48 inline UpdateFleetMetricRequest& WithMetricName(const char* value) { SetMetricName(value); return *this;}
50
52
55 inline const Aws::String& GetQueryString() const{ return m_queryString; }
56 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
57 inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
58 inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
59 inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); }
60 inline UpdateFleetMetricRequest& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
61 inline UpdateFleetMetricRequest& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
62 inline UpdateFleetMetricRequest& WithQueryString(const char* value) { SetQueryString(value); return *this;}
64
66
69 inline const AggregationType& GetAggregationType() const{ return m_aggregationType; }
70 inline bool AggregationTypeHasBeenSet() const { return m_aggregationTypeHasBeenSet; }
71 inline void SetAggregationType(const AggregationType& value) { m_aggregationTypeHasBeenSet = true; m_aggregationType = value; }
72 inline void SetAggregationType(AggregationType&& value) { m_aggregationTypeHasBeenSet = true; m_aggregationType = std::move(value); }
74 inline UpdateFleetMetricRequest& WithAggregationType(AggregationType&& value) { SetAggregationType(std::move(value)); return *this;}
76
78
82 inline int GetPeriod() const{ return m_period; }
83 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
84 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
85 inline UpdateFleetMetricRequest& WithPeriod(int value) { SetPeriod(value); return *this;}
87
89
92 inline const Aws::String& GetAggregationField() const{ return m_aggregationField; }
93 inline bool AggregationFieldHasBeenSet() const { return m_aggregationFieldHasBeenSet; }
94 inline void SetAggregationField(const Aws::String& value) { m_aggregationFieldHasBeenSet = true; m_aggregationField = value; }
95 inline void SetAggregationField(Aws::String&& value) { m_aggregationFieldHasBeenSet = true; m_aggregationField = std::move(value); }
96 inline void SetAggregationField(const char* value) { m_aggregationFieldHasBeenSet = true; m_aggregationField.assign(value); }
98 inline UpdateFleetMetricRequest& WithAggregationField(Aws::String&& value) { SetAggregationField(std::move(value)); return *this;}
99 inline UpdateFleetMetricRequest& WithAggregationField(const char* value) { SetAggregationField(value); return *this;}
101
103
106 inline const Aws::String& GetDescription() const{ return m_description; }
107 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
108 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
109 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
110 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
111 inline UpdateFleetMetricRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
112 inline UpdateFleetMetricRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
113 inline UpdateFleetMetricRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
115
117
120 inline const Aws::String& GetQueryVersion() const{ return m_queryVersion; }
121 inline bool QueryVersionHasBeenSet() const { return m_queryVersionHasBeenSet; }
122 inline void SetQueryVersion(const Aws::String& value) { m_queryVersionHasBeenSet = true; m_queryVersion = value; }
123 inline void SetQueryVersion(Aws::String&& value) { m_queryVersionHasBeenSet = true; m_queryVersion = std::move(value); }
124 inline void SetQueryVersion(const char* value) { m_queryVersionHasBeenSet = true; m_queryVersion.assign(value); }
125 inline UpdateFleetMetricRequest& WithQueryVersion(const Aws::String& value) { SetQueryVersion(value); return *this;}
126 inline UpdateFleetMetricRequest& WithQueryVersion(Aws::String&& value) { SetQueryVersion(std::move(value)); return *this;}
127 inline UpdateFleetMetricRequest& WithQueryVersion(const char* value) { SetQueryVersion(value); return *this;}
129
131
134 inline const Aws::String& GetIndexName() const{ return m_indexName; }
135 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
136 inline void SetIndexName(const Aws::String& value) { m_indexNameHasBeenSet = true; m_indexName = value; }
137 inline void SetIndexName(Aws::String&& value) { m_indexNameHasBeenSet = true; m_indexName = std::move(value); }
138 inline void SetIndexName(const char* value) { m_indexNameHasBeenSet = true; m_indexName.assign(value); }
139 inline UpdateFleetMetricRequest& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;}
140 inline UpdateFleetMetricRequest& WithIndexName(Aws::String&& value) { SetIndexName(std::move(value)); return *this;}
141 inline UpdateFleetMetricRequest& WithIndexName(const char* value) { SetIndexName(value); return *this;}
143
145
151 inline const FleetMetricUnit& GetUnit() const{ return m_unit; }
152 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
153 inline void SetUnit(const FleetMetricUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
154 inline void SetUnit(FleetMetricUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
155 inline UpdateFleetMetricRequest& WithUnit(const FleetMetricUnit& value) { SetUnit(value); return *this;}
156 inline UpdateFleetMetricRequest& WithUnit(FleetMetricUnit&& value) { SetUnit(std::move(value)); return *this;}
158
160
163 inline long long GetExpectedVersion() const{ return m_expectedVersion; }
164 inline bool ExpectedVersionHasBeenSet() const { return m_expectedVersionHasBeenSet; }
165 inline void SetExpectedVersion(long long value) { m_expectedVersionHasBeenSet = true; m_expectedVersion = value; }
166 inline UpdateFleetMetricRequest& WithExpectedVersion(long long value) { SetExpectedVersion(value); return *this;}
168 private:
169
170 Aws::String m_metricName;
171 bool m_metricNameHasBeenSet = false;
172
173 Aws::String m_queryString;
174 bool m_queryStringHasBeenSet = false;
175
176 AggregationType m_aggregationType;
177 bool m_aggregationTypeHasBeenSet = false;
178
179 int m_period;
180 bool m_periodHasBeenSet = false;
181
182 Aws::String m_aggregationField;
183 bool m_aggregationFieldHasBeenSet = false;
184
185 Aws::String m_description;
186 bool m_descriptionHasBeenSet = false;
187
188 Aws::String m_queryVersion;
189 bool m_queryVersionHasBeenSet = false;
190
191 Aws::String m_indexName;
192 bool m_indexNameHasBeenSet = false;
193
194 FleetMetricUnit m_unit;
195 bool m_unitHasBeenSet = false;
196
197 long long m_expectedVersion;
198 bool m_expectedVersionHasBeenSet = false;
199 };
200
201} // namespace Model
202} // namespace IoT
203} // namespace Aws
UpdateFleetMetricRequest & WithMetricName(const Aws::String &value)
UpdateFleetMetricRequest & WithAggregationField(const Aws::String &value)
UpdateFleetMetricRequest & WithExpectedVersion(long long value)
UpdateFleetMetricRequest & WithQueryVersion(const char *value)
UpdateFleetMetricRequest & WithQueryVersion(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
UpdateFleetMetricRequest & WithUnit(FleetMetricUnit &&value)
UpdateFleetMetricRequest & WithDescription(const Aws::String &value)
UpdateFleetMetricRequest & WithIndexName(const char *value)
UpdateFleetMetricRequest & WithAggregationField(const char *value)
void SetAggregationType(const AggregationType &value)
UpdateFleetMetricRequest & WithIndexName(const Aws::String &value)
UpdateFleetMetricRequest & WithQueryVersion(Aws::String &&value)
UpdateFleetMetricRequest & WithIndexName(Aws::String &&value)
UpdateFleetMetricRequest & WithQueryString(const Aws::String &value)
UpdateFleetMetricRequest & WithQueryString(const char *value)
UpdateFleetMetricRequest & WithQueryString(Aws::String &&value)
UpdateFleetMetricRequest & WithAggregationType(AggregationType &&value)
UpdateFleetMetricRequest & WithMetricName(Aws::String &&value)
void SetAggregationField(const Aws::String &value)
UpdateFleetMetricRequest & WithAggregationField(Aws::String &&value)
UpdateFleetMetricRequest & WithAggregationType(const AggregationType &value)
UpdateFleetMetricRequest & WithDescription(const char *value)
UpdateFleetMetricRequest & WithUnit(const FleetMetricUnit &value)
UpdateFleetMetricRequest & WithPeriod(int value)
AWS_IOT_API Aws::String SerializePayload() const override
UpdateFleetMetricRequest & WithDescription(Aws::String &&value)
UpdateFleetMetricRequest & WithMetricName(const char *value)
const AggregationType & GetAggregationType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String