AWS SDK for C++  1.8.126
AWS SDK for C++
AggregatedValue.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace IoTSiteWise
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
47 
51  inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
52 
56  inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
57 
61  inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
62 
66  inline AggregatedValue& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
67 
71  inline AggregatedValue& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
72 
73 
77  inline const Quality& GetQuality() const{ return m_quality; }
78 
82  inline bool QualityHasBeenSet() const { return m_qualityHasBeenSet; }
83 
87  inline void SetQuality(const Quality& value) { m_qualityHasBeenSet = true; m_quality = value; }
88 
92  inline void SetQuality(Quality&& value) { m_qualityHasBeenSet = true; m_quality = std::move(value); }
93 
97  inline AggregatedValue& WithQuality(const Quality& value) { SetQuality(value); return *this;}
98 
102  inline AggregatedValue& WithQuality(Quality&& value) { SetQuality(std::move(value)); return *this;}
103 
104 
108  inline const Aggregates& GetValue() const{ return m_value; }
109 
113  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
114 
118  inline void SetValue(const Aggregates& value) { m_valueHasBeenSet = true; m_value = value; }
119 
123  inline void SetValue(Aggregates&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
124 
128  inline AggregatedValue& WithValue(const Aggregates& value) { SetValue(value); return *this;}
129 
133  inline AggregatedValue& WithValue(Aggregates&& value) { SetValue(std::move(value)); return *this;}
134 
135  private:
136 
137  Aws::Utils::DateTime m_timestamp;
138  bool m_timestampHasBeenSet;
139 
140  Quality m_quality;
141  bool m_qualityHasBeenSet;
142 
143  Aggregates m_value;
144  bool m_valueHasBeenSet;
145  };
146 
147 } // namespace Model
148 } // namespace IoTSiteWise
149 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::IoTSiteWise::Model::AggregatedValue::QualityHasBeenSet
bool QualityHasBeenSet() const
Definition: AggregatedValue.h:82
Aws::IoTSiteWise::Model::AggregatedValue::SetTimestamp
void SetTimestamp(const Aws::Utils::DateTime &value)
Definition: AggregatedValue.h:56
Aws::IoTSiteWise::Model::AggregatedValue::WithQuality
AggregatedValue & WithQuality(const Quality &value)
Definition: AggregatedValue.h:97
Aws::IoTSiteWise::Model::Aggregates
Definition: Aggregates.h:31
Aws::IoTSiteWise::Model::AggregatedValue::AggregatedValue
AggregatedValue(Aws::Utils::Json::JsonView jsonValue)
IoTSiteWise_EXPORTS.h
DateTime.h
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::AggregatedValue::GetQuality
const Quality & GetQuality() const
Definition: AggregatedValue.h:77
Aws::IoTSiteWise::Model::AggregatedValue::GetValue
const Aggregates & GetValue() const
Definition: AggregatedValue.h:108
Aws::IoTSiteWise::Model::AggregatedValue::WithValue
AggregatedValue & WithValue(const Aggregates &value)
Definition: AggregatedValue.h:128
Aws::IoTSiteWise::Model::AggregatedValue::GetTimestamp
const Aws::Utils::DateTime & GetTimestamp() const
Definition: AggregatedValue.h:46
Aws::IoTSiteWise::Model::AggregatedValue::SetTimestamp
void SetTimestamp(Aws::Utils::DateTime &&value)
Definition: AggregatedValue.h:61
Aws::IoTSiteWise::Model::AggregatedValue::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: AggregatedValue.h:113
Aws::IoTSiteWise::Model::AggregatedValue::SetQuality
void SetQuality(Quality &&value)
Definition: AggregatedValue.h:92
Aggregates.h
Aws::IoTSiteWise::Model::AggregatedValue::SetQuality
void SetQuality(const Quality &value)
Definition: AggregatedValue.h:87
Aws::IoTSiteWise::Model::AggregatedValue::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::IoTSiteWise::Model::AggregatedValue::AggregatedValue
AggregatedValue()
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Quality.h
Aws::IoTSiteWise::Model::AggregatedValue::SetValue
void SetValue(Aggregates &&value)
Definition: AggregatedValue.h:123
Aws::IoTSiteWise::Model::AggregatedValue::WithTimestamp
AggregatedValue & WithTimestamp(Aws::Utils::DateTime &&value)
Definition: AggregatedValue.h:71
Aws::IoTSiteWise::Model::AggregatedValue::WithTimestamp
AggregatedValue & WithTimestamp(const Aws::Utils::DateTime &value)
Definition: AggregatedValue.h:66
Aws
Definition: AccessManagementClient.h:15
Aws::IoTSiteWise::Model::AggregatedValue::WithQuality
AggregatedValue & WithQuality(Quality &&value)
Definition: AggregatedValue.h:102
Aws::IoTSiteWise::Model::AggregatedValue
Definition: AggregatedValue.h:35
Aws::IoTSiteWise::Model::AggregatedValue::TimestampHasBeenSet
bool TimestampHasBeenSet() const
Definition: AggregatedValue.h:51
Aws::IoTSiteWise::Model::Quality
Quality
Definition: Quality.h:17
Aws::IoTSiteWise::Model::AggregatedValue::SetValue
void SetValue(const Aggregates &value)
Definition: AggregatedValue.h:118
Aws::IoTSiteWise::Model::AggregatedValue::operator=
AggregatedValue & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::AggregatedValue::WithValue
AggregatedValue & WithValue(Aggregates &&value)
Definition: AggregatedValue.h:133