AWS SDK for C++  1.9.160
AWS SDK for C++
AssetCompositeModel.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace IoTSiteWise
24 {
25 namespace Model
26 {
27 
36  {
37  public:
42 
43 
47  inline const Aws::String& GetName() const{ return m_name; }
48 
52  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 
57  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
58 
62  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 
67  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 
72  inline AssetCompositeModel& WithName(const Aws::String& value) { SetName(value); return *this;}
73 
77  inline AssetCompositeModel& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
78 
82  inline AssetCompositeModel& WithName(const char* value) { SetName(value); return *this;}
83 
84 
88  inline const Aws::String& GetDescription() const{ return m_description; }
89 
93  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
94 
98  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
99 
103  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
104 
108  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
109 
113  inline AssetCompositeModel& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
114 
118  inline AssetCompositeModel& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
119 
123  inline AssetCompositeModel& WithDescription(const char* value) { SetDescription(value); return *this;}
124 
125 
130  inline const Aws::String& GetType() const{ return m_type; }
131 
136  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
137 
142  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
143 
148  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
149 
154  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
155 
160  inline AssetCompositeModel& WithType(const Aws::String& value) { SetType(value); return *this;}
161 
166  inline AssetCompositeModel& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
167 
172  inline AssetCompositeModel& WithType(const char* value) { SetType(value); return *this;}
173 
174 
178  inline const Aws::Vector<AssetProperty>& GetProperties() const{ return m_properties; }
179 
183  inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
184 
188  inline void SetProperties(const Aws::Vector<AssetProperty>& value) { m_propertiesHasBeenSet = true; m_properties = value; }
189 
193  inline void SetProperties(Aws::Vector<AssetProperty>&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
194 
198  inline AssetCompositeModel& WithProperties(const Aws::Vector<AssetProperty>& value) { SetProperties(value); return *this;}
199 
203  inline AssetCompositeModel& WithProperties(Aws::Vector<AssetProperty>&& value) { SetProperties(std::move(value)); return *this;}
204 
208  inline AssetCompositeModel& AddProperties(const AssetProperty& value) { m_propertiesHasBeenSet = true; m_properties.push_back(value); return *this; }
209 
213  inline AssetCompositeModel& AddProperties(AssetProperty&& value) { m_propertiesHasBeenSet = true; m_properties.push_back(std::move(value)); return *this; }
214 
215  private:
216 
217  Aws::String m_name;
218  bool m_nameHasBeenSet;
219 
220  Aws::String m_description;
221  bool m_descriptionHasBeenSet;
222 
223  Aws::String m_type;
224  bool m_typeHasBeenSet;
225 
226  Aws::Vector<AssetProperty> m_properties;
227  bool m_propertiesHasBeenSet;
228  };
229 
230 } // namespace Model
231 } // namespace IoTSiteWise
232 } // namespace Aws
Aws::IoTSiteWise::Model::AssetCompositeModel::WithName
AssetCompositeModel & WithName(const char *value)
Definition: AssetCompositeModel.h:82
Aws::IoTSiteWise::Model::AssetCompositeModel::AddProperties
AssetCompositeModel & AddProperties(const AssetProperty &value)
Definition: AssetCompositeModel.h:208
Aws::IoTSiteWise::Model::AssetCompositeModel::SetDescription
void SetDescription(const char *value)
Definition: AssetCompositeModel.h:108
Aws::IoTSiteWise::Model::AssetCompositeModel::WithType
AssetCompositeModel & WithType(Aws::String &&value)
Definition: AssetCompositeModel.h:166
Aws::IoTSiteWise::Model::AssetCompositeModel::GetDescription
const Aws::String & GetDescription() const
Definition: AssetCompositeModel.h:88
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::AssetCompositeModel::PropertiesHasBeenSet
bool PropertiesHasBeenSet() const
Definition: AssetCompositeModel.h:183
Aws::IoTSiteWise::Model::AssetCompositeModel::SetName
void SetName(const char *value)
Definition: AssetCompositeModel.h:67
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::AssetCompositeModel::WithDescription
AssetCompositeModel & WithDescription(const Aws::String &value)
Definition: AssetCompositeModel.h:113
Aws::IoTSiteWise::Model::AssetCompositeModel::AssetCompositeModel
AssetCompositeModel(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::AssetCompositeModel::SetName
void SetName(const Aws::String &value)
Definition: AssetCompositeModel.h:57
Aws::IoTSiteWise::Model::AssetCompositeModel::GetType
const Aws::String & GetType() const
Definition: AssetCompositeModel.h:130
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoTSiteWise::Model::AssetCompositeModel::AssetCompositeModel
AssetCompositeModel()
AWSVector.h
Aws::IoTSiteWise::Model::AssetCompositeModel::WithDescription
AssetCompositeModel & WithDescription(const char *value)
Definition: AssetCompositeModel.h:123
Aws::IoTSiteWise::Model::AssetCompositeModel::GetProperties
const Aws::Vector< AssetProperty > & GetProperties() const
Definition: AssetCompositeModel.h:178
Aws::IoTSiteWise::Model::AssetCompositeModel::SetDescription
void SetDescription(Aws::String &&value)
Definition: AssetCompositeModel.h:103
Aws::IoTSiteWise::Model::AssetCompositeModel::SetType
void SetType(Aws::String &&value)
Definition: AssetCompositeModel.h:148
Aws::IoTSiteWise::Model::AssetCompositeModel::SetType
void SetType(const Aws::String &value)
Definition: AssetCompositeModel.h:142
Aws::IoTSiteWise::Model::AssetCompositeModel::GetName
const Aws::String & GetName() const
Definition: AssetCompositeModel.h:47
Aws::IoTSiteWise::Model::AssetCompositeModel::WithName
AssetCompositeModel & WithName(const Aws::String &value)
Definition: AssetCompositeModel.h:72
Aws::IoTSiteWise::Model::AssetCompositeModel::WithProperties
AssetCompositeModel & WithProperties(const Aws::Vector< AssetProperty > &value)
Definition: AssetCompositeModel.h:198
Aws::IoTSiteWise::Model::AssetCompositeModel::NameHasBeenSet
bool NameHasBeenSet() const
Definition: AssetCompositeModel.h:52
Aws::IoTSiteWise::Model::AssetCompositeModel::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoTSiteWise::Model::AssetCompositeModel::SetType
void SetType(const char *value)
Definition: AssetCompositeModel.h:154
Aws::IoTSiteWise::Model::AssetCompositeModel::SetProperties
void SetProperties(Aws::Vector< AssetProperty > &&value)
Definition: AssetCompositeModel.h:193
Aws::IoTSiteWise::Model::AssetCompositeModel
Definition: AssetCompositeModel.h:36
Aws::IoTSiteWise::Model::AssetCompositeModel::WithDescription
AssetCompositeModel & WithDescription(Aws::String &&value)
Definition: AssetCompositeModel.h:118
Aws::IoTSiteWise::Model::AssetCompositeModel::SetDescription
void SetDescription(const Aws::String &value)
Definition: AssetCompositeModel.h:98
Aws::IoTSiteWise::Model::AssetCompositeModel::WithName
AssetCompositeModel & WithName(Aws::String &&value)
Definition: AssetCompositeModel.h:77
Aws::IoTSiteWise::Model::AssetProperty
Definition: AssetProperty.h:34
AssetProperty.h
Aws::IoTSiteWise::Model::AssetCompositeModel::operator=
AssetCompositeModel & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::IoTSiteWise::Model::AssetCompositeModel::WithType
AssetCompositeModel & WithType(const Aws::String &value)
Definition: AssetCompositeModel.h:160
Aws::IoTSiteWise::Model::AssetCompositeModel::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: AssetCompositeModel.h:93
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTSiteWise::Model::AssetCompositeModel::WithType
AssetCompositeModel & WithType(const char *value)
Definition: AssetCompositeModel.h:172
Aws::IoTSiteWise::Model::AssetCompositeModel::AddProperties
AssetCompositeModel & AddProperties(AssetProperty &&value)
Definition: AssetCompositeModel.h:213
Aws::IoTSiteWise::Model::AssetCompositeModel::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: AssetCompositeModel.h:136
Aws::IoTSiteWise::Model::AssetCompositeModel::SetName
void SetName(Aws::String &&value)
Definition: AssetCompositeModel.h:62
Aws::IoTSiteWise::Model::AssetCompositeModel::SetProperties
void SetProperties(const Aws::Vector< AssetProperty > &value)
Definition: AssetCompositeModel.h:188
Aws::IoTSiteWise::Model::AssetCompositeModel::WithProperties
AssetCompositeModel & WithProperties(Aws::Vector< AssetProperty > &&value)
Definition: AssetCompositeModel.h:203