AWS SDK for C++  1.9.132
AWS SDK for C++
AssetPropertyValue.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
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 IoT
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const AssetPropertyVariant& GetValue() const{ return m_value; }
47 
51  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
52 
56  inline void SetValue(const AssetPropertyVariant& value) { m_valueHasBeenSet = true; m_value = value; }
57 
61  inline void SetValue(AssetPropertyVariant&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
62 
66  inline AssetPropertyValue& WithValue(const AssetPropertyVariant& value) { SetValue(value); return *this;}
67 
71  inline AssetPropertyValue& WithValue(AssetPropertyVariant&& value) { SetValue(std::move(value)); return *this;}
72 
73 
77  inline const AssetPropertyTimestamp& GetTimestamp() const{ return m_timestamp; }
78 
82  inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
83 
87  inline void SetTimestamp(const AssetPropertyTimestamp& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
88 
92  inline void SetTimestamp(AssetPropertyTimestamp&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
93 
97  inline AssetPropertyValue& WithTimestamp(const AssetPropertyTimestamp& value) { SetTimestamp(value); return *this;}
98 
102  inline AssetPropertyValue& WithTimestamp(AssetPropertyTimestamp&& value) { SetTimestamp(std::move(value)); return *this;}
103 
104 
110  inline const Aws::String& GetQuality() const{ return m_quality; }
111 
117  inline bool QualityHasBeenSet() const { return m_qualityHasBeenSet; }
118 
124  inline void SetQuality(const Aws::String& value) { m_qualityHasBeenSet = true; m_quality = value; }
125 
131  inline void SetQuality(Aws::String&& value) { m_qualityHasBeenSet = true; m_quality = std::move(value); }
132 
138  inline void SetQuality(const char* value) { m_qualityHasBeenSet = true; m_quality.assign(value); }
139 
145  inline AssetPropertyValue& WithQuality(const Aws::String& value) { SetQuality(value); return *this;}
146 
152  inline AssetPropertyValue& WithQuality(Aws::String&& value) { SetQuality(std::move(value)); return *this;}
153 
159  inline AssetPropertyValue& WithQuality(const char* value) { SetQuality(value); return *this;}
160 
161  private:
162 
163  AssetPropertyVariant m_value;
164  bool m_valueHasBeenSet;
165 
166  AssetPropertyTimestamp m_timestamp;
167  bool m_timestampHasBeenSet;
168 
169  Aws::String m_quality;
170  bool m_qualityHasBeenSet;
171  };
172 
173 } // namespace Model
174 } // namespace IoT
175 } // namespace Aws
Aws::IoT::Model::AssetPropertyVariant
Definition: AssetPropertyVariant.h:33
Aws::IoT::Model::AssetPropertyTimestamp
Definition: AssetPropertyTimestamp.h:33
Aws::IoT::Model::AssetPropertyValue::AssetPropertyValue
AssetPropertyValue(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::AssetPropertyValue::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: AssetPropertyValue.h:51
Aws::IoT::Model::AssetPropertyValue::WithTimestamp
AssetPropertyValue & WithTimestamp(const AssetPropertyTimestamp &value)
Definition: AssetPropertyValue.h:97
Aws::IoT::Model::AssetPropertyValue::SetQuality
void SetQuality(const Aws::String &value)
Definition: AssetPropertyValue.h:124
Aws::IoT::Model::AssetPropertyValue::TimestampHasBeenSet
bool TimestampHasBeenSet() const
Definition: AssetPropertyValue.h:82
Aws::IoT::Model::AssetPropertyValue::WithQuality
AssetPropertyValue & WithQuality(const char *value)
Definition: AssetPropertyValue.h:159
Aws::IoT::Model::AssetPropertyValue::SetTimestamp
void SetTimestamp(AssetPropertyTimestamp &&value)
Definition: AssetPropertyValue.h:92
Aws::IoT::Model::AssetPropertyValue::SetQuality
void SetQuality(const char *value)
Definition: AssetPropertyValue.h:138
Aws::IoT::Model::AssetPropertyValue::AssetPropertyValue
AssetPropertyValue()
Aws::IoT::Model::AssetPropertyValue::GetQuality
const Aws::String & GetQuality() const
Definition: AssetPropertyValue.h:110
Aws::IoT::Model::AssetPropertyValue::QualityHasBeenSet
bool QualityHasBeenSet() const
Definition: AssetPropertyValue.h:117
Aws::IoT::Model::AssetPropertyValue::WithTimestamp
AssetPropertyValue & WithTimestamp(AssetPropertyTimestamp &&value)
Definition: AssetPropertyValue.h:102
Aws::IoT::Model::AssetPropertyValue::GetValue
const AssetPropertyVariant & GetValue() const
Definition: AssetPropertyValue.h:46
Aws::IoT::Model::AssetPropertyValue::SetTimestamp
void SetTimestamp(const AssetPropertyTimestamp &value)
Definition: AssetPropertyValue.h:87
Aws::IoT::Model::AssetPropertyValue::operator=
AssetPropertyValue & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::AssetPropertyValue::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::AssetPropertyValue::WithValue
AssetPropertyValue & WithValue(AssetPropertyVariant &&value)
Definition: AssetPropertyValue.h:71
Aws::IoT::Model::AssetPropertyValue::WithQuality
AssetPropertyValue & WithQuality(const Aws::String &value)
Definition: AssetPropertyValue.h:145
Aws::IoT::Model::AssetPropertyValue::SetValue
void SetValue(const AssetPropertyVariant &value)
Definition: AssetPropertyValue.h:56
Aws::IoT::Model::AssetPropertyValue::SetValue
void SetValue(AssetPropertyVariant &&value)
Definition: AssetPropertyValue.h:61
AssetPropertyVariant.h
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::AssetPropertyValue::GetTimestamp
const AssetPropertyTimestamp & GetTimestamp() const
Definition: AssetPropertyValue.h:77
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::AssetPropertyValue::WithValue
AssetPropertyValue & WithValue(const AssetPropertyVariant &value)
Definition: AssetPropertyValue.h:66
Aws::IoT::Model::AssetPropertyValue
Definition: AssetPropertyValue.h:35
Aws::IoT::Model::AssetPropertyValue::WithQuality
AssetPropertyValue & WithQuality(Aws::String &&value)
Definition: AssetPropertyValue.h:152
Aws::IoT::Model::AssetPropertyValue::SetQuality
void SetQuality(Aws::String &&value)
Definition: AssetPropertyValue.h:131
AssetPropertyTimestamp.h
IoT_EXPORTS.h