AWS SDK for C++

AWS SDK for C++ Version 1.11.929

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