AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
PutAssetPropertyValueEntry.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iot/IoT_EXPORTS.h>
10#include <aws/iot/model/AssetPropertyValue.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoT {
22namespace Model {
23
31 public:
32 AWS_IOT_API PutAssetPropertyValueEntry() = default;
36
38
43 inline const Aws::String& GetEntryId() const { return m_entryId; }
44 inline bool EntryIdHasBeenSet() const { return m_entryIdHasBeenSet; }
45 template <typename EntryIdT = Aws::String>
46 void SetEntryId(EntryIdT&& value) {
47 m_entryIdHasBeenSet = true;
48 m_entryId = std::forward<EntryIdT>(value);
49 }
50 template <typename EntryIdT = Aws::String>
52 SetEntryId(std::forward<EntryIdT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::String& GetAssetId() const { return m_assetId; }
64 inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; }
65 template <typename AssetIdT = Aws::String>
66 void SetAssetId(AssetIdT&& value) {
67 m_assetIdHasBeenSet = true;
68 m_assetId = std::forward<AssetIdT>(value);
69 }
70 template <typename AssetIdT = Aws::String>
72 SetAssetId(std::forward<AssetIdT>(value));
73 return *this;
74 }
76
78
83 inline const Aws::String& GetPropertyId() const { return m_propertyId; }
84 inline bool PropertyIdHasBeenSet() const { return m_propertyIdHasBeenSet; }
85 template <typename PropertyIdT = Aws::String>
86 void SetPropertyId(PropertyIdT&& value) {
87 m_propertyIdHasBeenSet = true;
88 m_propertyId = std::forward<PropertyIdT>(value);
89 }
90 template <typename PropertyIdT = Aws::String>
92 SetPropertyId(std::forward<PropertyIdT>(value));
93 return *this;
94 }
96
98
103 inline const Aws::String& GetPropertyAlias() const { return m_propertyAlias; }
104 inline bool PropertyAliasHasBeenSet() const { return m_propertyAliasHasBeenSet; }
105 template <typename PropertyAliasT = Aws::String>
106 void SetPropertyAlias(PropertyAliasT&& value) {
107 m_propertyAliasHasBeenSet = true;
108 m_propertyAlias = std::forward<PropertyAliasT>(value);
109 }
110 template <typename PropertyAliasT = Aws::String>
112 SetPropertyAlias(std::forward<PropertyAliasT>(value));
113 return *this;
114 }
116
118
122 inline const Aws::Vector<AssetPropertyValue>& GetPropertyValues() const { return m_propertyValues; }
123 inline bool PropertyValuesHasBeenSet() const { return m_propertyValuesHasBeenSet; }
124 template <typename PropertyValuesT = Aws::Vector<AssetPropertyValue>>
125 void SetPropertyValues(PropertyValuesT&& value) {
126 m_propertyValuesHasBeenSet = true;
127 m_propertyValues = std::forward<PropertyValuesT>(value);
128 }
129 template <typename PropertyValuesT = Aws::Vector<AssetPropertyValue>>
131 SetPropertyValues(std::forward<PropertyValuesT>(value));
132 return *this;
133 }
134 template <typename PropertyValuesT = AssetPropertyValue>
136 m_propertyValuesHasBeenSet = true;
137 m_propertyValues.emplace_back(std::forward<PropertyValuesT>(value));
138 return *this;
139 }
141 private:
142 Aws::String m_entryId;
143
144 Aws::String m_assetId;
145
146 Aws::String m_propertyId;
147
148 Aws::String m_propertyAlias;
149
150 Aws::Vector<AssetPropertyValue> m_propertyValues;
151 bool m_entryIdHasBeenSet = false;
152 bool m_assetIdHasBeenSet = false;
153 bool m_propertyIdHasBeenSet = false;
154 bool m_propertyAliasHasBeenSet = false;
155 bool m_propertyValuesHasBeenSet = false;
156};
157
158} // namespace Model
159} // namespace IoT
160} // namespace Aws
PutAssetPropertyValueEntry & AddPropertyValues(PropertyValuesT &&value)
bool EntryIdHasBeenSet() const
void SetPropertyId(PropertyIdT &&value)
const Aws::String & GetPropertyAlias() const
const Aws::String & GetAssetId() const
PutAssetPropertyValueEntry & WithEntryId(EntryIdT &&value)
PutAssetPropertyValueEntry & WithPropertyId(PropertyIdT &&value)
AWS_IOT_API PutAssetPropertyValueEntry()=default
void SetEntryId(EntryIdT &&value)
const Aws::String & GetPropertyId() const
const Aws::Vector< AssetPropertyValue > & GetPropertyValues() const
void SetAssetId(AssetIdT &&value)
AWS_IOT_API PutAssetPropertyValueEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
bool PropertyIdHasBeenSet() const
PutAssetPropertyValueEntry & WithPropertyValues(PropertyValuesT &&value)
PutAssetPropertyValueEntry & WithAssetId(AssetIdT &&value)
const Aws::String & GetEntryId() const
void SetPropertyAlias(PropertyAliasT &&value)
PutAssetPropertyValueEntry & WithPropertyAlias(PropertyAliasT &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
bool PropertyValuesHasBeenSet() const
void SetPropertyValues(PropertyValuesT &&value)
bool PropertyAliasHasBeenSet() const
AWS_IOT_API PutAssetPropertyValueEntry(Aws::Utils::Json::JsonView jsonValue)
bool AssetIdHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue