AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssetModelPropertyDefinition.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iotsitewise/model/PropertyDataType.h>
10#include <aws/iotsitewise/model/PropertyType.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
36 {
37 public:
38 AWS_IOTSITEWISE_API AssetModelPropertyDefinition();
41 AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
52 inline const Aws::String& GetId() const{ return m_id; }
53 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
54 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
55 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
56 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
57 inline AssetModelPropertyDefinition& WithId(const Aws::String& value) { SetId(value); return *this;}
58 inline AssetModelPropertyDefinition& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
59 inline AssetModelPropertyDefinition& WithId(const char* value) { SetId(value); return *this;}
61
63
70 inline const Aws::String& GetExternalId() const{ return m_externalId; }
71 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
72 inline void SetExternalId(const Aws::String& value) { m_externalIdHasBeenSet = true; m_externalId = value; }
73 inline void SetExternalId(Aws::String&& value) { m_externalIdHasBeenSet = true; m_externalId = std::move(value); }
74 inline void SetExternalId(const char* value) { m_externalIdHasBeenSet = true; m_externalId.assign(value); }
75 inline AssetModelPropertyDefinition& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;}
76 inline AssetModelPropertyDefinition& WithExternalId(Aws::String&& value) { SetExternalId(std::move(value)); return *this;}
77 inline AssetModelPropertyDefinition& WithExternalId(const char* value) { SetExternalId(value); return *this;}
79
81
84 inline const Aws::String& GetName() const{ return m_name; }
85 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
86 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
87 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
88 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
89 inline AssetModelPropertyDefinition& WithName(const Aws::String& value) { SetName(value); return *this;}
90 inline AssetModelPropertyDefinition& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
91 inline AssetModelPropertyDefinition& WithName(const char* value) { SetName(value); return *this;}
93
95
100 inline const PropertyDataType& GetDataType() const{ return m_dataType; }
101 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
102 inline void SetDataType(const PropertyDataType& value) { m_dataTypeHasBeenSet = true; m_dataType = value; }
103 inline void SetDataType(PropertyDataType&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::move(value); }
104 inline AssetModelPropertyDefinition& WithDataType(const PropertyDataType& value) { SetDataType(value); return *this;}
105 inline AssetModelPropertyDefinition& WithDataType(PropertyDataType&& value) { SetDataType(std::move(value)); return *this;}
107
109
116 inline const Aws::String& GetDataTypeSpec() const{ return m_dataTypeSpec; }
117 inline bool DataTypeSpecHasBeenSet() const { return m_dataTypeSpecHasBeenSet; }
118 inline void SetDataTypeSpec(const Aws::String& value) { m_dataTypeSpecHasBeenSet = true; m_dataTypeSpec = value; }
119 inline void SetDataTypeSpec(Aws::String&& value) { m_dataTypeSpecHasBeenSet = true; m_dataTypeSpec = std::move(value); }
120 inline void SetDataTypeSpec(const char* value) { m_dataTypeSpecHasBeenSet = true; m_dataTypeSpec.assign(value); }
121 inline AssetModelPropertyDefinition& WithDataTypeSpec(const Aws::String& value) { SetDataTypeSpec(value); return *this;}
122 inline AssetModelPropertyDefinition& WithDataTypeSpec(Aws::String&& value) { SetDataTypeSpec(std::move(value)); return *this;}
123 inline AssetModelPropertyDefinition& WithDataTypeSpec(const char* value) { SetDataTypeSpec(value); return *this;}
125
127
131 inline const Aws::String& GetUnit() const{ return m_unit; }
132 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
133 inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
134 inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
135 inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
136 inline AssetModelPropertyDefinition& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
137 inline AssetModelPropertyDefinition& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
138 inline AssetModelPropertyDefinition& WithUnit(const char* value) { SetUnit(value); return *this;}
140
142
146 inline const PropertyType& GetType() const{ return m_type; }
147 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
148 inline void SetType(const PropertyType& value) { m_typeHasBeenSet = true; m_type = value; }
149 inline void SetType(PropertyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
150 inline AssetModelPropertyDefinition& WithType(const PropertyType& value) { SetType(value); return *this;}
151 inline AssetModelPropertyDefinition& WithType(PropertyType&& value) { SetType(std::move(value)); return *this;}
153 private:
154
155 Aws::String m_id;
156 bool m_idHasBeenSet = false;
157
158 Aws::String m_externalId;
159 bool m_externalIdHasBeenSet = false;
160
161 Aws::String m_name;
162 bool m_nameHasBeenSet = false;
163
164 PropertyDataType m_dataType;
165 bool m_dataTypeHasBeenSet = false;
166
167 Aws::String m_dataTypeSpec;
168 bool m_dataTypeSpecHasBeenSet = false;
169
170 Aws::String m_unit;
171 bool m_unitHasBeenSet = false;
172
173 PropertyType m_type;
174 bool m_typeHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace IoTSiteWise
179} // namespace Aws
AssetModelPropertyDefinition & WithName(const Aws::String &value)
AssetModelPropertyDefinition & WithDataTypeSpec(Aws::String &&value)
AssetModelPropertyDefinition & WithUnit(const char *value)
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
AssetModelPropertyDefinition & WithName(Aws::String &&value)
AssetModelPropertyDefinition & WithId(const Aws::String &value)
AWS_IOTSITEWISE_API AssetModelPropertyDefinition(Aws::Utils::Json::JsonView jsonValue)
AssetModelPropertyDefinition & WithId(Aws::String &&value)
AssetModelPropertyDefinition & WithDataTypeSpec(const char *value)
AWS_IOTSITEWISE_API AssetModelPropertyDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
AssetModelPropertyDefinition & WithType(const PropertyType &value)
AssetModelPropertyDefinition & WithType(PropertyType &&value)
AssetModelPropertyDefinition & WithUnit(Aws::String &&value)
AssetModelPropertyDefinition & WithId(const char *value)
AssetModelPropertyDefinition & WithExternalId(const Aws::String &value)
AssetModelPropertyDefinition & WithDataTypeSpec(const Aws::String &value)
AssetModelPropertyDefinition & WithUnit(const Aws::String &value)
AssetModelPropertyDefinition & WithDataType(const PropertyDataType &value)
AssetModelPropertyDefinition & WithDataType(PropertyDataType &&value)
AssetModelPropertyDefinition & WithExternalId(Aws::String &&value)
AssetModelPropertyDefinition & WithName(const char *value)
AssetModelPropertyDefinition & WithExternalId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue