AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
PropertyValueEntry.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
33 public:
34 AWS_IOTTWINMAKER_API PropertyValueEntry() = default;
35 AWS_IOTTWINMAKER_API PropertyValueEntry(Aws::Utils::Json::JsonView jsonValue);
37 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const EntityPropertyReference& GetEntityPropertyReference() const { return m_entityPropertyReference; }
45 inline bool EntityPropertyReferenceHasBeenSet() const { return m_entityPropertyReferenceHasBeenSet; }
46 template <typename EntityPropertyReferenceT = EntityPropertyReference>
47 void SetEntityPropertyReference(EntityPropertyReferenceT&& value) {
48 m_entityPropertyReferenceHasBeenSet = true;
49 m_entityPropertyReference = std::forward<EntityPropertyReferenceT>(value);
50 }
51 template <typename EntityPropertyReferenceT = EntityPropertyReference>
52 PropertyValueEntry& WithEntityPropertyReference(EntityPropertyReferenceT&& value) {
53 SetEntityPropertyReference(std::forward<EntityPropertyReferenceT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::Vector<PropertyValue>& GetPropertyValues() const { return m_propertyValues; }
63 inline bool PropertyValuesHasBeenSet() const { return m_propertyValuesHasBeenSet; }
64 template <typename PropertyValuesT = Aws::Vector<PropertyValue>>
65 void SetPropertyValues(PropertyValuesT&& value) {
66 m_propertyValuesHasBeenSet = true;
67 m_propertyValues = std::forward<PropertyValuesT>(value);
68 }
69 template <typename PropertyValuesT = Aws::Vector<PropertyValue>>
70 PropertyValueEntry& WithPropertyValues(PropertyValuesT&& value) {
71 SetPropertyValues(std::forward<PropertyValuesT>(value));
72 return *this;
73 }
74 template <typename PropertyValuesT = PropertyValue>
75 PropertyValueEntry& AddPropertyValues(PropertyValuesT&& value) {
76 m_propertyValuesHasBeenSet = true;
77 m_propertyValues.emplace_back(std::forward<PropertyValuesT>(value));
78 return *this;
79 }
81 private:
82 EntityPropertyReference m_entityPropertyReference;
83
84 Aws::Vector<PropertyValue> m_propertyValues;
85 bool m_entityPropertyReferenceHasBeenSet = false;
86 bool m_propertyValuesHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace IoTTwinMaker
91} // namespace Aws
bool PropertyValuesHasBeenSet() const
AWS_IOTTWINMAKER_API PropertyValueEntry(Aws::Utils::Json::JsonView jsonValue)
bool EntityPropertyReferenceHasBeenSet() const
PropertyValueEntry & WithEntityPropertyReference(EntityPropertyReferenceT &&value)
PropertyValueEntry & WithPropertyValues(PropertyValuesT &&value)
const EntityPropertyReference & GetEntityPropertyReference() const
AWS_IOTTWINMAKER_API PropertyValueEntry()=default
const Aws::Vector< PropertyValue > & GetPropertyValues() const
void SetPropertyValues(PropertyValuesT &&value)
void SetEntityPropertyReference(EntityPropertyReferenceT &&value)
AWS_IOTTWINMAKER_API PropertyValueEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
PropertyValueEntry & AddPropertyValues(PropertyValuesT &&value)
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue