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/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/iotsitewise/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 IoTSiteWise
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_IOTSITEWISE_API PutAssetPropertyValueEntry() = default;
42 AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::String& GetEntryId() const { return m_entryId; }
51 inline bool EntryIdHasBeenSet() const { return m_entryIdHasBeenSet; }
52 template<typename EntryIdT = Aws::String>
53 void SetEntryId(EntryIdT&& value) { m_entryIdHasBeenSet = true; m_entryId = std::forward<EntryIdT>(value); }
54 template<typename EntryIdT = Aws::String>
55 PutAssetPropertyValueEntry& WithEntryId(EntryIdT&& value) { SetEntryId(std::forward<EntryIdT>(value)); return *this;}
57
59
62 inline const Aws::String& GetAssetId() const { return m_assetId; }
63 inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; }
64 template<typename AssetIdT = Aws::String>
65 void SetAssetId(AssetIdT&& value) { m_assetIdHasBeenSet = true; m_assetId = std::forward<AssetIdT>(value); }
66 template<typename AssetIdT = Aws::String>
67 PutAssetPropertyValueEntry& WithAssetId(AssetIdT&& value) { SetAssetId(std::forward<AssetIdT>(value)); return *this;}
69
71
74 inline const Aws::String& GetPropertyId() const { return m_propertyId; }
75 inline bool PropertyIdHasBeenSet() const { return m_propertyIdHasBeenSet; }
76 template<typename PropertyIdT = Aws::String>
77 void SetPropertyId(PropertyIdT&& value) { m_propertyIdHasBeenSet = true; m_propertyId = std::forward<PropertyIdT>(value); }
78 template<typename PropertyIdT = Aws::String>
79 PutAssetPropertyValueEntry& WithPropertyId(PropertyIdT&& value) { SetPropertyId(std::forward<PropertyIdT>(value)); return *this;}
81
83
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 IoTSiteWise
133} // namespace Aws
void SetAssetId(AssetIdT &&value)
PutAssetPropertyValueEntry & AddPropertyValues(PropertyValuesT &&value)
const Aws::String & GetPropertyId() const
bool PropertyAliasHasBeenSet() const
const Aws::String & GetPropertyAlias() const
bool PropertyIdHasBeenSet() const
void SetPropertyId(PropertyIdT &&value)
void SetPropertyAlias(PropertyAliasT &&value)
bool EntryIdHasBeenSet() const
AWS_IOTSITEWISE_API PutAssetPropertyValueEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPropertyValues(PropertyValuesT &&value)
PutAssetPropertyValueEntry & WithAssetId(AssetIdT &&value)
const Aws::Vector< AssetPropertyValue > & GetPropertyValues() const
const Aws::String & GetAssetId() const
PutAssetPropertyValueEntry & WithEntryId(EntryIdT &&value)
PutAssetPropertyValueEntry & WithPropertyValues(PropertyValuesT &&value)
bool PropertyValuesHasBeenSet() const
void SetEntryId(EntryIdT &&value)
const Aws::String & GetEntryId() const
AWS_IOTSITEWISE_API PutAssetPropertyValueEntry()=default
bool AssetIdHasBeenSet() const
PutAssetPropertyValueEntry & WithPropertyAlias(PropertyAliasT &&value)
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTSITEWISE_API PutAssetPropertyValueEntry(Aws::Utils::Json::JsonView jsonValue)
PutAssetPropertyValueEntry & WithPropertyId(PropertyIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue