AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
PropertyDefinitionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
10#include <aws/iottwinmaker/model/DataType.h>
11#include <aws/iottwinmaker/model/DataValue.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoTTwinMaker {
23namespace Model {
24
32 public:
33 AWS_IOTTWINMAKER_API PropertyDefinitionRequest() = default;
36 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const DataType& GetDataType() const { return m_dataType; }
43 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
44 template <typename DataTypeT = DataType>
45 void SetDataType(DataTypeT&& value) {
46 m_dataTypeHasBeenSet = true;
47 m_dataType = std::forward<DataTypeT>(value);
48 }
49 template <typename DataTypeT = DataType>
51 SetDataType(std::forward<DataTypeT>(value));
52 return *this;
53 }
55
57
60 inline bool GetIsRequiredInEntity() const { return m_isRequiredInEntity; }
61 inline bool IsRequiredInEntityHasBeenSet() const { return m_isRequiredInEntityHasBeenSet; }
62 inline void SetIsRequiredInEntity(bool value) {
63 m_isRequiredInEntityHasBeenSet = true;
64 m_isRequiredInEntity = value;
65 }
68 return *this;
69 }
71
73
77 inline bool GetIsExternalId() const { return m_isExternalId; }
78 inline bool IsExternalIdHasBeenSet() const { return m_isExternalIdHasBeenSet; }
79 inline void SetIsExternalId(bool value) {
80 m_isExternalIdHasBeenSet = true;
81 m_isExternalId = value;
82 }
84 SetIsExternalId(value);
85 return *this;
86 }
88
90
93 inline bool GetIsStoredExternally() const { return m_isStoredExternally; }
94 inline bool IsStoredExternallyHasBeenSet() const { return m_isStoredExternallyHasBeenSet; }
95 inline void SetIsStoredExternally(bool value) {
96 m_isStoredExternallyHasBeenSet = true;
97 m_isStoredExternally = value;
98 }
101 return *this;
102 }
104
106
110 inline bool GetIsTimeSeries() const { return m_isTimeSeries; }
111 inline bool IsTimeSeriesHasBeenSet() const { return m_isTimeSeriesHasBeenSet; }
112 inline void SetIsTimeSeries(bool value) {
113 m_isTimeSeriesHasBeenSet = true;
114 m_isTimeSeries = value;
115 }
117 SetIsTimeSeries(value);
118 return *this;
119 }
121
123
126 inline const DataValue& GetDefaultValue() const { return m_defaultValue; }
127 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
128 template <typename DefaultValueT = DataValue>
129 void SetDefaultValue(DefaultValueT&& value) {
130 m_defaultValueHasBeenSet = true;
131 m_defaultValue = std::forward<DefaultValueT>(value);
132 }
133 template <typename DefaultValueT = DataValue>
135 SetDefaultValue(std::forward<DefaultValueT>(value));
136 return *this;
137 }
139
141
146 inline const Aws::Map<Aws::String, Aws::String>& GetConfiguration() const { return m_configuration; }
147 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
148 template <typename ConfigurationT = Aws::Map<Aws::String, Aws::String>>
149 void SetConfiguration(ConfigurationT&& value) {
150 m_configurationHasBeenSet = true;
151 m_configuration = std::forward<ConfigurationT>(value);
152 }
153 template <typename ConfigurationT = Aws::Map<Aws::String, Aws::String>>
155 SetConfiguration(std::forward<ConfigurationT>(value));
156 return *this;
157 }
158 template <typename ConfigurationKeyT = Aws::String, typename ConfigurationValueT = Aws::String>
159 PropertyDefinitionRequest& AddConfiguration(ConfigurationKeyT&& key, ConfigurationValueT&& value) {
160 m_configurationHasBeenSet = true;
161 m_configuration.emplace(std::forward<ConfigurationKeyT>(key), std::forward<ConfigurationValueT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::String& GetDisplayName() const { return m_displayName; }
171 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
172 template <typename DisplayNameT = Aws::String>
173 void SetDisplayName(DisplayNameT&& value) {
174 m_displayNameHasBeenSet = true;
175 m_displayName = std::forward<DisplayNameT>(value);
176 }
177 template <typename DisplayNameT = Aws::String>
179 SetDisplayName(std::forward<DisplayNameT>(value));
180 return *this;
181 }
183 private:
184 DataType m_dataType;
185
186 bool m_isRequiredInEntity{false};
187
188 bool m_isExternalId{false};
189
190 bool m_isStoredExternally{false};
191
192 bool m_isTimeSeries{false};
193
194 DataValue m_defaultValue;
195
197
198 Aws::String m_displayName;
199 bool m_dataTypeHasBeenSet = false;
200 bool m_isRequiredInEntityHasBeenSet = false;
201 bool m_isExternalIdHasBeenSet = false;
202 bool m_isStoredExternallyHasBeenSet = false;
203 bool m_isTimeSeriesHasBeenSet = false;
204 bool m_defaultValueHasBeenSet = false;
205 bool m_configurationHasBeenSet = false;
206 bool m_displayNameHasBeenSet = false;
207};
208
209} // namespace Model
210} // namespace IoTTwinMaker
211} // namespace Aws
AWS_IOTTWINMAKER_API PropertyDefinitionRequest()=default
PropertyDefinitionRequest & WithConfiguration(ConfigurationT &&value)
PropertyDefinitionRequest & WithIsExternalId(bool value)
PropertyDefinitionRequest & WithIsStoredExternally(bool value)
const Aws::Map< Aws::String, Aws::String > & GetConfiguration() const
PropertyDefinitionRequest & WithIsRequiredInEntity(bool value)
PropertyDefinitionRequest & WithDataType(DataTypeT &&value)
AWS_IOTTWINMAKER_API PropertyDefinitionRequest(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTTWINMAKER_API PropertyDefinitionRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
PropertyDefinitionRequest & WithIsTimeSeries(bool value)
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
PropertyDefinitionRequest & WithDisplayName(DisplayNameT &&value)
PropertyDefinitionRequest & AddConfiguration(ConfigurationKeyT &&key, ConfigurationValueT &&value)
PropertyDefinitionRequest & WithDefaultValue(DefaultValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue