AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename IdT = Aws::String>
55 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
56 template<typename IdT = Aws::String>
57 AssetModelPropertyDefinition& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
59
61
68 inline const Aws::String& GetExternalId() const { return m_externalId; }
69 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
70 template<typename ExternalIdT = Aws::String>
71 void SetExternalId(ExternalIdT&& value) { m_externalIdHasBeenSet = true; m_externalId = std::forward<ExternalIdT>(value); }
72 template<typename ExternalIdT = Aws::String>
73 AssetModelPropertyDefinition& WithExternalId(ExternalIdT&& value) { SetExternalId(std::forward<ExternalIdT>(value)); return *this;}
75
77
80 inline const Aws::String& GetName() const { return m_name; }
81 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
82 template<typename NameT = Aws::String>
83 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
84 template<typename NameT = Aws::String>
85 AssetModelPropertyDefinition& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
87
89
94 inline PropertyDataType GetDataType() const { return m_dataType; }
95 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
96 inline void SetDataType(PropertyDataType value) { m_dataTypeHasBeenSet = true; m_dataType = value; }
99
101
108 inline const Aws::String& GetDataTypeSpec() const { return m_dataTypeSpec; }
109 inline bool DataTypeSpecHasBeenSet() const { return m_dataTypeSpecHasBeenSet; }
110 template<typename DataTypeSpecT = Aws::String>
111 void SetDataTypeSpec(DataTypeSpecT&& value) { m_dataTypeSpecHasBeenSet = true; m_dataTypeSpec = std::forward<DataTypeSpecT>(value); }
112 template<typename DataTypeSpecT = Aws::String>
113 AssetModelPropertyDefinition& WithDataTypeSpec(DataTypeSpecT&& value) { SetDataTypeSpec(std::forward<DataTypeSpecT>(value)); return *this;}
115
117
121 inline const Aws::String& GetUnit() const { return m_unit; }
122 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
123 template<typename UnitT = Aws::String>
124 void SetUnit(UnitT&& value) { m_unitHasBeenSet = true; m_unit = std::forward<UnitT>(value); }
125 template<typename UnitT = Aws::String>
126 AssetModelPropertyDefinition& WithUnit(UnitT&& value) { SetUnit(std::forward<UnitT>(value)); return *this;}
128
130
134 inline const PropertyType& GetType() const { return m_type; }
135 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
136 template<typename TypeT = PropertyType>
137 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
138 template<typename TypeT = PropertyType>
139 AssetModelPropertyDefinition& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
141 private:
142
143 Aws::String m_id;
144 bool m_idHasBeenSet = false;
145
146 Aws::String m_externalId;
147 bool m_externalIdHasBeenSet = false;
148
149 Aws::String m_name;
150 bool m_nameHasBeenSet = false;
151
153 bool m_dataTypeHasBeenSet = false;
154
155 Aws::String m_dataTypeSpec;
156 bool m_dataTypeSpecHasBeenSet = false;
157
158 Aws::String m_unit;
159 bool m_unitHasBeenSet = false;
160
161 PropertyType m_type;
162 bool m_typeHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace IoTSiteWise
167} // namespace Aws
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
AssetModelPropertyDefinition & WithDataTypeSpec(DataTypeSpecT &&value)
AWS_IOTSITEWISE_API AssetModelPropertyDefinition(Aws::Utils::Json::JsonView jsonValue)
AssetModelPropertyDefinition & WithExternalId(ExternalIdT &&value)
AssetModelPropertyDefinition & WithType(TypeT &&value)
AWS_IOTSITEWISE_API AssetModelPropertyDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
AssetModelPropertyDefinition & WithDataType(PropertyDataType value)
AssetModelPropertyDefinition & WithName(NameT &&value)
AssetModelPropertyDefinition & WithUnit(UnitT &&value)
AWS_IOTSITEWISE_API AssetModelPropertyDefinition()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue