AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
PropertyValueHistory.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
9#include <aws/iottwinmaker/model/EntityPropertyReference.h>
10#include <aws/iottwinmaker/model/PropertyValue.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoTTwinMaker {
22namespace Model {
23
31 public:
32 AWS_IOTTWINMAKER_API PropertyValueHistory() = default;
33 AWS_IOTTWINMAKER_API PropertyValueHistory(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const EntityPropertyReference& GetEntityPropertyReference() const { return m_entityPropertyReference; }
42 inline bool EntityPropertyReferenceHasBeenSet() const { return m_entityPropertyReferenceHasBeenSet; }
43 template <typename EntityPropertyReferenceT = EntityPropertyReference>
44 void SetEntityPropertyReference(EntityPropertyReferenceT&& value) {
45 m_entityPropertyReferenceHasBeenSet = true;
46 m_entityPropertyReference = std::forward<EntityPropertyReferenceT>(value);
47 }
48 template <typename EntityPropertyReferenceT = EntityPropertyReference>
49 PropertyValueHistory& WithEntityPropertyReference(EntityPropertyReferenceT&& value) {
50 SetEntityPropertyReference(std::forward<EntityPropertyReferenceT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Vector<PropertyValue>& GetValues() const { return m_values; }
61 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
62 template <typename ValuesT = Aws::Vector<PropertyValue>>
63 void SetValues(ValuesT&& value) {
64 m_valuesHasBeenSet = true;
65 m_values = std::forward<ValuesT>(value);
66 }
67 template <typename ValuesT = Aws::Vector<PropertyValue>>
68 PropertyValueHistory& WithValues(ValuesT&& value) {
69 SetValues(std::forward<ValuesT>(value));
70 return *this;
71 }
72 template <typename ValuesT = PropertyValue>
73 PropertyValueHistory& AddValues(ValuesT&& value) {
74 m_valuesHasBeenSet = true;
75 m_values.emplace_back(std::forward<ValuesT>(value));
76 return *this;
77 }
79 private:
80 EntityPropertyReference m_entityPropertyReference;
81
83 bool m_entityPropertyReferenceHasBeenSet = false;
84 bool m_valuesHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace IoTTwinMaker
89} // namespace Aws
PropertyValueHistory & WithValues(ValuesT &&value)
void SetEntityPropertyReference(EntityPropertyReferenceT &&value)
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
PropertyValueHistory & AddValues(ValuesT &&value)
PropertyValueHistory & WithEntityPropertyReference(EntityPropertyReferenceT &&value)
AWS_IOTTWINMAKER_API PropertyValueHistory()=default
AWS_IOTTWINMAKER_API PropertyValueHistory(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< PropertyValue > & GetValues() const
AWS_IOTTWINMAKER_API PropertyValueHistory & operator=(Aws::Utils::Json::JsonView jsonValue)
const EntityPropertyReference & GetEntityPropertyReference() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue