AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateMetricSetRequest.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/lookoutmetrics/model/Metric.h>
15#include <aws/lookoutmetrics/model/MetricSetDimensionFilter.h>
16#include <utility>
17
18namespace Aws
19{
20namespace LookoutMetrics
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_LOOKOUTMETRICS_API UpdateMetricSetRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateMetricSet"; }
37
38 AWS_LOOKOUTMETRICS_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetMetricSetArn() const{ return m_metricSetArn; }
46 inline bool MetricSetArnHasBeenSet() const { return m_metricSetArnHasBeenSet; }
47 inline void SetMetricSetArn(const Aws::String& value) { m_metricSetArnHasBeenSet = true; m_metricSetArn = value; }
48 inline void SetMetricSetArn(Aws::String&& value) { m_metricSetArnHasBeenSet = true; m_metricSetArn = std::move(value); }
49 inline void SetMetricSetArn(const char* value) { m_metricSetArnHasBeenSet = true; m_metricSetArn.assign(value); }
50 inline UpdateMetricSetRequest& WithMetricSetArn(const Aws::String& value) { SetMetricSetArn(value); return *this;}
51 inline UpdateMetricSetRequest& WithMetricSetArn(Aws::String&& value) { SetMetricSetArn(std::move(value)); return *this;}
52 inline UpdateMetricSetRequest& WithMetricSetArn(const char* value) { SetMetricSetArn(value); return *this;}
54
56
59 inline const Aws::String& GetMetricSetDescription() const{ return m_metricSetDescription; }
60 inline bool MetricSetDescriptionHasBeenSet() const { return m_metricSetDescriptionHasBeenSet; }
61 inline void SetMetricSetDescription(const Aws::String& value) { m_metricSetDescriptionHasBeenSet = true; m_metricSetDescription = value; }
62 inline void SetMetricSetDescription(Aws::String&& value) { m_metricSetDescriptionHasBeenSet = true; m_metricSetDescription = std::move(value); }
63 inline void SetMetricSetDescription(const char* value) { m_metricSetDescriptionHasBeenSet = true; m_metricSetDescription.assign(value); }
65 inline UpdateMetricSetRequest& WithMetricSetDescription(Aws::String&& value) { SetMetricSetDescription(std::move(value)); return *this;}
66 inline UpdateMetricSetRequest& WithMetricSetDescription(const char* value) { SetMetricSetDescription(value); return *this;}
68
70
73 inline const Aws::Vector<Metric>& GetMetricList() const{ return m_metricList; }
74 inline bool MetricListHasBeenSet() const { return m_metricListHasBeenSet; }
75 inline void SetMetricList(const Aws::Vector<Metric>& value) { m_metricListHasBeenSet = true; m_metricList = value; }
76 inline void SetMetricList(Aws::Vector<Metric>&& value) { m_metricListHasBeenSet = true; m_metricList = std::move(value); }
77 inline UpdateMetricSetRequest& WithMetricList(const Aws::Vector<Metric>& value) { SetMetricList(value); return *this;}
78 inline UpdateMetricSetRequest& WithMetricList(Aws::Vector<Metric>&& value) { SetMetricList(std::move(value)); return *this;}
79 inline UpdateMetricSetRequest& AddMetricList(const Metric& value) { m_metricListHasBeenSet = true; m_metricList.push_back(value); return *this; }
80 inline UpdateMetricSetRequest& AddMetricList(Metric&& value) { m_metricListHasBeenSet = true; m_metricList.push_back(std::move(value)); return *this; }
82
84
89 inline int GetOffset() const{ return m_offset; }
90 inline bool OffsetHasBeenSet() const { return m_offsetHasBeenSet; }
91 inline void SetOffset(int value) { m_offsetHasBeenSet = true; m_offset = value; }
92 inline UpdateMetricSetRequest& WithOffset(int value) { SetOffset(value); return *this;}
94
96
99 inline const TimestampColumn& GetTimestampColumn() const{ return m_timestampColumn; }
100 inline bool TimestampColumnHasBeenSet() const { return m_timestampColumnHasBeenSet; }
101 inline void SetTimestampColumn(const TimestampColumn& value) { m_timestampColumnHasBeenSet = true; m_timestampColumn = value; }
102 inline void SetTimestampColumn(TimestampColumn&& value) { m_timestampColumnHasBeenSet = true; m_timestampColumn = std::move(value); }
104 inline UpdateMetricSetRequest& WithTimestampColumn(TimestampColumn&& value) { SetTimestampColumn(std::move(value)); return *this;}
106
108
111 inline const Aws::Vector<Aws::String>& GetDimensionList() const{ return m_dimensionList; }
112 inline bool DimensionListHasBeenSet() const { return m_dimensionListHasBeenSet; }
113 inline void SetDimensionList(const Aws::Vector<Aws::String>& value) { m_dimensionListHasBeenSet = true; m_dimensionList = value; }
114 inline void SetDimensionList(Aws::Vector<Aws::String>&& value) { m_dimensionListHasBeenSet = true; m_dimensionList = std::move(value); }
116 inline UpdateMetricSetRequest& WithDimensionList(Aws::Vector<Aws::String>&& value) { SetDimensionList(std::move(value)); return *this;}
117 inline UpdateMetricSetRequest& AddDimensionList(const Aws::String& value) { m_dimensionListHasBeenSet = true; m_dimensionList.push_back(value); return *this; }
118 inline UpdateMetricSetRequest& AddDimensionList(Aws::String&& value) { m_dimensionListHasBeenSet = true; m_dimensionList.push_back(std::move(value)); return *this; }
119 inline UpdateMetricSetRequest& AddDimensionList(const char* value) { m_dimensionListHasBeenSet = true; m_dimensionList.push_back(value); return *this; }
121
123
126 inline const Frequency& GetMetricSetFrequency() const{ return m_metricSetFrequency; }
127 inline bool MetricSetFrequencyHasBeenSet() const { return m_metricSetFrequencyHasBeenSet; }
128 inline void SetMetricSetFrequency(const Frequency& value) { m_metricSetFrequencyHasBeenSet = true; m_metricSetFrequency = value; }
129 inline void SetMetricSetFrequency(Frequency&& value) { m_metricSetFrequencyHasBeenSet = true; m_metricSetFrequency = std::move(value); }
131 inline UpdateMetricSetRequest& WithMetricSetFrequency(Frequency&& value) { SetMetricSetFrequency(std::move(value)); return *this;}
133
135
136 inline const MetricSource& GetMetricSource() const{ return m_metricSource; }
137 inline bool MetricSourceHasBeenSet() const { return m_metricSourceHasBeenSet; }
138 inline void SetMetricSource(const MetricSource& value) { m_metricSourceHasBeenSet = true; m_metricSource = value; }
139 inline void SetMetricSource(MetricSource&& value) { m_metricSourceHasBeenSet = true; m_metricSource = std::move(value); }
140 inline UpdateMetricSetRequest& WithMetricSource(const MetricSource& value) { SetMetricSource(value); return *this;}
141 inline UpdateMetricSetRequest& WithMetricSource(MetricSource&& value) { SetMetricSource(std::move(value)); return *this;}
143
145
152 inline const Aws::Vector<MetricSetDimensionFilter>& GetDimensionFilterList() const{ return m_dimensionFilterList; }
153 inline bool DimensionFilterListHasBeenSet() const { return m_dimensionFilterListHasBeenSet; }
154 inline void SetDimensionFilterList(const Aws::Vector<MetricSetDimensionFilter>& value) { m_dimensionFilterListHasBeenSet = true; m_dimensionFilterList = value; }
155 inline void SetDimensionFilterList(Aws::Vector<MetricSetDimensionFilter>&& value) { m_dimensionFilterListHasBeenSet = true; m_dimensionFilterList = std::move(value); }
158 inline UpdateMetricSetRequest& AddDimensionFilterList(const MetricSetDimensionFilter& value) { m_dimensionFilterListHasBeenSet = true; m_dimensionFilterList.push_back(value); return *this; }
159 inline UpdateMetricSetRequest& AddDimensionFilterList(MetricSetDimensionFilter&& value) { m_dimensionFilterListHasBeenSet = true; m_dimensionFilterList.push_back(std::move(value)); return *this; }
161 private:
162
163 Aws::String m_metricSetArn;
164 bool m_metricSetArnHasBeenSet = false;
165
166 Aws::String m_metricSetDescription;
167 bool m_metricSetDescriptionHasBeenSet = false;
168
169 Aws::Vector<Metric> m_metricList;
170 bool m_metricListHasBeenSet = false;
171
172 int m_offset;
173 bool m_offsetHasBeenSet = false;
174
175 TimestampColumn m_timestampColumn;
176 bool m_timestampColumnHasBeenSet = false;
177
178 Aws::Vector<Aws::String> m_dimensionList;
179 bool m_dimensionListHasBeenSet = false;
180
181 Frequency m_metricSetFrequency;
182 bool m_metricSetFrequencyHasBeenSet = false;
183
184 MetricSource m_metricSource;
185 bool m_metricSourceHasBeenSet = false;
186
187 Aws::Vector<MetricSetDimensionFilter> m_dimensionFilterList;
188 bool m_dimensionFilterListHasBeenSet = false;
189 };
190
191} // namespace Model
192} // namespace LookoutMetrics
193} // namespace Aws
UpdateMetricSetRequest & WithMetricSetDescription(Aws::String &&value)
UpdateMetricSetRequest & WithDimensionList(Aws::Vector< Aws::String > &&value)
void SetDimensionFilterList(Aws::Vector< MetricSetDimensionFilter > &&value)
UpdateMetricSetRequest & WithTimestampColumn(const TimestampColumn &value)
UpdateMetricSetRequest & WithMetricSource(const MetricSource &value)
UpdateMetricSetRequest & WithMetricSetFrequency(const Frequency &value)
UpdateMetricSetRequest & AddDimensionList(const char *value)
UpdateMetricSetRequest & WithMetricSetFrequency(Frequency &&value)
AWS_LOOKOUTMETRICS_API Aws::String SerializePayload() const override
UpdateMetricSetRequest & WithMetricSetArn(const Aws::String &value)
void SetDimensionFilterList(const Aws::Vector< MetricSetDimensionFilter > &value)
const Aws::Vector< Aws::String > & GetDimensionList() const
UpdateMetricSetRequest & WithDimensionList(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Metric > & GetMetricList() const
UpdateMetricSetRequest & WithMetricSetArn(Aws::String &&value)
UpdateMetricSetRequest & AddDimensionFilterList(MetricSetDimensionFilter &&value)
UpdateMetricSetRequest & WithMetricSetDescription(const char *value)
void SetMetricList(const Aws::Vector< Metric > &value)
UpdateMetricSetRequest & WithMetricSetDescription(const Aws::String &value)
UpdateMetricSetRequest & WithMetricList(const Aws::Vector< Metric > &value)
UpdateMetricSetRequest & WithMetricSetArn(const char *value)
UpdateMetricSetRequest & AddDimensionFilterList(const MetricSetDimensionFilter &value)
void SetDimensionList(Aws::Vector< Aws::String > &&value)
const Aws::Vector< MetricSetDimensionFilter > & GetDimensionFilterList() const
virtual const char * GetServiceRequestName() const override
UpdateMetricSetRequest & AddDimensionList(const Aws::String &value)
UpdateMetricSetRequest & WithTimestampColumn(TimestampColumn &&value)
UpdateMetricSetRequest & WithMetricList(Aws::Vector< Metric > &&value)
UpdateMetricSetRequest & AddMetricList(Metric &&value)
void SetDimensionList(const Aws::Vector< Aws::String > &value)
UpdateMetricSetRequest & AddMetricList(const Metric &value)
UpdateMetricSetRequest & AddDimensionList(Aws::String &&value)
UpdateMetricSetRequest & WithDimensionFilterList(Aws::Vector< MetricSetDimensionFilter > &&value)
UpdateMetricSetRequest & WithDimensionFilterList(const Aws::Vector< MetricSetDimensionFilter > &value)
UpdateMetricSetRequest & WithMetricSource(MetricSource &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector