AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateMetricSetRequest.h
1
6#pragma once
7#include <aws/lookoutmetrics/LookoutMetrics_EXPORTS.h>
8#include <aws/lookoutmetrics/LookoutMetricsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/lookoutmetrics/model/TimestampColumn.h>
12#include <aws/lookoutmetrics/model/Frequency.h>
13#include <aws/lookoutmetrics/model/MetricSource.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/lookoutmetrics/model/Metric.h>
16#include <aws/lookoutmetrics/model/MetricSetDimensionFilter.h>
17#include <utility>
18
19namespace Aws
20{
21namespace LookoutMetrics
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_LOOKOUTMETRICS_API CreateMetricSetRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateMetricSet"; }
38
39 AWS_LOOKOUTMETRICS_API Aws::String SerializePayload() const override;
40
41
43
46 inline const Aws::String& GetAnomalyDetectorArn() const{ return m_anomalyDetectorArn; }
47 inline bool AnomalyDetectorArnHasBeenSet() const { return m_anomalyDetectorArnHasBeenSet; }
48 inline void SetAnomalyDetectorArn(const Aws::String& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = value; }
49 inline void SetAnomalyDetectorArn(Aws::String&& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = std::move(value); }
50 inline void SetAnomalyDetectorArn(const char* value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn.assign(value); }
52 inline CreateMetricSetRequest& WithAnomalyDetectorArn(Aws::String&& value) { SetAnomalyDetectorArn(std::move(value)); return *this;}
53 inline CreateMetricSetRequest& WithAnomalyDetectorArn(const char* value) { SetAnomalyDetectorArn(value); return *this;}
55
57
60 inline const Aws::String& GetMetricSetName() const{ return m_metricSetName; }
61 inline bool MetricSetNameHasBeenSet() const { return m_metricSetNameHasBeenSet; }
62 inline void SetMetricSetName(const Aws::String& value) { m_metricSetNameHasBeenSet = true; m_metricSetName = value; }
63 inline void SetMetricSetName(Aws::String&& value) { m_metricSetNameHasBeenSet = true; m_metricSetName = std::move(value); }
64 inline void SetMetricSetName(const char* value) { m_metricSetNameHasBeenSet = true; m_metricSetName.assign(value); }
65 inline CreateMetricSetRequest& WithMetricSetName(const Aws::String& value) { SetMetricSetName(value); return *this;}
66 inline CreateMetricSetRequest& WithMetricSetName(Aws::String&& value) { SetMetricSetName(std::move(value)); return *this;}
67 inline CreateMetricSetRequest& WithMetricSetName(const char* value) { SetMetricSetName(value); return *this;}
69
71
74 inline const Aws::String& GetMetricSetDescription() const{ return m_metricSetDescription; }
75 inline bool MetricSetDescriptionHasBeenSet() const { return m_metricSetDescriptionHasBeenSet; }
76 inline void SetMetricSetDescription(const Aws::String& value) { m_metricSetDescriptionHasBeenSet = true; m_metricSetDescription = value; }
77 inline void SetMetricSetDescription(Aws::String&& value) { m_metricSetDescriptionHasBeenSet = true; m_metricSetDescription = std::move(value); }
78 inline void SetMetricSetDescription(const char* value) { m_metricSetDescriptionHasBeenSet = true; m_metricSetDescription.assign(value); }
80 inline CreateMetricSetRequest& WithMetricSetDescription(Aws::String&& value) { SetMetricSetDescription(std::move(value)); return *this;}
81 inline CreateMetricSetRequest& WithMetricSetDescription(const char* value) { SetMetricSetDescription(value); return *this;}
83
85
88 inline const Aws::Vector<Metric>& GetMetricList() const{ return m_metricList; }
89 inline bool MetricListHasBeenSet() const { return m_metricListHasBeenSet; }
90 inline void SetMetricList(const Aws::Vector<Metric>& value) { m_metricListHasBeenSet = true; m_metricList = value; }
91 inline void SetMetricList(Aws::Vector<Metric>&& value) { m_metricListHasBeenSet = true; m_metricList = std::move(value); }
92 inline CreateMetricSetRequest& WithMetricList(const Aws::Vector<Metric>& value) { SetMetricList(value); return *this;}
93 inline CreateMetricSetRequest& WithMetricList(Aws::Vector<Metric>&& value) { SetMetricList(std::move(value)); return *this;}
94 inline CreateMetricSetRequest& AddMetricList(const Metric& value) { m_metricListHasBeenSet = true; m_metricList.push_back(value); return *this; }
95 inline CreateMetricSetRequest& AddMetricList(Metric&& value) { m_metricListHasBeenSet = true; m_metricList.push_back(std::move(value)); return *this; }
97
99
104 inline int GetOffset() const{ return m_offset; }
105 inline bool OffsetHasBeenSet() const { return m_offsetHasBeenSet; }
106 inline void SetOffset(int value) { m_offsetHasBeenSet = true; m_offset = value; }
107 inline CreateMetricSetRequest& WithOffset(int value) { SetOffset(value); return *this;}
109
111
115 inline const TimestampColumn& GetTimestampColumn() const{ return m_timestampColumn; }
116 inline bool TimestampColumnHasBeenSet() const { return m_timestampColumnHasBeenSet; }
117 inline void SetTimestampColumn(const TimestampColumn& value) { m_timestampColumnHasBeenSet = true; m_timestampColumn = value; }
118 inline void SetTimestampColumn(TimestampColumn&& value) { m_timestampColumnHasBeenSet = true; m_timestampColumn = std::move(value); }
120 inline CreateMetricSetRequest& WithTimestampColumn(TimestampColumn&& value) { SetTimestampColumn(std::move(value)); return *this;}
122
124
127 inline const Aws::Vector<Aws::String>& GetDimensionList() const{ return m_dimensionList; }
128 inline bool DimensionListHasBeenSet() const { return m_dimensionListHasBeenSet; }
129 inline void SetDimensionList(const Aws::Vector<Aws::String>& value) { m_dimensionListHasBeenSet = true; m_dimensionList = value; }
130 inline void SetDimensionList(Aws::Vector<Aws::String>&& value) { m_dimensionListHasBeenSet = true; m_dimensionList = std::move(value); }
132 inline CreateMetricSetRequest& WithDimensionList(Aws::Vector<Aws::String>&& value) { SetDimensionList(std::move(value)); return *this;}
133 inline CreateMetricSetRequest& AddDimensionList(const Aws::String& value) { m_dimensionListHasBeenSet = true; m_dimensionList.push_back(value); return *this; }
134 inline CreateMetricSetRequest& AddDimensionList(Aws::String&& value) { m_dimensionListHasBeenSet = true; m_dimensionList.push_back(std::move(value)); return *this; }
135 inline CreateMetricSetRequest& AddDimensionList(const char* value) { m_dimensionListHasBeenSet = true; m_dimensionList.push_back(value); return *this; }
137
139
142 inline const Frequency& GetMetricSetFrequency() const{ return m_metricSetFrequency; }
143 inline bool MetricSetFrequencyHasBeenSet() const { return m_metricSetFrequencyHasBeenSet; }
144 inline void SetMetricSetFrequency(const Frequency& value) { m_metricSetFrequencyHasBeenSet = true; m_metricSetFrequency = value; }
145 inline void SetMetricSetFrequency(Frequency&& value) { m_metricSetFrequencyHasBeenSet = true; m_metricSetFrequency = std::move(value); }
147 inline CreateMetricSetRequest& WithMetricSetFrequency(Frequency&& value) { SetMetricSetFrequency(std::move(value)); return *this;}
149
151
154 inline const MetricSource& GetMetricSource() const{ return m_metricSource; }
155 inline bool MetricSourceHasBeenSet() const { return m_metricSourceHasBeenSet; }
156 inline void SetMetricSource(const MetricSource& value) { m_metricSourceHasBeenSet = true; m_metricSource = value; }
157 inline void SetMetricSource(MetricSource&& value) { m_metricSourceHasBeenSet = true; m_metricSource = std::move(value); }
158 inline CreateMetricSetRequest& WithMetricSource(const MetricSource& value) { SetMetricSource(value); return *this;}
159 inline CreateMetricSetRequest& WithMetricSource(MetricSource&& value) { SetMetricSource(std::move(value)); return *this;}
161
163
166 inline const Aws::String& GetTimezone() const{ return m_timezone; }
167 inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
168 inline void SetTimezone(const Aws::String& value) { m_timezoneHasBeenSet = true; m_timezone = value; }
169 inline void SetTimezone(Aws::String&& value) { m_timezoneHasBeenSet = true; m_timezone = std::move(value); }
170 inline void SetTimezone(const char* value) { m_timezoneHasBeenSet = true; m_timezone.assign(value); }
171 inline CreateMetricSetRequest& WithTimezone(const Aws::String& value) { SetTimezone(value); return *this;}
172 inline CreateMetricSetRequest& WithTimezone(Aws::String&& value) { SetTimezone(std::move(value)); return *this;}
173 inline CreateMetricSetRequest& WithTimezone(const char* value) { SetTimezone(value); return *this;}
175
177
182 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
183 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
184 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
185 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
186 inline CreateMetricSetRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
187 inline CreateMetricSetRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
188 inline CreateMetricSetRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
189 inline CreateMetricSetRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
190 inline CreateMetricSetRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
191 inline CreateMetricSetRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
192 inline CreateMetricSetRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
193 inline CreateMetricSetRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
194 inline CreateMetricSetRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
196
198
201 inline const Aws::Vector<MetricSetDimensionFilter>& GetDimensionFilterList() const{ return m_dimensionFilterList; }
202 inline bool DimensionFilterListHasBeenSet() const { return m_dimensionFilterListHasBeenSet; }
203 inline void SetDimensionFilterList(const Aws::Vector<MetricSetDimensionFilter>& value) { m_dimensionFilterListHasBeenSet = true; m_dimensionFilterList = value; }
204 inline void SetDimensionFilterList(Aws::Vector<MetricSetDimensionFilter>&& value) { m_dimensionFilterListHasBeenSet = true; m_dimensionFilterList = std::move(value); }
207 inline CreateMetricSetRequest& AddDimensionFilterList(const MetricSetDimensionFilter& value) { m_dimensionFilterListHasBeenSet = true; m_dimensionFilterList.push_back(value); return *this; }
208 inline CreateMetricSetRequest& AddDimensionFilterList(MetricSetDimensionFilter&& value) { m_dimensionFilterListHasBeenSet = true; m_dimensionFilterList.push_back(std::move(value)); return *this; }
210 private:
211
212 Aws::String m_anomalyDetectorArn;
213 bool m_anomalyDetectorArnHasBeenSet = false;
214
215 Aws::String m_metricSetName;
216 bool m_metricSetNameHasBeenSet = false;
217
218 Aws::String m_metricSetDescription;
219 bool m_metricSetDescriptionHasBeenSet = false;
220
221 Aws::Vector<Metric> m_metricList;
222 bool m_metricListHasBeenSet = false;
223
224 int m_offset;
225 bool m_offsetHasBeenSet = false;
226
227 TimestampColumn m_timestampColumn;
228 bool m_timestampColumnHasBeenSet = false;
229
230 Aws::Vector<Aws::String> m_dimensionList;
231 bool m_dimensionListHasBeenSet = false;
232
233 Frequency m_metricSetFrequency;
234 bool m_metricSetFrequencyHasBeenSet = false;
235
236 MetricSource m_metricSource;
237 bool m_metricSourceHasBeenSet = false;
238
239 Aws::String m_timezone;
240 bool m_timezoneHasBeenSet = false;
241
243 bool m_tagsHasBeenSet = false;
244
245 Aws::Vector<MetricSetDimensionFilter> m_dimensionFilterList;
246 bool m_dimensionFilterListHasBeenSet = false;
247 };
248
249} // namespace Model
250} // namespace LookoutMetrics
251} // namespace Aws
CreateMetricSetRequest & AddMetricList(const Metric &value)
CreateMetricSetRequest & WithTimezone(const char *value)
CreateMetricSetRequest & WithMetricList(const Aws::Vector< Metric > &value)
CreateMetricSetRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Vector< Metric > & GetMetricList() const
CreateMetricSetRequest & WithMetricSource(MetricSource &&value)
void SetDimensionFilterList(const Aws::Vector< MetricSetDimensionFilter > &value)
CreateMetricSetRequest & AddTags(const char *key, Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateMetricSetRequest & WithDimensionList(Aws::Vector< Aws::String > &&value)
CreateMetricSetRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateMetricSetRequest & AddTags(Aws::String &&key, const char *value)
CreateMetricSetRequest & WithMetricSetName(const char *value)
CreateMetricSetRequest & WithDimensionFilterList(const Aws::Vector< MetricSetDimensionFilter > &value)
CreateMetricSetRequest & WithAnomalyDetectorArn(Aws::String &&value)
void SetMetricList(const Aws::Vector< Metric > &value)
CreateMetricSetRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateMetricSetRequest & WithAnomalyDetectorArn(const Aws::String &value)
void SetDimensionList(const Aws::Vector< Aws::String > &value)
CreateMetricSetRequest & WithMetricSource(const MetricSource &value)
CreateMetricSetRequest & AddDimensionList(Aws::String &&value)
CreateMetricSetRequest & WithTimezone(const Aws::String &value)
CreateMetricSetRequest & AddMetricList(Metric &&value)
CreateMetricSetRequest & AddDimensionFilterList(const MetricSetDimensionFilter &value)
CreateMetricSetRequest & WithMetricSetDescription(const Aws::String &value)
CreateMetricSetRequest & AddDimensionFilterList(MetricSetDimensionFilter &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateMetricSetRequest & WithDimensionFilterList(Aws::Vector< MetricSetDimensionFilter > &&value)
CreateMetricSetRequest & AddDimensionList(const char *value)
const Aws::Vector< Aws::String > & GetDimensionList() const
CreateMetricSetRequest & WithAnomalyDetectorArn(const char *value)
CreateMetricSetRequest & WithMetricSetName(const Aws::String &value)
CreateMetricSetRequest & WithMetricSetDescription(const char *value)
void SetDimensionList(Aws::Vector< Aws::String > &&value)
void SetDimensionFilterList(Aws::Vector< MetricSetDimensionFilter > &&value)
CreateMetricSetRequest & WithTimestampColumn(TimestampColumn &&value)
CreateMetricSetRequest & WithMetricSetFrequency(Frequency &&value)
CreateMetricSetRequest & WithDimensionList(const Aws::Vector< Aws::String > &value)
CreateMetricSetRequest & WithTimezone(Aws::String &&value)
CreateMetricSetRequest & WithMetricSetDescription(Aws::String &&value)
AWS_LOOKOUTMETRICS_API Aws::String SerializePayload() const override
CreateMetricSetRequest & AddDimensionList(const Aws::String &value)
CreateMetricSetRequest & WithMetricSetName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateMetricSetRequest & AddTags(const char *key, const char *value)
CreateMetricSetRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateMetricSetRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateMetricSetRequest & WithTimestampColumn(const TimestampColumn &value)
const Aws::Vector< MetricSetDimensionFilter > & GetDimensionFilterList() const
CreateMetricSetRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateMetricSetRequest & WithMetricSetFrequency(const Frequency &value)
CreateMetricSetRequest & WithMetricList(Aws::Vector< Metric > &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector