AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateFleetMetricRequest.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 <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/iot/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace IoT
19{
20namespace Model
21{
22
26 {
27 public:
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateFleetMetric"; }
35
36 AWS_IOT_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetMetricName() const{ return m_metricName; }
44 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
45 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
46 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
47 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
48 inline CreateFleetMetricRequest& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
49 inline CreateFleetMetricRequest& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
50 inline CreateFleetMetricRequest& WithMetricName(const char* value) { SetMetricName(value); return *this;}
52
54
57 inline const Aws::String& GetQueryString() const{ return m_queryString; }
58 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
59 inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
60 inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
61 inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); }
62 inline CreateFleetMetricRequest& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
63 inline CreateFleetMetricRequest& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
64 inline CreateFleetMetricRequest& WithQueryString(const char* value) { SetQueryString(value); return *this;}
66
68
71 inline const AggregationType& GetAggregationType() const{ return m_aggregationType; }
72 inline bool AggregationTypeHasBeenSet() const { return m_aggregationTypeHasBeenSet; }
73 inline void SetAggregationType(const AggregationType& value) { m_aggregationTypeHasBeenSet = true; m_aggregationType = value; }
74 inline void SetAggregationType(AggregationType&& value) { m_aggregationTypeHasBeenSet = true; m_aggregationType = std::move(value); }
76 inline CreateFleetMetricRequest& WithAggregationType(AggregationType&& value) { SetAggregationType(std::move(value)); return *this;}
78
80
84 inline int GetPeriod() const{ return m_period; }
85 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
86 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
87 inline CreateFleetMetricRequest& WithPeriod(int value) { SetPeriod(value); return *this;}
89
91
94 inline const Aws::String& GetAggregationField() const{ return m_aggregationField; }
95 inline bool AggregationFieldHasBeenSet() const { return m_aggregationFieldHasBeenSet; }
96 inline void SetAggregationField(const Aws::String& value) { m_aggregationFieldHasBeenSet = true; m_aggregationField = value; }
97 inline void SetAggregationField(Aws::String&& value) { m_aggregationFieldHasBeenSet = true; m_aggregationField = std::move(value); }
98 inline void SetAggregationField(const char* value) { m_aggregationFieldHasBeenSet = true; m_aggregationField.assign(value); }
100 inline CreateFleetMetricRequest& WithAggregationField(Aws::String&& value) { SetAggregationField(std::move(value)); return *this;}
101 inline CreateFleetMetricRequest& WithAggregationField(const char* value) { SetAggregationField(value); return *this;}
103
105
108 inline const Aws::String& GetDescription() const{ return m_description; }
109 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
110 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
111 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
112 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
113 inline CreateFleetMetricRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
114 inline CreateFleetMetricRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
115 inline CreateFleetMetricRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
117
119
122 inline const Aws::String& GetQueryVersion() const{ return m_queryVersion; }
123 inline bool QueryVersionHasBeenSet() const { return m_queryVersionHasBeenSet; }
124 inline void SetQueryVersion(const Aws::String& value) { m_queryVersionHasBeenSet = true; m_queryVersion = value; }
125 inline void SetQueryVersion(Aws::String&& value) { m_queryVersionHasBeenSet = true; m_queryVersion = std::move(value); }
126 inline void SetQueryVersion(const char* value) { m_queryVersionHasBeenSet = true; m_queryVersion.assign(value); }
127 inline CreateFleetMetricRequest& WithQueryVersion(const Aws::String& value) { SetQueryVersion(value); return *this;}
128 inline CreateFleetMetricRequest& WithQueryVersion(Aws::String&& value) { SetQueryVersion(std::move(value)); return *this;}
129 inline CreateFleetMetricRequest& WithQueryVersion(const char* value) { SetQueryVersion(value); return *this;}
131
133
136 inline const Aws::String& GetIndexName() const{ return m_indexName; }
137 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
138 inline void SetIndexName(const Aws::String& value) { m_indexNameHasBeenSet = true; m_indexName = value; }
139 inline void SetIndexName(Aws::String&& value) { m_indexNameHasBeenSet = true; m_indexName = std::move(value); }
140 inline void SetIndexName(const char* value) { m_indexNameHasBeenSet = true; m_indexName.assign(value); }
141 inline CreateFleetMetricRequest& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;}
142 inline CreateFleetMetricRequest& WithIndexName(Aws::String&& value) { SetIndexName(std::move(value)); return *this;}
143 inline CreateFleetMetricRequest& WithIndexName(const char* value) { SetIndexName(value); return *this;}
145
147
153 inline const FleetMetricUnit& GetUnit() const{ return m_unit; }
154 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
155 inline void SetUnit(const FleetMetricUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
156 inline void SetUnit(FleetMetricUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
157 inline CreateFleetMetricRequest& WithUnit(const FleetMetricUnit& value) { SetUnit(value); return *this;}
158 inline CreateFleetMetricRequest& WithUnit(FleetMetricUnit&& value) { SetUnit(std::move(value)); return *this;}
160
162
165 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
166 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
167 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
168 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
169 inline CreateFleetMetricRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
170 inline CreateFleetMetricRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
171 inline CreateFleetMetricRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
172 inline CreateFleetMetricRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
174 private:
175
176 Aws::String m_metricName;
177 bool m_metricNameHasBeenSet = false;
178
179 Aws::String m_queryString;
180 bool m_queryStringHasBeenSet = false;
181
182 AggregationType m_aggregationType;
183 bool m_aggregationTypeHasBeenSet = false;
184
185 int m_period;
186 bool m_periodHasBeenSet = false;
187
188 Aws::String m_aggregationField;
189 bool m_aggregationFieldHasBeenSet = false;
190
191 Aws::String m_description;
192 bool m_descriptionHasBeenSet = false;
193
194 Aws::String m_queryVersion;
195 bool m_queryVersionHasBeenSet = false;
196
197 Aws::String m_indexName;
198 bool m_indexNameHasBeenSet = false;
199
200 FleetMetricUnit m_unit;
201 bool m_unitHasBeenSet = false;
202
203 Aws::Vector<Tag> m_tags;
204 bool m_tagsHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace IoT
209} // namespace Aws
CreateFleetMetricRequest & WithUnit(const FleetMetricUnit &value)
CreateFleetMetricRequest & WithDescription(Aws::String &&value)
void SetAggregationField(const Aws::String &value)
CreateFleetMetricRequest & WithIndexName(const char *value)
void SetTags(const Aws::Vector< Tag > &value)
CreateFleetMetricRequest & WithAggregationField(const Aws::String &value)
CreateFleetMetricRequest & WithAggregationType(const AggregationType &value)
CreateFleetMetricRequest & WithAggregationType(AggregationType &&value)
CreateFleetMetricRequest & WithQueryString(Aws::String &&value)
CreateFleetMetricRequest & WithDescription(const char *value)
CreateFleetMetricRequest & WithPeriod(int value)
CreateFleetMetricRequest & WithQueryString(const char *value)
CreateFleetMetricRequest & WithAggregationField(const char *value)
void SetAggregationType(const AggregationType &value)
CreateFleetMetricRequest & WithQueryVersion(const char *value)
CreateFleetMetricRequest & WithTags(Aws::Vector< Tag > &&value)
CreateFleetMetricRequest & WithQueryString(const Aws::String &value)
const AggregationType & GetAggregationType() const
CreateFleetMetricRequest & WithQueryVersion(Aws::String &&value)
CreateFleetMetricRequest & WithDescription(const Aws::String &value)
CreateFleetMetricRequest & AddTags(const Tag &value)
CreateFleetMetricRequest & WithQueryVersion(const Aws::String &value)
CreateFleetMetricRequest & AddTags(Tag &&value)
CreateFleetMetricRequest & WithMetricName(const char *value)
CreateFleetMetricRequest & WithAggregationField(Aws::String &&value)
CreateFleetMetricRequest & WithIndexName(const Aws::String &value)
CreateFleetMetricRequest & WithTags(const Aws::Vector< Tag > &value)
AWS_IOT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateFleetMetricRequest & WithUnit(FleetMetricUnit &&value)
CreateFleetMetricRequest & WithMetricName(Aws::String &&value)
CreateFleetMetricRequest & WithIndexName(Aws::String &&value)
CreateFleetMetricRequest & WithMetricName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector