AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PropertyDefinitionRequest.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 PropertyDefinitionRequest();
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 PropertyDefinitionRequest& WithDataType(const DataType& value) { SetDataType(value); return *this;}
53 inline PropertyDefinitionRequest& WithDataType(DataType&& value) { SetDataType(std::move(value)); return *this;}
55
57
60 inline bool GetIsRequiredInEntity() const{ return m_isRequiredInEntity; }
61 inline bool IsRequiredInEntityHasBeenSet() const { return m_isRequiredInEntityHasBeenSet; }
62 inline void SetIsRequiredInEntity(bool value) { m_isRequiredInEntityHasBeenSet = true; m_isRequiredInEntity = value; }
63 inline PropertyDefinitionRequest& WithIsRequiredInEntity(bool value) { SetIsRequiredInEntity(value); return *this;}
65
67
71 inline bool GetIsExternalId() const{ return m_isExternalId; }
72 inline bool IsExternalIdHasBeenSet() const { return m_isExternalIdHasBeenSet; }
73 inline void SetIsExternalId(bool value) { m_isExternalIdHasBeenSet = true; m_isExternalId = value; }
74 inline PropertyDefinitionRequest& WithIsExternalId(bool value) { SetIsExternalId(value); return *this;}
76
78
81 inline bool GetIsStoredExternally() const{ return m_isStoredExternally; }
82 inline bool IsStoredExternallyHasBeenSet() const { return m_isStoredExternallyHasBeenSet; }
83 inline void SetIsStoredExternally(bool value) { m_isStoredExternallyHasBeenSet = true; m_isStoredExternally = value; }
84 inline PropertyDefinitionRequest& WithIsStoredExternally(bool value) { SetIsStoredExternally(value); return *this;}
86
88
92 inline bool GetIsTimeSeries() const{ return m_isTimeSeries; }
93 inline bool IsTimeSeriesHasBeenSet() const { return m_isTimeSeriesHasBeenSet; }
94 inline void SetIsTimeSeries(bool value) { m_isTimeSeriesHasBeenSet = true; m_isTimeSeries = value; }
95 inline PropertyDefinitionRequest& WithIsTimeSeries(bool value) { SetIsTimeSeries(value); return *this;}
97
99
102 inline const DataValue& GetDefaultValue() const{ return m_defaultValue; }
103 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
104 inline void SetDefaultValue(const DataValue& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
105 inline void SetDefaultValue(DataValue&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); }
106 inline PropertyDefinitionRequest& WithDefaultValue(const DataValue& value) { SetDefaultValue(value); return *this;}
107 inline PropertyDefinitionRequest& WithDefaultValue(DataValue&& value) { SetDefaultValue(std::move(value)); return *this;}
109
111
116 inline const Aws::Map<Aws::String, Aws::String>& GetConfiguration() const{ return m_configuration; }
117 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
118 inline void SetConfiguration(const Aws::Map<Aws::String, Aws::String>& value) { m_configurationHasBeenSet = true; m_configuration = value; }
119 inline void SetConfiguration(Aws::Map<Aws::String, Aws::String>&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
122 inline PropertyDefinitionRequest& AddConfiguration(const Aws::String& key, const Aws::String& value) { m_configurationHasBeenSet = true; m_configuration.emplace(key, value); return *this; }
123 inline PropertyDefinitionRequest& AddConfiguration(Aws::String&& key, const Aws::String& value) { m_configurationHasBeenSet = true; m_configuration.emplace(std::move(key), value); return *this; }
124 inline PropertyDefinitionRequest& AddConfiguration(const Aws::String& key, Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration.emplace(key, std::move(value)); return *this; }
125 inline PropertyDefinitionRequest& AddConfiguration(Aws::String&& key, Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration.emplace(std::move(key), std::move(value)); return *this; }
126 inline PropertyDefinitionRequest& AddConfiguration(const char* key, Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration.emplace(key, std::move(value)); return *this; }
127 inline PropertyDefinitionRequest& AddConfiguration(Aws::String&& key, const char* value) { m_configurationHasBeenSet = true; m_configuration.emplace(std::move(key), value); return *this; }
128 inline PropertyDefinitionRequest& AddConfiguration(const char* key, const char* value) { m_configurationHasBeenSet = true; m_configuration.emplace(key, value); return *this; }
130
132
135 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
136 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
137 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
138 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
139 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
140 inline PropertyDefinitionRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
141 inline PropertyDefinitionRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
142 inline PropertyDefinitionRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
144 private:
145
146 DataType m_dataType;
147 bool m_dataTypeHasBeenSet = false;
148
149 bool m_isRequiredInEntity;
150 bool m_isRequiredInEntityHasBeenSet = false;
151
152 bool m_isExternalId;
153 bool m_isExternalIdHasBeenSet = false;
154
155 bool m_isStoredExternally;
156 bool m_isStoredExternallyHasBeenSet = false;
157
158 bool m_isTimeSeries;
159 bool m_isTimeSeriesHasBeenSet = false;
160
161 DataValue m_defaultValue;
162 bool m_defaultValueHasBeenSet = false;
163
165 bool m_configurationHasBeenSet = false;
166
167 Aws::String m_displayName;
168 bool m_displayNameHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace IoTTwinMaker
173} // namespace Aws
PropertyDefinitionRequest & AddConfiguration(const Aws::String &key, Aws::String &&value)
PropertyDefinitionRequest & WithIsExternalId(bool value)
PropertyDefinitionRequest & WithIsStoredExternally(bool value)
void SetConfiguration(Aws::Map< Aws::String, Aws::String > &&value)
PropertyDefinitionRequest & AddConfiguration(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetConfiguration() const
PropertyDefinitionRequest & WithIsRequiredInEntity(bool value)
AWS_IOTTWINMAKER_API PropertyDefinitionRequest(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTTWINMAKER_API PropertyDefinitionRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
PropertyDefinitionRequest & WithDataType(const DataType &value)
PropertyDefinitionRequest & WithDefaultValue(DataValue &&value)
PropertyDefinitionRequest & AddConfiguration(Aws::String &&key, const char *value)
PropertyDefinitionRequest & AddConfiguration(const char *key, const char *value)
PropertyDefinitionRequest & AddConfiguration(Aws::String &&key, const Aws::String &value)
PropertyDefinitionRequest & WithDataType(DataType &&value)
PropertyDefinitionRequest & WithIsTimeSeries(bool value)
PropertyDefinitionRequest & WithDisplayName(Aws::String &&value)
PropertyDefinitionRequest & AddConfiguration(const char *key, Aws::String &&value)
void SetConfiguration(const Aws::Map< Aws::String, Aws::String > &value)
PropertyDefinitionRequest & WithDisplayName(const char *value)
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
PropertyDefinitionRequest & WithConfiguration(const Aws::Map< Aws::String, Aws::String > &value)
PropertyDefinitionRequest & WithDisplayName(const Aws::String &value)
PropertyDefinitionRequest & AddConfiguration(const Aws::String &key, const Aws::String &value)
PropertyDefinitionRequest & WithConfiguration(Aws::Map< Aws::String, Aws::String > &&value)
PropertyDefinitionRequest & WithDefaultValue(const 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