AWS SDK for C++  1.9.109
AWS SDK for C++
TimeSeriesDataPoint.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 #include <memory>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace TimestreamQuery
23 {
24 namespace Model
25 {
26  class Datum;
27 
38  {
39  public:
44 
45 
49  inline const Aws::String& GetTime() const{ return m_time; }
50 
54  inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
55 
59  inline void SetTime(const Aws::String& value) { m_timeHasBeenSet = true; m_time = value; }
60 
64  inline void SetTime(Aws::String&& value) { m_timeHasBeenSet = true; m_time = std::move(value); }
65 
69  inline void SetTime(const char* value) { m_timeHasBeenSet = true; m_time.assign(value); }
70 
74  inline TimeSeriesDataPoint& WithTime(const Aws::String& value) { SetTime(value); return *this;}
75 
79  inline TimeSeriesDataPoint& WithTime(Aws::String&& value) { SetTime(std::move(value)); return *this;}
80 
84  inline TimeSeriesDataPoint& WithTime(const char* value) { SetTime(value); return *this;}
85 
86 
90  const Datum& GetValue() const;
91 
95  bool ValueHasBeenSet() const;
96 
100  void SetValue(const Datum& value);
101 
105  void SetValue(Datum&& value);
106 
111 
116 
117  private:
118 
119  Aws::String m_time;
120  bool m_timeHasBeenSet;
121 
122  std::shared_ptr<Datum> m_value;
123  bool m_valueHasBeenSet;
124  };
125 
126 } // namespace Model
127 } // namespace TimestreamQuery
128 } // namespace Aws
Aws::TimestreamQuery::Model::TimeSeriesDataPoint::GetTime
const Aws::String & GetTime() const
Definition: TimeSeriesDataPoint.h:49
Aws::TimestreamQuery::Model::Datum
Definition: Datum.h:38
AWS_TIMESTREAMQUERY_API
#define AWS_TIMESTREAMQUERY_API
Definition: TimestreamQuery_EXPORTS.h:28
Aws::TimestreamQuery::Model::TimeSeriesDataPoint::WithTime
TimeSeriesDataPoint & WithTime(const char *value)
Definition: TimeSeriesDataPoint.h:84
Aws::TimestreamQuery::Model::TimeSeriesDataPoint::WithValue
TimeSeriesDataPoint & WithValue(const Datum &value)
Aws::TimestreamQuery::Model::TimeSeriesDataPoint::TimeHasBeenSet
bool TimeHasBeenSet() const
Definition: TimeSeriesDataPoint.h:54
Aws::TimestreamQuery::Model::TimeSeriesDataPoint::SetValue
void SetValue(Datum &&value)
Aws::TimestreamQuery::Model::TimeSeriesDataPoint::SetValue
void SetValue(const Datum &value)
Aws::TimestreamQuery::Model::TimeSeriesDataPoint
Definition: TimeSeriesDataPoint.h:38
TimestreamQuery_EXPORTS.h
Aws::TimestreamQuery::Model::TimeSeriesDataPoint::GetValue
const Datum & GetValue() const
Aws::TimestreamQuery::Model::TimeSeriesDataPoint::SetTime
void SetTime(Aws::String &&value)
Definition: TimeSeriesDataPoint.h:64
Aws::TimestreamQuery::Model::TimeSeriesDataPoint::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::TimestreamQuery::Model::TimeSeriesDataPoint::SetTime
void SetTime(const char *value)
Definition: TimeSeriesDataPoint.h:69
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::TimestreamQuery::Model::TimeSeriesDataPoint::WithTime
TimeSeriesDataPoint & WithTime(const Aws::String &value)
Definition: TimeSeriesDataPoint.h:74
Aws::TimestreamQuery::Model::TimeSeriesDataPoint::TimeSeriesDataPoint
TimeSeriesDataPoint()
Aws::TimestreamQuery::Model::TimeSeriesDataPoint::ValueHasBeenSet
bool ValueHasBeenSet() const
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::TimestreamQuery::Model::TimeSeriesDataPoint::WithTime
TimeSeriesDataPoint & WithTime(Aws::String &&value)
Definition: TimeSeriesDataPoint.h:79
Aws::TimestreamQuery::Model::TimeSeriesDataPoint::WithValue
TimeSeriesDataPoint & WithValue(Datum &&value)
Aws::TimestreamQuery::Model::TimeSeriesDataPoint::operator=
TimeSeriesDataPoint & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::TimestreamQuery::Model::TimeSeriesDataPoint::SetTime
void SetTime(const Aws::String &value)
Definition: TimeSeriesDataPoint.h:59
Aws::TimestreamQuery::Model::TimeSeriesDataPoint::TimeSeriesDataPoint
TimeSeriesDataPoint(Aws::Utils::Json::JsonView jsonValue)