AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
AssetModelHierarchyDefinition.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 AssetModelHierarchyDefinition() = default;
39 AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
50 inline const Aws::String& GetId() const { return m_id; }
51 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 template<typename IdT = Aws::String>
53 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
54 template<typename IdT = Aws::String>
55 AssetModelHierarchyDefinition& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
57
59
66 inline const Aws::String& GetExternalId() const { return m_externalId; }
67 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
68 template<typename ExternalIdT = Aws::String>
69 void SetExternalId(ExternalIdT&& value) { m_externalIdHasBeenSet = true; m_externalId = std::forward<ExternalIdT>(value); }
70 template<typename ExternalIdT = Aws::String>
71 AssetModelHierarchyDefinition& WithExternalId(ExternalIdT&& value) { SetExternalId(std::forward<ExternalIdT>(value)); return *this;}
73
75
82 inline const Aws::String& GetName() const { return m_name; }
83 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
84 template<typename NameT = Aws::String>
85 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
86 template<typename NameT = Aws::String>
87 AssetModelHierarchyDefinition& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
89
91
98 inline const Aws::String& GetChildAssetModelId() const { return m_childAssetModelId; }
99 inline bool ChildAssetModelIdHasBeenSet() const { return m_childAssetModelIdHasBeenSet; }
100 template<typename ChildAssetModelIdT = Aws::String>
101 void SetChildAssetModelId(ChildAssetModelIdT&& value) { m_childAssetModelIdHasBeenSet = true; m_childAssetModelId = std::forward<ChildAssetModelIdT>(value); }
102 template<typename ChildAssetModelIdT = Aws::String>
103 AssetModelHierarchyDefinition& WithChildAssetModelId(ChildAssetModelIdT&& value) { SetChildAssetModelId(std::forward<ChildAssetModelIdT>(value)); return *this;}
105 private:
106
107 Aws::String m_id;
108 bool m_idHasBeenSet = false;
109
110 Aws::String m_externalId;
111 bool m_externalIdHasBeenSet = false;
112
113 Aws::String m_name;
114 bool m_nameHasBeenSet = false;
115
116 Aws::String m_childAssetModelId;
117 bool m_childAssetModelIdHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace IoTSiteWise
122} // namespace Aws
AWS_IOTSITEWISE_API AssetModelHierarchyDefinition()=default
AWS_IOTSITEWISE_API AssetModelHierarchyDefinition(Aws::Utils::Json::JsonView jsonValue)
AssetModelHierarchyDefinition & WithExternalId(ExternalIdT &&value)
AWS_IOTSITEWISE_API AssetModelHierarchyDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
AssetModelHierarchyDefinition & WithChildAssetModelId(ChildAssetModelIdT &&value)
AssetModelHierarchyDefinition & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue