AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
PropertyValue.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
9#include <aws/iottwinmaker/model/DataValue.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoTTwinMaker {
21namespace Model {
22
30 public:
31 AWS_IOTTWINMAKER_API PropertyValue() = default;
32 AWS_IOTTWINMAKER_API PropertyValue(Aws::Utils::Json::JsonView jsonValue);
33 AWS_IOTTWINMAKER_API PropertyValue& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const DataValue& GetValue() const { return m_value; }
41 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
42 template <typename ValueT = DataValue>
43 void SetValue(ValueT&& value) {
44 m_valueHasBeenSet = true;
45 m_value = std::forward<ValueT>(value);
46 }
47 template <typename ValueT = DataValue>
48 PropertyValue& WithValue(ValueT&& value) {
49 SetValue(std::forward<ValueT>(value));
50 return *this;
51 }
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) {
72 m_timeHasBeenSet = true;
73 m_time = std::forward<TimeT>(value);
74 }
75 template <typename TimeT = Aws::String>
76 PropertyValue& WithTime(TimeT&& value) {
77 SetTime(std::forward<TimeT>(value));
78 return *this;
79 }
81 private:
82 DataValue m_value;
83
84 Aws::String m_time;
85 bool m_valueHasBeenSet = false;
86 bool m_timeHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace IoTTwinMaker
91} // 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