AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename IdT = Aws::String>
62 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
63 template<typename IdT = Aws::String>
64 AssetModelHierarchy& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
66
68
81 inline const Aws::String& GetExternalId() const { return m_externalId; }
82 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
83 template<typename ExternalIdT = Aws::String>
84 void SetExternalId(ExternalIdT&& value) { m_externalIdHasBeenSet = true; m_externalId = std::forward<ExternalIdT>(value); }
85 template<typename ExternalIdT = Aws::String>
86 AssetModelHierarchy& WithExternalId(ExternalIdT&& value) { SetExternalId(std::forward<ExternalIdT>(value)); return *this;}
88
90
97 inline const Aws::String& GetName() const { return m_name; }
98 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
99 template<typename NameT = Aws::String>
100 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
101 template<typename NameT = Aws::String>
102 AssetModelHierarchy& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
104
106
117 inline const Aws::String& GetChildAssetModelId() const { return m_childAssetModelId; }
118 inline bool ChildAssetModelIdHasBeenSet() const { return m_childAssetModelIdHasBeenSet; }
119 template<typename ChildAssetModelIdT = Aws::String>
120 void SetChildAssetModelId(ChildAssetModelIdT&& value) { m_childAssetModelIdHasBeenSet = true; m_childAssetModelId = std::forward<ChildAssetModelIdT>(value); }
121 template<typename ChildAssetModelIdT = Aws::String>
122 AssetModelHierarchy& WithChildAssetModelId(ChildAssetModelIdT&& value) { SetChildAssetModelId(std::forward<ChildAssetModelIdT>(value)); return *this;}
124 private:
125
126 Aws::String m_id;
127 bool m_idHasBeenSet = false;
128
129 Aws::String m_externalId;
130 bool m_externalIdHasBeenSet = false;
131
132 Aws::String m_name;
133 bool m_nameHasBeenSet = false;
134
135 Aws::String m_childAssetModelId;
136 bool m_childAssetModelIdHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace IoTSiteWise
141} // namespace Aws
AssetModelHierarchy & WithName(NameT &&value)
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
AssetModelHierarchy & WithId(IdT &&value)
AWS_IOTSITEWISE_API AssetModelHierarchy()=default
AWS_IOTSITEWISE_API AssetModelHierarchy(Aws::Utils::Json::JsonView jsonValue)
AssetModelHierarchy & WithChildAssetModelId(ChildAssetModelIdT &&value)
AWS_IOTSITEWISE_API AssetModelHierarchy & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetChildAssetModelId(ChildAssetModelIdT &&value)
AssetModelHierarchy & WithExternalId(ExternalIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue