AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AssetPropertyValue.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/model/AssetPropertyVariant.h>
9#include <aws/iot/model/AssetPropertyTimestamp.h>
10#include <aws/core/utils/memory/stl/AWSString.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 IoT
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_IOT_API AssetPropertyValue() = default;
41
42
44
47 inline const AssetPropertyVariant& GetValue() const { return m_value; }
48 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
49 template<typename ValueT = AssetPropertyVariant>
50 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
51 template<typename ValueT = AssetPropertyVariant>
52 AssetPropertyValue& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
54
56
59 inline const AssetPropertyTimestamp& GetTimestamp() const { return m_timestamp; }
60 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
61 template<typename TimestampT = AssetPropertyTimestamp>
62 void SetTimestamp(TimestampT&& value) { m_timestampHasBeenSet = true; m_timestamp = std::forward<TimestampT>(value); }
63 template<typename TimestampT = AssetPropertyTimestamp>
64 AssetPropertyValue& WithTimestamp(TimestampT&& value) { SetTimestamp(std::forward<TimestampT>(value)); return *this;}
66
68
73 inline const Aws::String& GetQuality() const { return m_quality; }
74 inline bool QualityHasBeenSet() const { return m_qualityHasBeenSet; }
75 template<typename QualityT = Aws::String>
76 void SetQuality(QualityT&& value) { m_qualityHasBeenSet = true; m_quality = std::forward<QualityT>(value); }
77 template<typename QualityT = Aws::String>
78 AssetPropertyValue& WithQuality(QualityT&& value) { SetQuality(std::forward<QualityT>(value)); return *this;}
80 private:
81
83 bool m_valueHasBeenSet = false;
84
85 AssetPropertyTimestamp m_timestamp;
86 bool m_timestampHasBeenSet = false;
87
88 Aws::String m_quality;
89 bool m_qualityHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace IoT
94} // namespace Aws
AssetPropertyValue & WithValue(ValueT &&value)
const AssetPropertyTimestamp & GetTimestamp() const
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTimestamp(TimestampT &&value)
const AssetPropertyVariant & GetValue() const
const Aws::String & GetQuality() const
AWS_IOT_API AssetPropertyValue & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API AssetPropertyValue()=default
AWS_IOT_API AssetPropertyValue(Aws::Utils::Json::JsonView jsonValue)
AssetPropertyValue & WithQuality(QualityT &&value)
AssetPropertyValue & WithTimestamp(TimestampT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue