AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssetModelHierarchy.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoTSiteWise
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_IOTSITEWISE_API AssetModelHierarchy();
37 AWS_IOTSITEWISE_API AssetModelHierarchy(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
59 inline const Aws::String& GetId() const{ return m_id; }
60 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
61 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
62 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
63 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
64 inline AssetModelHierarchy& WithId(const Aws::String& value) { SetId(value); return *this;}
65 inline AssetModelHierarchy& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
66 inline AssetModelHierarchy& WithId(const char* value) { SetId(value); return *this;}
68
70
83 inline const Aws::String& GetExternalId() const{ return m_externalId; }
84 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
85 inline void SetExternalId(const Aws::String& value) { m_externalIdHasBeenSet = true; m_externalId = value; }
86 inline void SetExternalId(Aws::String&& value) { m_externalIdHasBeenSet = true; m_externalId = std::move(value); }
87 inline void SetExternalId(const char* value) { m_externalIdHasBeenSet = true; m_externalId.assign(value); }
88 inline AssetModelHierarchy& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;}
89 inline AssetModelHierarchy& WithExternalId(Aws::String&& value) { SetExternalId(std::move(value)); return *this;}
90 inline AssetModelHierarchy& WithExternalId(const char* value) { SetExternalId(value); return *this;}
92
94
101 inline const Aws::String& GetName() const{ return m_name; }
102 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
103 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
104 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
105 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
106 inline AssetModelHierarchy& WithName(const Aws::String& value) { SetName(value); return *this;}
107 inline AssetModelHierarchy& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
108 inline AssetModelHierarchy& WithName(const char* value) { SetName(value); return *this;}
110
112
123 inline const Aws::String& GetChildAssetModelId() const{ return m_childAssetModelId; }
124 inline bool ChildAssetModelIdHasBeenSet() const { return m_childAssetModelIdHasBeenSet; }
125 inline void SetChildAssetModelId(const Aws::String& value) { m_childAssetModelIdHasBeenSet = true; m_childAssetModelId = value; }
126 inline void SetChildAssetModelId(Aws::String&& value) { m_childAssetModelIdHasBeenSet = true; m_childAssetModelId = std::move(value); }
127 inline void SetChildAssetModelId(const char* value) { m_childAssetModelIdHasBeenSet = true; m_childAssetModelId.assign(value); }
128 inline AssetModelHierarchy& WithChildAssetModelId(const Aws::String& value) { SetChildAssetModelId(value); return *this;}
129 inline AssetModelHierarchy& WithChildAssetModelId(Aws::String&& value) { SetChildAssetModelId(std::move(value)); return *this;}
130 inline AssetModelHierarchy& WithChildAssetModelId(const char* value) { SetChildAssetModelId(value); return *this;}
132 private:
133
134 Aws::String m_id;
135 bool m_idHasBeenSet = false;
136
137 Aws::String m_externalId;
138 bool m_externalIdHasBeenSet = false;
139
140 Aws::String m_name;
141 bool m_nameHasBeenSet = false;
142
143 Aws::String m_childAssetModelId;
144 bool m_childAssetModelIdHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace IoTSiteWise
149} // namespace Aws
void SetChildAssetModelId(const Aws::String &value)
AssetModelHierarchy & WithId(const Aws::String &value)
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
AssetModelHierarchy & WithName(const char *value)
AssetModelHierarchy & WithId(const char *value)
AWS_IOTSITEWISE_API AssetModelHierarchy(Aws::Utils::Json::JsonView jsonValue)
AssetModelHierarchy & WithChildAssetModelId(const Aws::String &value)
AssetModelHierarchy & WithExternalId(const Aws::String &value)
AssetModelHierarchy & WithExternalId(const char *value)
AWS_IOTSITEWISE_API AssetModelHierarchy & operator=(Aws::Utils::Json::JsonView jsonValue)
AssetModelHierarchy & WithName(const Aws::String &value)
AssetModelHierarchy & WithExternalId(Aws::String &&value)
AssetModelHierarchy & WithChildAssetModelId(Aws::String &&value)
AssetModelHierarchy & WithName(Aws::String &&value)
AssetModelHierarchy & WithId(Aws::String &&value)
AssetModelHierarchy & WithChildAssetModelId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue