AWS SDK for C++  1.8.126
AWS SDK for C++
AssetModelHierarchy.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace IoTSiteWise
22 {
23 namespace Model
24 {
25 
34  {
35  public:
40 
41 
46  inline const Aws::String& GetId() const{ return m_id; }
47 
52  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
53 
58  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
59 
64  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
65 
70  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
71 
76  inline AssetModelHierarchy& WithId(const Aws::String& value) { SetId(value); return *this;}
77 
82  inline AssetModelHierarchy& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
83 
88  inline AssetModelHierarchy& WithId(const char* value) { SetId(value); return *this;}
89 
90 
98  inline const Aws::String& GetName() const{ return m_name; }
99 
107  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
108 
116  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
117 
125  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
126 
134  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
135 
143  inline AssetModelHierarchy& WithName(const Aws::String& value) { SetName(value); return *this;}
144 
152  inline AssetModelHierarchy& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
153 
161  inline AssetModelHierarchy& WithName(const char* value) { SetName(value); return *this;}
162 
163 
168  inline const Aws::String& GetChildAssetModelId() const{ return m_childAssetModelId; }
169 
174  inline bool ChildAssetModelIdHasBeenSet() const { return m_childAssetModelIdHasBeenSet; }
175 
180  inline void SetChildAssetModelId(const Aws::String& value) { m_childAssetModelIdHasBeenSet = true; m_childAssetModelId = value; }
181 
186  inline void SetChildAssetModelId(Aws::String&& value) { m_childAssetModelIdHasBeenSet = true; m_childAssetModelId = std::move(value); }
187 
192  inline void SetChildAssetModelId(const char* value) { m_childAssetModelIdHasBeenSet = true; m_childAssetModelId.assign(value); }
193 
198  inline AssetModelHierarchy& WithChildAssetModelId(const Aws::String& value) { SetChildAssetModelId(value); return *this;}
199 
204  inline AssetModelHierarchy& WithChildAssetModelId(Aws::String&& value) { SetChildAssetModelId(std::move(value)); return *this;}
205 
210  inline AssetModelHierarchy& WithChildAssetModelId(const char* value) { SetChildAssetModelId(value); return *this;}
211 
212  private:
213 
214  Aws::String m_id;
215  bool m_idHasBeenSet;
216 
217  Aws::String m_name;
218  bool m_nameHasBeenSet;
219 
220  Aws::String m_childAssetModelId;
221  bool m_childAssetModelIdHasBeenSet;
222  };
223 
224 } // namespace Model
225 } // namespace IoTSiteWise
226 } // namespace Aws
Aws::IoTSiteWise::Model::AssetModelHierarchy::IdHasBeenSet
bool IdHasBeenSet() const
Definition: AssetModelHierarchy.h:52
Aws::IoTSiteWise::Model::AssetModelHierarchy::SetId
void SetId(Aws::String &&value)
Definition: AssetModelHierarchy.h:64
Aws::IoTSiteWise::Model::AssetModelHierarchy::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoTSiteWise::Model::AssetModelHierarchy::WithName
AssetModelHierarchy & WithName(const char *value)
Definition: AssetModelHierarchy.h:161
IoTSiteWise_EXPORTS.h
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::AssetModelHierarchy::SetName
void SetName(const Aws::String &value)
Definition: AssetModelHierarchy.h:116
Aws::IoTSiteWise::Model::AssetModelHierarchy::WithName
AssetModelHierarchy & WithName(Aws::String &&value)
Definition: AssetModelHierarchy.h:152
Aws::IoTSiteWise::Model::AssetModelHierarchy::GetChildAssetModelId
const Aws::String & GetChildAssetModelId() const
Definition: AssetModelHierarchy.h:168
Aws::IoTSiteWise::Model::AssetModelHierarchy::SetName
void SetName(Aws::String &&value)
Definition: AssetModelHierarchy.h:125
Aws::IoTSiteWise::Model::AssetModelHierarchy::GetName
const Aws::String & GetName() const
Definition: AssetModelHierarchy.h:98
Aws::IoTSiteWise::Model::AssetModelHierarchy::WithName
AssetModelHierarchy & WithName(const Aws::String &value)
Definition: AssetModelHierarchy.h:143
Aws::IoTSiteWise::Model::AssetModelHierarchy::GetId
const Aws::String & GetId() const
Definition: AssetModelHierarchy.h:46
Aws::IoTSiteWise::Model::AssetModelHierarchy::NameHasBeenSet
bool NameHasBeenSet() const
Definition: AssetModelHierarchy.h:107
Aws::IoTSiteWise::Model::AssetModelHierarchy::AssetModelHierarchy
AssetModelHierarchy()
Aws::IoTSiteWise::Model::AssetModelHierarchy::WithChildAssetModelId
AssetModelHierarchy & WithChildAssetModelId(Aws::String &&value)
Definition: AssetModelHierarchy.h:204
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::IoTSiteWise::Model::AssetModelHierarchy::WithId
AssetModelHierarchy & WithId(const Aws::String &value)
Definition: AssetModelHierarchy.h:76
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::IoTSiteWise::Model::AssetModelHierarchy
Definition: AssetModelHierarchy.h:34
Aws::IoTSiteWise::Model::AssetModelHierarchy::WithChildAssetModelId
AssetModelHierarchy & WithChildAssetModelId(const char *value)
Definition: AssetModelHierarchy.h:210
Aws::IoTSiteWise::Model::AssetModelHierarchy::SetId
void SetId(const Aws::String &value)
Definition: AssetModelHierarchy.h:58
Aws::IoTSiteWise::Model::AssetModelHierarchy::WithChildAssetModelId
AssetModelHierarchy & WithChildAssetModelId(const Aws::String &value)
Definition: AssetModelHierarchy.h:198
Aws::IoTSiteWise::Model::AssetModelHierarchy::operator=
AssetModelHierarchy & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::AssetModelHierarchy::WithId
AssetModelHierarchy & WithId(Aws::String &&value)
Definition: AssetModelHierarchy.h:82
Aws::IoTSiteWise::Model::AssetModelHierarchy::SetChildAssetModelId
void SetChildAssetModelId(const char *value)
Definition: AssetModelHierarchy.h:192
Aws
Definition: AccessManagementClient.h:15
Aws::IoTSiteWise::Model::AssetModelHierarchy::SetChildAssetModelId
void SetChildAssetModelId(Aws::String &&value)
Definition: AssetModelHierarchy.h:186
Aws::IoTSiteWise::Model::AssetModelHierarchy::SetName
void SetName(const char *value)
Definition: AssetModelHierarchy.h:134
Aws::IoTSiteWise::Model::AssetModelHierarchy::ChildAssetModelIdHasBeenSet
bool ChildAssetModelIdHasBeenSet() const
Definition: AssetModelHierarchy.h:174
Aws::IoTSiteWise::Model::AssetModelHierarchy::SetChildAssetModelId
void SetChildAssetModelId(const Aws::String &value)
Definition: AssetModelHierarchy.h:180
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTSiteWise::Model::AssetModelHierarchy::SetId
void SetId(const char *value)
Definition: AssetModelHierarchy.h:70
Aws::IoTSiteWise::Model::AssetModelHierarchy::WithId
AssetModelHierarchy & WithId(const char *value)
Definition: AssetModelHierarchy.h:88
Aws::IoTSiteWise::Model::AssetModelHierarchy::AssetModelHierarchy
AssetModelHierarchy(Aws::Utils::Json::JsonView jsonValue)