AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PropertyDefinitionResponse.h
1
6#pragma once
7#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
8#include <aws/iottwinmaker/model/DataType.h>
9#include <aws/iottwinmaker/model/DataValue.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace IoTTwinMaker
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_IOTTWINMAKER_API PropertyDefinitionResponse();
41 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const DataType& GetDataType() const{ return m_dataType; }
49 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
50 inline void SetDataType(const DataType& value) { m_dataTypeHasBeenSet = true; m_dataType = value; }
51 inline void SetDataType(DataType&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::move(value); }
52 inline PropertyDefinitionResponse& WithDataType(const DataType& value) { SetDataType(value); return *this;}
53 inline PropertyDefinitionResponse& WithDataType(DataType&& value) { SetDataType(std::move(value)); return *this;}
55
57
61 inline bool GetIsTimeSeries() const{ return m_isTimeSeries; }
62 inline bool IsTimeSeriesHasBeenSet() const { return m_isTimeSeriesHasBeenSet; }
63 inline void SetIsTimeSeries(bool value) { m_isTimeSeriesHasBeenSet = true; m_isTimeSeries = value; }
64 inline PropertyDefinitionResponse& WithIsTimeSeries(bool value) { SetIsTimeSeries(value); return *this;}
66
68
72 inline bool GetIsRequiredInEntity() const{ return m_isRequiredInEntity; }
73 inline bool IsRequiredInEntityHasBeenSet() const { return m_isRequiredInEntityHasBeenSet; }
74 inline void SetIsRequiredInEntity(bool value) { m_isRequiredInEntityHasBeenSet = true; m_isRequiredInEntity = value; }
75 inline PropertyDefinitionResponse& WithIsRequiredInEntity(bool value) { SetIsRequiredInEntity(value); return *this;}
77
79
83 inline bool GetIsExternalId() const{ return m_isExternalId; }
84 inline bool IsExternalIdHasBeenSet() const { return m_isExternalIdHasBeenSet; }
85 inline void SetIsExternalId(bool value) { m_isExternalIdHasBeenSet = true; m_isExternalId = value; }
86 inline PropertyDefinitionResponse& WithIsExternalId(bool value) { SetIsExternalId(value); return *this;}
88
90
93 inline bool GetIsStoredExternally() const{ return m_isStoredExternally; }
94 inline bool IsStoredExternallyHasBeenSet() const { return m_isStoredExternallyHasBeenSet; }
95 inline void SetIsStoredExternally(bool value) { m_isStoredExternallyHasBeenSet = true; m_isStoredExternally = value; }
96 inline PropertyDefinitionResponse& WithIsStoredExternally(bool value) { SetIsStoredExternally(value); return *this;}
98
100
104 inline bool GetIsImported() const{ return m_isImported; }
105 inline bool IsImportedHasBeenSet() const { return m_isImportedHasBeenSet; }
106 inline void SetIsImported(bool value) { m_isImportedHasBeenSet = true; m_isImported = value; }
107 inline PropertyDefinitionResponse& WithIsImported(bool value) { SetIsImported(value); return *this;}
109
111
115 inline bool GetIsFinal() const{ return m_isFinal; }
116 inline bool IsFinalHasBeenSet() const { return m_isFinalHasBeenSet; }
117 inline void SetIsFinal(bool value) { m_isFinalHasBeenSet = true; m_isFinal = value; }
118 inline PropertyDefinitionResponse& WithIsFinal(bool value) { SetIsFinal(value); return *this;}
120
122
126 inline bool GetIsInherited() const{ return m_isInherited; }
127 inline bool IsInheritedHasBeenSet() const { return m_isInheritedHasBeenSet; }
128 inline void SetIsInherited(bool value) { m_isInheritedHasBeenSet = true; m_isInherited = value; }
129 inline PropertyDefinitionResponse& WithIsInherited(bool value) { SetIsInherited(value); return *this;}
131
133
136 inline const DataValue& GetDefaultValue() const{ return m_defaultValue; }
137 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
138 inline void SetDefaultValue(const DataValue& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
139 inline void SetDefaultValue(DataValue&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); }
140 inline PropertyDefinitionResponse& WithDefaultValue(const DataValue& value) { SetDefaultValue(value); return *this;}
141 inline PropertyDefinitionResponse& WithDefaultValue(DataValue&& value) { SetDefaultValue(std::move(value)); return *this;}
143
145
148 inline const Aws::Map<Aws::String, Aws::String>& GetConfiguration() const{ return m_configuration; }
149 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
150 inline void SetConfiguration(const Aws::Map<Aws::String, Aws::String>& value) { m_configurationHasBeenSet = true; m_configuration = value; }
151 inline void SetConfiguration(Aws::Map<Aws::String, Aws::String>&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
154 inline PropertyDefinitionResponse& AddConfiguration(const Aws::String& key, const Aws::String& value) { m_configurationHasBeenSet = true; m_configuration.emplace(key, value); return *this; }
155 inline PropertyDefinitionResponse& AddConfiguration(Aws::String&& key, const Aws::String& value) { m_configurationHasBeenSet = true; m_configuration.emplace(std::move(key), value); return *this; }
156 inline PropertyDefinitionResponse& AddConfiguration(const Aws::String& key, Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration.emplace(key, std::move(value)); return *this; }
157 inline PropertyDefinitionResponse& AddConfiguration(Aws::String&& key, Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration.emplace(std::move(key), std::move(value)); return *this; }
158 inline PropertyDefinitionResponse& AddConfiguration(const char* key, Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration.emplace(key, std::move(value)); return *this; }
159 inline PropertyDefinitionResponse& AddConfiguration(Aws::String&& key, const char* value) { m_configurationHasBeenSet = true; m_configuration.emplace(std::move(key), value); return *this; }
160 inline PropertyDefinitionResponse& AddConfiguration(const char* key, const char* value) { m_configurationHasBeenSet = true; m_configuration.emplace(key, value); return *this; }
162
164
167 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
168 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
169 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
170 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
171 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
172 inline PropertyDefinitionResponse& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
173 inline PropertyDefinitionResponse& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
174 inline PropertyDefinitionResponse& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
176 private:
177
178 DataType m_dataType;
179 bool m_dataTypeHasBeenSet = false;
180
181 bool m_isTimeSeries;
182 bool m_isTimeSeriesHasBeenSet = false;
183
184 bool m_isRequiredInEntity;
185 bool m_isRequiredInEntityHasBeenSet = false;
186
187 bool m_isExternalId;
188 bool m_isExternalIdHasBeenSet = false;
189
190 bool m_isStoredExternally;
191 bool m_isStoredExternallyHasBeenSet = false;
192
193 bool m_isImported;
194 bool m_isImportedHasBeenSet = false;
195
196 bool m_isFinal;
197 bool m_isFinalHasBeenSet = false;
198
199 bool m_isInherited;
200 bool m_isInheritedHasBeenSet = false;
201
202 DataValue m_defaultValue;
203 bool m_defaultValueHasBeenSet = false;
204
206 bool m_configurationHasBeenSet = false;
207
208 Aws::String m_displayName;
209 bool m_displayNameHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace IoTTwinMaker
214} // namespace Aws
PropertyDefinitionResponse & WithDisplayName(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetConfiguration() const
PropertyDefinitionResponse & WithIsTimeSeries(bool value)
PropertyDefinitionResponse & AddConfiguration(const char *key, const char *value)
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
PropertyDefinitionResponse & WithConfiguration(Aws::Map< Aws::String, Aws::String > &&value)
PropertyDefinitionResponse & WithDataType(DataType &&value)
AWS_IOTTWINMAKER_API PropertyDefinitionResponse(Aws::Utils::Json::JsonView jsonValue)
PropertyDefinitionResponse & WithDisplayName(const Aws::String &value)
PropertyDefinitionResponse & WithDataType(const DataType &value)
PropertyDefinitionResponse & AddConfiguration(Aws::String &&key, const char *value)
PropertyDefinitionResponse & WithIsStoredExternally(bool value)
PropertyDefinitionResponse & WithDefaultValue(const DataValue &value)
PropertyDefinitionResponse & AddConfiguration(const char *key, Aws::String &&value)
PropertyDefinitionResponse & WithIsExternalId(bool value)
PropertyDefinitionResponse & AddConfiguration(Aws::String &&key, const Aws::String &value)
PropertyDefinitionResponse & WithDisplayName(Aws::String &&value)
PropertyDefinitionResponse & WithIsRequiredInEntity(bool value)
PropertyDefinitionResponse & WithConfiguration(const Aws::Map< Aws::String, Aws::String > &value)
PropertyDefinitionResponse & AddConfiguration(Aws::String &&key, Aws::String &&value)
AWS_IOTTWINMAKER_API PropertyDefinitionResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetConfiguration(const Aws::Map< Aws::String, Aws::String > &value)
PropertyDefinitionResponse & AddConfiguration(const Aws::String &key, const Aws::String &value)
void SetConfiguration(Aws::Map< Aws::String, Aws::String > &&value)
PropertyDefinitionResponse & AddConfiguration(const Aws::String &key, Aws::String &&value)
PropertyDefinitionResponse & WithDefaultValue(DataValue &&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