AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PropertyValue.h
1
6#pragma once
7#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
8#include <aws/iottwinmaker/model/DataValue.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoTTwinMaker
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IOTTWINMAKER_API PropertyValue() = default;
37 AWS_IOTTWINMAKER_API PropertyValue(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IOTTWINMAKER_API PropertyValue& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const DataValue& GetValue() const { return m_value; }
47 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
48 template<typename ValueT = DataValue>
49 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
50 template<typename ValueT = DataValue>
51 PropertyValue& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
53
55
68 inline const Aws::String& GetTime() const { return m_time; }
69 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
70 template<typename TimeT = Aws::String>
71 void SetTime(TimeT&& value) { m_timeHasBeenSet = true; m_time = std::forward<TimeT>(value); }
72 template<typename TimeT = Aws::String>
73 PropertyValue& WithTime(TimeT&& value) { SetTime(std::forward<TimeT>(value)); return *this;}
75 private:
76
77 DataValue m_value;
78 bool m_valueHasBeenSet = false;
79
80 Aws::String m_time;
81 bool m_timeHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace IoTTwinMaker
86} // namespace Aws
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const DataValue & GetValue() const
AWS_IOTTWINMAKER_API PropertyValue()=default
PropertyValue & WithTime(TimeT &&value)
AWS_IOTTWINMAKER_API PropertyValue & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTime() const
PropertyValue & WithValue(ValueT &&value)
AWS_IOTTWINMAKER_API PropertyValue(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue