AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
28 AWS_IOT_API CreateFleetMetricRequest() = default;
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 template<typename MetricNameT = Aws::String>
46 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
47 template<typename MetricNameT = Aws::String>
48 CreateFleetMetricRequest& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
50
52
55 inline const Aws::String& GetQueryString() const { return m_queryString; }
56 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
57 template<typename QueryStringT = Aws::String>
58 void SetQueryString(QueryStringT&& value) { m_queryStringHasBeenSet = true; m_queryString = std::forward<QueryStringT>(value); }
59 template<typename QueryStringT = Aws::String>
60 CreateFleetMetricRequest& WithQueryString(QueryStringT&& value) { SetQueryString(std::forward<QueryStringT>(value)); return *this;}
62
64
67 inline const AggregationType& GetAggregationType() const { return m_aggregationType; }
68 inline bool AggregationTypeHasBeenSet() const { return m_aggregationTypeHasBeenSet; }
69 template<typename AggregationTypeT = AggregationType>
70 void SetAggregationType(AggregationTypeT&& value) { m_aggregationTypeHasBeenSet = true; m_aggregationType = std::forward<AggregationTypeT>(value); }
71 template<typename AggregationTypeT = AggregationType>
72 CreateFleetMetricRequest& WithAggregationType(AggregationTypeT&& value) { SetAggregationType(std::forward<AggregationTypeT>(value)); return *this;}
74
76
80 inline int GetPeriod() const { return m_period; }
81 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
82 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
83 inline CreateFleetMetricRequest& WithPeriod(int value) { SetPeriod(value); return *this;}
85
87
90 inline const Aws::String& GetAggregationField() const { return m_aggregationField; }
91 inline bool AggregationFieldHasBeenSet() const { return m_aggregationFieldHasBeenSet; }
92 template<typename AggregationFieldT = Aws::String>
93 void SetAggregationField(AggregationFieldT&& value) { m_aggregationFieldHasBeenSet = true; m_aggregationField = std::forward<AggregationFieldT>(value); }
94 template<typename AggregationFieldT = Aws::String>
95 CreateFleetMetricRequest& WithAggregationField(AggregationFieldT&& value) { SetAggregationField(std::forward<AggregationFieldT>(value)); return *this;}
97
99
102 inline const Aws::String& GetDescription() const { return m_description; }
103 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
104 template<typename DescriptionT = Aws::String>
105 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
106 template<typename DescriptionT = Aws::String>
107 CreateFleetMetricRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
109
111
114 inline const Aws::String& GetQueryVersion() const { return m_queryVersion; }
115 inline bool QueryVersionHasBeenSet() const { return m_queryVersionHasBeenSet; }
116 template<typename QueryVersionT = Aws::String>
117 void SetQueryVersion(QueryVersionT&& value) { m_queryVersionHasBeenSet = true; m_queryVersion = std::forward<QueryVersionT>(value); }
118 template<typename QueryVersionT = Aws::String>
119 CreateFleetMetricRequest& WithQueryVersion(QueryVersionT&& value) { SetQueryVersion(std::forward<QueryVersionT>(value)); return *this;}
121
123
126 inline const Aws::String& GetIndexName() const { return m_indexName; }
127 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
128 template<typename IndexNameT = Aws::String>
129 void SetIndexName(IndexNameT&& value) { m_indexNameHasBeenSet = true; m_indexName = std::forward<IndexNameT>(value); }
130 template<typename IndexNameT = Aws::String>
131 CreateFleetMetricRequest& WithIndexName(IndexNameT&& value) { SetIndexName(std::forward<IndexNameT>(value)); return *this;}
133
135
141 inline FleetMetricUnit GetUnit() const { return m_unit; }
142 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
143 inline void SetUnit(FleetMetricUnit value) { m_unitHasBeenSet = true; m_unit = value; }
144 inline CreateFleetMetricRequest& WithUnit(FleetMetricUnit value) { SetUnit(value); return *this;}
146
148
151 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
152 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
153 template<typename TagsT = Aws::Vector<Tag>>
154 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
155 template<typename TagsT = Aws::Vector<Tag>>
156 CreateFleetMetricRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
157 template<typename TagsT = Tag>
158 CreateFleetMetricRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
160 private:
161
162 Aws::String m_metricName;
163 bool m_metricNameHasBeenSet = false;
164
165 Aws::String m_queryString;
166 bool m_queryStringHasBeenSet = false;
167
168 AggregationType m_aggregationType;
169 bool m_aggregationTypeHasBeenSet = false;
170
171 int m_period{0};
172 bool m_periodHasBeenSet = false;
173
174 Aws::String m_aggregationField;
175 bool m_aggregationFieldHasBeenSet = false;
176
177 Aws::String m_description;
178 bool m_descriptionHasBeenSet = false;
179
180 Aws::String m_queryVersion;
181 bool m_queryVersionHasBeenSet = false;
182
183 Aws::String m_indexName;
184 bool m_indexNameHasBeenSet = false;
185
187 bool m_unitHasBeenSet = false;
188
189 Aws::Vector<Tag> m_tags;
190 bool m_tagsHasBeenSet = false;
191 };
192
193} // namespace Model
194} // namespace IoT
195} // namespace Aws
CreateFleetMetricRequest & WithIndexName(IndexNameT &&value)
CreateFleetMetricRequest & WithMetricName(MetricNameT &&value)
AWS_IOT_API CreateFleetMetricRequest()=default
CreateFleetMetricRequest & AddTags(TagsT &&value)
CreateFleetMetricRequest & WithQueryString(QueryStringT &&value)
void SetAggregationField(AggregationFieldT &&value)
CreateFleetMetricRequest & WithPeriod(int value)
CreateFleetMetricRequest & WithQueryVersion(QueryVersionT &&value)
CreateFleetMetricRequest & WithTags(TagsT &&value)
CreateFleetMetricRequest & WithDescription(DescriptionT &&value)
void SetAggregationType(AggregationTypeT &&value)
CreateFleetMetricRequest & WithAggregationField(AggregationFieldT &&value)
const AggregationType & GetAggregationType() const
AWS_IOT_API Aws::String SerializePayload() const override
CreateFleetMetricRequest & WithUnit(FleetMetricUnit value)
virtual const char * GetServiceRequestName() const override
CreateFleetMetricRequest & WithAggregationType(AggregationTypeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector