AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetValue(const DataValue& value) { m_valueHasBeenSet = true; m_value = value; }
49 inline void SetValue(DataValue&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
50 inline PropertyValue& WithValue(const DataValue& value) { SetValue(value); return *this;}
51 inline PropertyValue& WithValue(DataValue&& value) { SetValue(std::move(value)); return *this;}
53
55
68 inline const Aws::String& GetTime() const{ return m_time; }
69 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
70 inline void SetTime(const Aws::String& value) { m_timeHasBeenSet = true; m_time = value; }
71 inline void SetTime(Aws::String&& value) { m_timeHasBeenSet = true; m_time = std::move(value); }
72 inline void SetTime(const char* value) { m_timeHasBeenSet = true; m_time.assign(value); }
73 inline PropertyValue& WithTime(const Aws::String& value) { SetTime(value); return *this;}
74 inline PropertyValue& WithTime(Aws::String&& value) { SetTime(std::move(value)); return *this;}
75 inline PropertyValue& WithTime(const char* value) { SetTime(value); return *this;}
77 private:
78
79 DataValue m_value;
80 bool m_valueHasBeenSet = false;
81
82 Aws::String m_time;
83 bool m_timeHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace IoTTwinMaker
88} // namespace Aws
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const DataValue & GetValue() const
PropertyValue & WithValue(DataValue &&value)
PropertyValue & WithTime(Aws::String &&value)
PropertyValue & WithTime(const Aws::String &value)
void SetValue(const DataValue &value)
void SetTime(Aws::String &&value)
void SetTime(const Aws::String &value)
AWS_IOTTWINMAKER_API PropertyValue & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTime() const
AWS_IOTTWINMAKER_API PropertyValue()
PropertyValue & WithTime(const char *value)
PropertyValue & WithValue(const DataValue &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