AWS SDK for C++  1.9.153
AWS SDK for C++
AssetPropertyValue.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 
34  {
35  public:
40 
41 
45  inline const Variant& GetValue() const{ return m_value; }
46 
50  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
51 
55  inline void SetValue(const Variant& value) { m_valueHasBeenSet = true; m_value = value; }
56 
60  inline void SetValue(Variant&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
61 
65  inline AssetPropertyValue& WithValue(const Variant& value) { SetValue(value); return *this;}
66 
70  inline AssetPropertyValue& WithValue(Variant&& value) { SetValue(std::move(value)); return *this;}
71 
72 
76  inline const TimeInNanos& GetTimestamp() const{ return m_timestamp; }
77 
81  inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
82 
86  inline void SetTimestamp(const TimeInNanos& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
87 
91  inline void SetTimestamp(TimeInNanos&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
92 
96  inline AssetPropertyValue& WithTimestamp(const TimeInNanos& value) { SetTimestamp(value); return *this;}
97 
101  inline AssetPropertyValue& WithTimestamp(TimeInNanos&& value) { SetTimestamp(std::move(value)); return *this;}
102 
103 
107  inline const Quality& GetQuality() const{ return m_quality; }
108 
112  inline bool QualityHasBeenSet() const { return m_qualityHasBeenSet; }
113 
117  inline void SetQuality(const Quality& value) { m_qualityHasBeenSet = true; m_quality = value; }
118 
122  inline void SetQuality(Quality&& value) { m_qualityHasBeenSet = true; m_quality = std::move(value); }
123 
127  inline AssetPropertyValue& WithQuality(const Quality& value) { SetQuality(value); return *this;}
128 
132  inline AssetPropertyValue& WithQuality(Quality&& value) { SetQuality(std::move(value)); return *this;}
133 
134  private:
135 
136  Variant m_value;
137  bool m_valueHasBeenSet;
138 
139  TimeInNanos m_timestamp;
140  bool m_timestampHasBeenSet;
141 
142  Quality m_quality;
143  bool m_qualityHasBeenSet;
144  };
145 
146 } // namespace Model
147 } // namespace IoTSiteWise
148 } // namespace Aws
Aws::IoTSiteWise::Model::AssetPropertyValue::SetTimestamp
void SetTimestamp(TimeInNanos &&value)
Definition: AssetPropertyValue.h:91
Aws::IoTSiteWise::Model::AssetPropertyValue::GetQuality
const Quality & GetQuality() const
Definition: AssetPropertyValue.h:107
Aws::IoTSiteWise::Model::AssetPropertyValue::WithValue
AssetPropertyValue & WithValue(Variant &&value)
Definition: AssetPropertyValue.h:70
Aws::IoTSiteWise::Model::AssetPropertyValue::AssetPropertyValue
AssetPropertyValue()
Aws::IoTSiteWise::Model::AssetPropertyValue::SetValue
void SetValue(Variant &&value)
Definition: AssetPropertyValue.h:60
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::AssetPropertyValue::SetQuality
void SetQuality(const Quality &value)
Definition: AssetPropertyValue.h:117
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::TimeInNanos
Definition: TimeInNanos.h:31
Aws::IoTSiteWise::Model::AssetPropertyValue::WithValue
AssetPropertyValue & WithValue(const Variant &value)
Definition: AssetPropertyValue.h:65
Aws::IoTSiteWise::Model::AssetPropertyValue::SetQuality
void SetQuality(Quality &&value)
Definition: AssetPropertyValue.h:122
Aws::IoTSiteWise::Model::AssetPropertyValue::GetTimestamp
const TimeInNanos & GetTimestamp() const
Definition: AssetPropertyValue.h:76
Aws::IoTSiteWise::Model::AssetPropertyValue::AssetPropertyValue
AssetPropertyValue(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::AssetPropertyValue::WithTimestamp
AssetPropertyValue & WithTimestamp(const TimeInNanos &value)
Definition: AssetPropertyValue.h:96
Aws::IoTSiteWise::Model::AssetPropertyValue
Definition: AssetPropertyValue.h:34
Aws::IoTSiteWise::Model::AssetPropertyValue::WithTimestamp
AssetPropertyValue & WithTimestamp(TimeInNanos &&value)
Definition: AssetPropertyValue.h:101
Aws::IoTSiteWise::Model::AssetPropertyValue::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: AssetPropertyValue.h:50
Aws::IoTSiteWise::Model::AssetPropertyValue::TimestampHasBeenSet
bool TimestampHasBeenSet() const
Definition: AssetPropertyValue.h:81
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Quality.h
Aws::IoTSiteWise::Model::Variant
Definition: Variant.h:33
Variant.h
Aws::IoTSiteWise::Model::AssetPropertyValue::operator=
AssetPropertyValue & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::AssetPropertyValue::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoTSiteWise::Model::AssetPropertyValue::SetValue
void SetValue(const Variant &value)
Definition: AssetPropertyValue.h:55
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::IoTSiteWise::Model::AssetPropertyValue::GetValue
const Variant & GetValue() const
Definition: AssetPropertyValue.h:45
Aws::IoTSiteWise::Model::Quality
Quality
Definition: Quality.h:17
Aws::IoTSiteWise::Model::AssetPropertyValue::WithQuality
AssetPropertyValue & WithQuality(const Quality &value)
Definition: AssetPropertyValue.h:127
Aws::IoTSiteWise::Model::AssetPropertyValue::SetTimestamp
void SetTimestamp(const TimeInNanos &value)
Definition: AssetPropertyValue.h:86
Aws::IoTSiteWise::Model::AssetPropertyValue::QualityHasBeenSet
bool QualityHasBeenSet() const
Definition: AssetPropertyValue.h:112
Aws::IoTSiteWise::Model::AssetPropertyValue::WithQuality
AssetPropertyValue & WithQuality(Quality &&value)
Definition: AssetPropertyValue.h:132
TimeInNanos.h