AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PutAssetPropertyValueEntry.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/iot/model/AssetPropertyValue.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 IoT
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_IOT_API PutAssetPropertyValueEntry() = default;
41
42
44
49 inline const Aws::String& GetEntryId() const { return m_entryId; }
50 inline bool EntryIdHasBeenSet() const { return m_entryIdHasBeenSet; }
51 template<typename EntryIdT = Aws::String>
52 void SetEntryId(EntryIdT&& value) { m_entryIdHasBeenSet = true; m_entryId = std::forward<EntryIdT>(value); }
53 template<typename EntryIdT = Aws::String>
54 PutAssetPropertyValueEntry& WithEntryId(EntryIdT&& value) { SetEntryId(std::forward<EntryIdT>(value)); return *this;}
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) { m_assetIdHasBeenSet = true; m_assetId = std::forward<AssetIdT>(value); }
67 template<typename AssetIdT = Aws::String>
68 PutAssetPropertyValueEntry& WithAssetId(AssetIdT&& value) { SetAssetId(std::forward<AssetIdT>(value)); return *this;}
70
72
77 inline const Aws::String& GetPropertyId() const { return m_propertyId; }
78 inline bool PropertyIdHasBeenSet() const { return m_propertyIdHasBeenSet; }
79 template<typename PropertyIdT = Aws::String>
80 void SetPropertyId(PropertyIdT&& value) { m_propertyIdHasBeenSet = true; m_propertyId = std::forward<PropertyIdT>(value); }
81 template<typename PropertyIdT = Aws::String>
82 PutAssetPropertyValueEntry& WithPropertyId(PropertyIdT&& value) { SetPropertyId(std::forward<PropertyIdT>(value)); return *this;}
84
86
91 inline const Aws::String& GetPropertyAlias() const { return m_propertyAlias; }
92 inline bool PropertyAliasHasBeenSet() const { return m_propertyAliasHasBeenSet; }
93 template<typename PropertyAliasT = Aws::String>
94 void SetPropertyAlias(PropertyAliasT&& value) { m_propertyAliasHasBeenSet = true; m_propertyAlias = std::forward<PropertyAliasT>(value); }
95 template<typename PropertyAliasT = Aws::String>
96 PutAssetPropertyValueEntry& WithPropertyAlias(PropertyAliasT&& value) { SetPropertyAlias(std::forward<PropertyAliasT>(value)); return *this;}
98
100
104 inline const Aws::Vector<AssetPropertyValue>& GetPropertyValues() const { return m_propertyValues; }
105 inline bool PropertyValuesHasBeenSet() const { return m_propertyValuesHasBeenSet; }
106 template<typename PropertyValuesT = Aws::Vector<AssetPropertyValue>>
107 void SetPropertyValues(PropertyValuesT&& value) { m_propertyValuesHasBeenSet = true; m_propertyValues = std::forward<PropertyValuesT>(value); }
108 template<typename PropertyValuesT = Aws::Vector<AssetPropertyValue>>
109 PutAssetPropertyValueEntry& WithPropertyValues(PropertyValuesT&& value) { SetPropertyValues(std::forward<PropertyValuesT>(value)); return *this;}
110 template<typename PropertyValuesT = AssetPropertyValue>
111 PutAssetPropertyValueEntry& AddPropertyValues(PropertyValuesT&& value) { m_propertyValuesHasBeenSet = true; m_propertyValues.emplace_back(std::forward<PropertyValuesT>(value)); return *this; }
113 private:
114
115 Aws::String m_entryId;
116 bool m_entryIdHasBeenSet = false;
117
118 Aws::String m_assetId;
119 bool m_assetIdHasBeenSet = false;
120
121 Aws::String m_propertyId;
122 bool m_propertyIdHasBeenSet = false;
123
124 Aws::String m_propertyAlias;
125 bool m_propertyAliasHasBeenSet = false;
126
127 Aws::Vector<AssetPropertyValue> m_propertyValues;
128 bool m_propertyValuesHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace IoT
133} // 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