AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PropertyValueEntry.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
37 {
38 public:
39 AWS_IOTTWINMAKER_API PropertyValueEntry() = default;
40 AWS_IOTTWINMAKER_API PropertyValueEntry(Aws::Utils::Json::JsonView jsonValue);
42 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const EntityPropertyReference& GetEntityPropertyReference() const { return m_entityPropertyReference; }
51 inline bool EntityPropertyReferenceHasBeenSet() const { return m_entityPropertyReferenceHasBeenSet; }
52 template<typename EntityPropertyReferenceT = EntityPropertyReference>
53 void SetEntityPropertyReference(EntityPropertyReferenceT&& value) { m_entityPropertyReferenceHasBeenSet = true; m_entityPropertyReference = std::forward<EntityPropertyReferenceT>(value); }
54 template<typename EntityPropertyReferenceT = EntityPropertyReference>
55 PropertyValueEntry& WithEntityPropertyReference(EntityPropertyReferenceT&& value) { SetEntityPropertyReference(std::forward<EntityPropertyReferenceT>(value)); return *this;}
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) { m_propertyValuesHasBeenSet = true; m_propertyValues = std::forward<PropertyValuesT>(value); }
66 template<typename PropertyValuesT = Aws::Vector<PropertyValue>>
67 PropertyValueEntry& WithPropertyValues(PropertyValuesT&& value) { SetPropertyValues(std::forward<PropertyValuesT>(value)); return *this;}
68 template<typename PropertyValuesT = PropertyValue>
69 PropertyValueEntry& AddPropertyValues(PropertyValuesT&& value) { m_propertyValuesHasBeenSet = true; m_propertyValues.emplace_back(std::forward<PropertyValuesT>(value)); return *this; }
71 private:
72
73 EntityPropertyReference m_entityPropertyReference;
74 bool m_entityPropertyReferenceHasBeenSet = false;
75
76 Aws::Vector<PropertyValue> m_propertyValues;
77 bool m_propertyValuesHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace IoTTwinMaker
82} // 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