AWS SDK for C++  1.9.153
AWS SDK for C++
AssetHierarchyInfo.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 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetParentAssetId() const{ return m_parentAssetId; }
45 
49  inline bool ParentAssetIdHasBeenSet() const { return m_parentAssetIdHasBeenSet; }
50 
54  inline void SetParentAssetId(const Aws::String& value) { m_parentAssetIdHasBeenSet = true; m_parentAssetId = value; }
55 
59  inline void SetParentAssetId(Aws::String&& value) { m_parentAssetIdHasBeenSet = true; m_parentAssetId = std::move(value); }
60 
64  inline void SetParentAssetId(const char* value) { m_parentAssetIdHasBeenSet = true; m_parentAssetId.assign(value); }
65 
69  inline AssetHierarchyInfo& WithParentAssetId(const Aws::String& value) { SetParentAssetId(value); return *this;}
70 
74  inline AssetHierarchyInfo& WithParentAssetId(Aws::String&& value) { SetParentAssetId(std::move(value)); return *this;}
75 
79  inline AssetHierarchyInfo& WithParentAssetId(const char* value) { SetParentAssetId(value); return *this;}
80 
81 
85  inline const Aws::String& GetChildAssetId() const{ return m_childAssetId; }
86 
90  inline bool ChildAssetIdHasBeenSet() const { return m_childAssetIdHasBeenSet; }
91 
95  inline void SetChildAssetId(const Aws::String& value) { m_childAssetIdHasBeenSet = true; m_childAssetId = value; }
96 
100  inline void SetChildAssetId(Aws::String&& value) { m_childAssetIdHasBeenSet = true; m_childAssetId = std::move(value); }
101 
105  inline void SetChildAssetId(const char* value) { m_childAssetIdHasBeenSet = true; m_childAssetId.assign(value); }
106 
110  inline AssetHierarchyInfo& WithChildAssetId(const Aws::String& value) { SetChildAssetId(value); return *this;}
111 
115  inline AssetHierarchyInfo& WithChildAssetId(Aws::String&& value) { SetChildAssetId(std::move(value)); return *this;}
116 
120  inline AssetHierarchyInfo& WithChildAssetId(const char* value) { SetChildAssetId(value); return *this;}
121 
122  private:
123 
124  Aws::String m_parentAssetId;
125  bool m_parentAssetIdHasBeenSet;
126 
127  Aws::String m_childAssetId;
128  bool m_childAssetIdHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace IoTSiteWise
133 } // namespace Aws
Aws::IoTSiteWise::Model::AssetHierarchyInfo::WithChildAssetId
AssetHierarchyInfo & WithChildAssetId(Aws::String &&value)
Definition: AssetHierarchyInfo.h:115
Aws::IoTSiteWise::Model::AssetHierarchyInfo::WithParentAssetId
AssetHierarchyInfo & WithParentAssetId(const char *value)
Definition: AssetHierarchyInfo.h:79
Aws::IoTSiteWise::Model::AssetHierarchyInfo
Definition: AssetHierarchyInfo.h:33
Aws::IoTSiteWise::Model::AssetHierarchyInfo::WithChildAssetId
AssetHierarchyInfo & WithChildAssetId(const Aws::String &value)
Definition: AssetHierarchyInfo.h:110
Aws::IoTSiteWise::Model::AssetHierarchyInfo::WithParentAssetId
AssetHierarchyInfo & WithParentAssetId(const Aws::String &value)
Definition: AssetHierarchyInfo.h:69
IoTSiteWise_EXPORTS.h
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::AssetHierarchyInfo::ParentAssetIdHasBeenSet
bool ParentAssetIdHasBeenSet() const
Definition: AssetHierarchyInfo.h:49
Aws::IoTSiteWise::Model::AssetHierarchyInfo::WithParentAssetId
AssetHierarchyInfo & WithParentAssetId(Aws::String &&value)
Definition: AssetHierarchyInfo.h:74
Aws::IoTSiteWise::Model::AssetHierarchyInfo::SetParentAssetId
void SetParentAssetId(const Aws::String &value)
Definition: AssetHierarchyInfo.h:54
Aws::IoTSiteWise::Model::AssetHierarchyInfo::AssetHierarchyInfo
AssetHierarchyInfo()
Aws::IoTSiteWise::Model::AssetHierarchyInfo::AssetHierarchyInfo
AssetHierarchyInfo(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::AssetHierarchyInfo::ChildAssetIdHasBeenSet
bool ChildAssetIdHasBeenSet() const
Definition: AssetHierarchyInfo.h:90
Aws::IoTSiteWise::Model::AssetHierarchyInfo::SetChildAssetId
void SetChildAssetId(const char *value)
Definition: AssetHierarchyInfo.h:105
Aws::IoTSiteWise::Model::AssetHierarchyInfo::SetChildAssetId
void SetChildAssetId(Aws::String &&value)
Definition: AssetHierarchyInfo.h:100
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoTSiteWise::Model::AssetHierarchyInfo::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::IoTSiteWise::Model::AssetHierarchyInfo::SetChildAssetId
void SetChildAssetId(const Aws::String &value)
Definition: AssetHierarchyInfo.h:95
Aws::IoTSiteWise::Model::AssetHierarchyInfo::GetParentAssetId
const Aws::String & GetParentAssetId() const
Definition: AssetHierarchyInfo.h:44
Aws::IoTSiteWise::Model::AssetHierarchyInfo::WithChildAssetId
AssetHierarchyInfo & WithChildAssetId(const char *value)
Definition: AssetHierarchyInfo.h:120
Aws::IoTSiteWise::Model::AssetHierarchyInfo::GetChildAssetId
const Aws::String & GetChildAssetId() const
Definition: AssetHierarchyInfo.h:85
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTSiteWise::Model::AssetHierarchyInfo::operator=
AssetHierarchyInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::AssetHierarchyInfo::SetParentAssetId
void SetParentAssetId(const char *value)
Definition: AssetHierarchyInfo.h:64
Aws::IoTSiteWise::Model::AssetHierarchyInfo::SetParentAssetId
void SetParentAssetId(Aws::String &&value)
Definition: AssetHierarchyInfo.h:59