AWS SDK for C++  1.9.161
AWS SDK for C++
AssetHierarchy.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& GetId() const{ return m_id; }
45 
49  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 
54  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
55 
59  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
60 
64  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
65 
69  inline AssetHierarchy& WithId(const Aws::String& value) { SetId(value); return *this;}
70 
74  inline AssetHierarchy& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
75 
79  inline AssetHierarchy& WithId(const char* value) { SetId(value); return *this;}
80 
81 
89  inline const Aws::String& GetName() const{ return m_name; }
90 
98  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
99 
107  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
108 
116  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
117 
125  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
126 
134  inline AssetHierarchy& WithName(const Aws::String& value) { SetName(value); return *this;}
135 
143  inline AssetHierarchy& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
144 
152  inline AssetHierarchy& WithName(const char* value) { SetName(value); return *this;}
153 
154  private:
155 
156  Aws::String m_id;
157  bool m_idHasBeenSet;
158 
159  Aws::String m_name;
160  bool m_nameHasBeenSet;
161  };
162 
163 } // namespace Model
164 } // namespace IoTSiteWise
165 } // namespace Aws
Aws::IoTSiteWise::Model::AssetHierarchy::SetId
void SetId(const Aws::String &value)
Definition: AssetHierarchy.h:54
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::AssetHierarchy::SetId
void SetId(Aws::String &&value)
Definition: AssetHierarchy.h:59
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::AssetHierarchy::SetName
void SetName(Aws::String &&value)
Definition: AssetHierarchy.h:116
Aws::IoTSiteWise::Model::AssetHierarchy::WithId
AssetHierarchy & WithId(const char *value)
Definition: AssetHierarchy.h:79
Aws::IoTSiteWise::Model::AssetHierarchy::GetId
const Aws::String & GetId() const
Definition: AssetHierarchy.h:44
Aws::IoTSiteWise::Model::AssetHierarchy::operator=
AssetHierarchy & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::AssetHierarchy::GetName
const Aws::String & GetName() const
Definition: AssetHierarchy.h:89
Aws::IoTSiteWise::Model::AssetHierarchy::SetId
void SetId(const char *value)
Definition: AssetHierarchy.h:64
Aws::IoTSiteWise::Model::AssetHierarchy::NameHasBeenSet
bool NameHasBeenSet() const
Definition: AssetHierarchy.h:98
Aws::IoTSiteWise::Model::AssetHierarchy::WithName
AssetHierarchy & WithName(const Aws::String &value)
Definition: AssetHierarchy.h:134
Aws::IoTSiteWise::Model::AssetHierarchy::SetName
void SetName(const char *value)
Definition: AssetHierarchy.h:125
Aws::IoTSiteWise::Model::AssetHierarchy::WithName
AssetHierarchy & WithName(Aws::String &&value)
Definition: AssetHierarchy.h:143
Aws::IoTSiteWise::Model::AssetHierarchy::WithId
AssetHierarchy & WithId(const Aws::String &value)
Definition: AssetHierarchy.h:69
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoTSiteWise::Model::AssetHierarchy::IdHasBeenSet
bool IdHasBeenSet() const
Definition: AssetHierarchy.h:49
Aws::IoTSiteWise::Model::AssetHierarchy::WithName
AssetHierarchy & WithName(const char *value)
Definition: AssetHierarchy.h:152
Aws::IoTSiteWise::Model::AssetHierarchy::SetName
void SetName(const Aws::String &value)
Definition: AssetHierarchy.h:107
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::IoTSiteWise::Model::AssetHierarchy
Definition: AssetHierarchy.h:33
Aws::IoTSiteWise::Model::AssetHierarchy::AssetHierarchy
AssetHierarchy(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTSiteWise::Model::AssetHierarchy::WithId
AssetHierarchy & WithId(Aws::String &&value)
Definition: AssetHierarchy.h:74
Aws::IoTSiteWise::Model::AssetHierarchy::AssetHierarchy
AssetHierarchy()
Aws::IoTSiteWise::Model::AssetHierarchy::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const