AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PropertyValueHistory.h
1
6#pragma once
7#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
8#include <aws/iottwinmaker/model/EntityPropertyReference.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/iottwinmaker/model/PropertyValue.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace IoTTwinMaker
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_IOTTWINMAKER_API PropertyValueHistory() = default;
38 AWS_IOTTWINMAKER_API PropertyValueHistory(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const EntityPropertyReference& GetEntityPropertyReference() const { return m_entityPropertyReference; }
48 inline bool EntityPropertyReferenceHasBeenSet() const { return m_entityPropertyReferenceHasBeenSet; }
49 template<typename EntityPropertyReferenceT = EntityPropertyReference>
50 void SetEntityPropertyReference(EntityPropertyReferenceT&& value) { m_entityPropertyReferenceHasBeenSet = true; m_entityPropertyReference = std::forward<EntityPropertyReferenceT>(value); }
51 template<typename EntityPropertyReferenceT = EntityPropertyReference>
52 PropertyValueHistory& WithEntityPropertyReference(EntityPropertyReferenceT&& value) { SetEntityPropertyReference(std::forward<EntityPropertyReferenceT>(value)); return *this;}
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) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
64 template<typename ValuesT = Aws::Vector<PropertyValue>>
65 PropertyValueHistory& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
66 template<typename ValuesT = PropertyValue>
67 PropertyValueHistory& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
69 private:
70
71 EntityPropertyReference m_entityPropertyReference;
72 bool m_entityPropertyReferenceHasBeenSet = false;
73
75 bool m_valuesHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace IoTTwinMaker
80} // 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