AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PropertyLatestValue.h
1
6#pragma once
7#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
8#include <aws/iottwinmaker/model/EntityPropertyReference.h>
9#include <aws/iottwinmaker/model/DataValue.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
33 {
34 public:
35 AWS_IOTTWINMAKER_API PropertyLatestValue() = default;
36 AWS_IOTTWINMAKER_API PropertyLatestValue(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const EntityPropertyReference& GetPropertyReference() const { return m_propertyReference; }
46 inline bool PropertyReferenceHasBeenSet() const { return m_propertyReferenceHasBeenSet; }
47 template<typename PropertyReferenceT = EntityPropertyReference>
48 void SetPropertyReference(PropertyReferenceT&& value) { m_propertyReferenceHasBeenSet = true; m_propertyReference = std::forward<PropertyReferenceT>(value); }
49 template<typename PropertyReferenceT = EntityPropertyReference>
50 PropertyLatestValue& WithPropertyReference(PropertyReferenceT&& value) { SetPropertyReference(std::forward<PropertyReferenceT>(value)); return *this;}
52
54
57 inline const DataValue& GetPropertyValue() const { return m_propertyValue; }
58 inline bool PropertyValueHasBeenSet() const { return m_propertyValueHasBeenSet; }
59 template<typename PropertyValueT = DataValue>
60 void SetPropertyValue(PropertyValueT&& value) { m_propertyValueHasBeenSet = true; m_propertyValue = std::forward<PropertyValueT>(value); }
61 template<typename PropertyValueT = DataValue>
62 PropertyLatestValue& WithPropertyValue(PropertyValueT&& value) { SetPropertyValue(std::forward<PropertyValueT>(value)); return *this;}
64 private:
65
66 EntityPropertyReference m_propertyReference;
67 bool m_propertyReferenceHasBeenSet = false;
68
69 DataValue m_propertyValue;
70 bool m_propertyValueHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace IoTTwinMaker
75} // namespace Aws
const EntityPropertyReference & GetPropertyReference() const
void SetPropertyReference(PropertyReferenceT &&value)
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTTWINMAKER_API PropertyLatestValue & operator=(Aws::Utils::Json::JsonView jsonValue)
PropertyLatestValue & WithPropertyReference(PropertyReferenceT &&value)
PropertyLatestValue & WithPropertyValue(PropertyValueT &&value)
AWS_IOTTWINMAKER_API PropertyLatestValue(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTTWINMAKER_API PropertyLatestValue()=default
Aws::Utils::Json::JsonValue JsonValue