AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TimeSeries.h
1
6#pragma once
7#include <aws/lookoutmetrics/LookoutMetrics_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lookoutmetrics/model/DimensionNameValue.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace LookoutMetrics
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_LOOKOUTMETRICS_API TimeSeries();
39 AWS_LOOKOUTMETRICS_API TimeSeries(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LOOKOUTMETRICS_API TimeSeries& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetTimeSeriesId() const{ return m_timeSeriesId; }
49 inline bool TimeSeriesIdHasBeenSet() const { return m_timeSeriesIdHasBeenSet; }
50 inline void SetTimeSeriesId(const Aws::String& value) { m_timeSeriesIdHasBeenSet = true; m_timeSeriesId = value; }
51 inline void SetTimeSeriesId(Aws::String&& value) { m_timeSeriesIdHasBeenSet = true; m_timeSeriesId = std::move(value); }
52 inline void SetTimeSeriesId(const char* value) { m_timeSeriesIdHasBeenSet = true; m_timeSeriesId.assign(value); }
53 inline TimeSeries& WithTimeSeriesId(const Aws::String& value) { SetTimeSeriesId(value); return *this;}
54 inline TimeSeries& WithTimeSeriesId(Aws::String&& value) { SetTimeSeriesId(std::move(value)); return *this;}
55 inline TimeSeries& WithTimeSeriesId(const char* value) { SetTimeSeriesId(value); return *this;}
57
59
62 inline const Aws::Vector<DimensionNameValue>& GetDimensionList() const{ return m_dimensionList; }
63 inline bool DimensionListHasBeenSet() const { return m_dimensionListHasBeenSet; }
64 inline void SetDimensionList(const Aws::Vector<DimensionNameValue>& value) { m_dimensionListHasBeenSet = true; m_dimensionList = value; }
65 inline void SetDimensionList(Aws::Vector<DimensionNameValue>&& value) { m_dimensionListHasBeenSet = true; m_dimensionList = std::move(value); }
67 inline TimeSeries& WithDimensionList(Aws::Vector<DimensionNameValue>&& value) { SetDimensionList(std::move(value)); return *this;}
68 inline TimeSeries& AddDimensionList(const DimensionNameValue& value) { m_dimensionListHasBeenSet = true; m_dimensionList.push_back(value); return *this; }
69 inline TimeSeries& AddDimensionList(DimensionNameValue&& value) { m_dimensionListHasBeenSet = true; m_dimensionList.push_back(std::move(value)); return *this; }
71
73
76 inline const Aws::Vector<double>& GetMetricValueList() const{ return m_metricValueList; }
77 inline bool MetricValueListHasBeenSet() const { return m_metricValueListHasBeenSet; }
78 inline void SetMetricValueList(const Aws::Vector<double>& value) { m_metricValueListHasBeenSet = true; m_metricValueList = value; }
79 inline void SetMetricValueList(Aws::Vector<double>&& value) { m_metricValueListHasBeenSet = true; m_metricValueList = std::move(value); }
80 inline TimeSeries& WithMetricValueList(const Aws::Vector<double>& value) { SetMetricValueList(value); return *this;}
81 inline TimeSeries& WithMetricValueList(Aws::Vector<double>&& value) { SetMetricValueList(std::move(value)); return *this;}
82 inline TimeSeries& AddMetricValueList(double value) { m_metricValueListHasBeenSet = true; m_metricValueList.push_back(value); return *this; }
84 private:
85
86 Aws::String m_timeSeriesId;
87 bool m_timeSeriesIdHasBeenSet = false;
88
89 Aws::Vector<DimensionNameValue> m_dimensionList;
90 bool m_dimensionListHasBeenSet = false;
91
92 Aws::Vector<double> m_metricValueList;
93 bool m_metricValueListHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace LookoutMetrics
98} // namespace Aws
const Aws::Vector< DimensionNameValue > & GetDimensionList() const
Definition TimeSeries.h:62
TimeSeries & WithTimeSeriesId(Aws::String &&value)
Definition TimeSeries.h:54
void SetMetricValueList(Aws::Vector< double > &&value)
Definition TimeSeries.h:79
TimeSeries & WithTimeSeriesId(const Aws::String &value)
Definition TimeSeries.h:53
void SetTimeSeriesId(Aws::String &&value)
Definition TimeSeries.h:51
AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
TimeSeries & WithMetricValueList(Aws::Vector< double > &&value)
Definition TimeSeries.h:81
AWS_LOOKOUTMETRICS_API TimeSeries()
const Aws::String & GetTimeSeriesId() const
Definition TimeSeries.h:48
TimeSeries & WithMetricValueList(const Aws::Vector< double > &value)
Definition TimeSeries.h:80
const Aws::Vector< double > & GetMetricValueList() const
Definition TimeSeries.h:76
AWS_LOOKOUTMETRICS_API TimeSeries(Aws::Utils::Json::JsonView jsonValue)
void SetDimensionList(const Aws::Vector< DimensionNameValue > &value)
Definition TimeSeries.h:64
TimeSeries & WithTimeSeriesId(const char *value)
Definition TimeSeries.h:55
TimeSeries & WithDimensionList(Aws::Vector< DimensionNameValue > &&value)
Definition TimeSeries.h:67
void SetTimeSeriesId(const Aws::String &value)
Definition TimeSeries.h:50
TimeSeries & AddMetricValueList(double value)
Definition TimeSeries.h:82
TimeSeries & AddDimensionList(DimensionNameValue &&value)
Definition TimeSeries.h:69
TimeSeries & AddDimensionList(const DimensionNameValue &value)
Definition TimeSeries.h:68
TimeSeries & WithDimensionList(const Aws::Vector< DimensionNameValue > &value)
Definition TimeSeries.h:66
void SetTimeSeriesId(const char *value)
Definition TimeSeries.h:52
AWS_LOOKOUTMETRICS_API TimeSeries & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDimensionList(Aws::Vector< DimensionNameValue > &&value)
Definition TimeSeries.h:65
void SetMetricValueList(const Aws::Vector< double > &value)
Definition TimeSeries.h:78
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue