AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssetModelCompositeModelDefinition.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/iotsitewise/model/AssetModelPropertyDefinition.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace IoTSiteWise
24{
25namespace Model
26{
27
36 {
37 public:
41 AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
52 inline const Aws::String& GetId() const{ return m_id; }
53 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
54 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
55 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
56 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
57 inline AssetModelCompositeModelDefinition& WithId(const Aws::String& value) { SetId(value); return *this;}
58 inline AssetModelCompositeModelDefinition& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
59 inline AssetModelCompositeModelDefinition& WithId(const char* value) { SetId(value); return *this;}
61
63
70 inline const Aws::String& GetExternalId() const{ return m_externalId; }
71 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
72 inline void SetExternalId(const Aws::String& value) { m_externalIdHasBeenSet = true; m_externalId = value; }
73 inline void SetExternalId(Aws::String&& value) { m_externalIdHasBeenSet = true; m_externalId = std::move(value); }
74 inline void SetExternalId(const char* value) { m_externalIdHasBeenSet = true; m_externalId.assign(value); }
75 inline AssetModelCompositeModelDefinition& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;}
76 inline AssetModelCompositeModelDefinition& WithExternalId(Aws::String&& value) { SetExternalId(std::move(value)); return *this;}
77 inline AssetModelCompositeModelDefinition& WithExternalId(const char* value) { SetExternalId(value); return *this;}
79
81
84 inline const Aws::String& GetName() const{ return m_name; }
85 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
86 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
87 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
88 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
89 inline AssetModelCompositeModelDefinition& WithName(const Aws::String& value) { SetName(value); return *this;}
90 inline AssetModelCompositeModelDefinition& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
91 inline AssetModelCompositeModelDefinition& WithName(const char* value) { SetName(value); return *this;}
93
95
98 inline const Aws::String& GetDescription() const{ return m_description; }
99 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
100 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
101 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
102 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
104 inline AssetModelCompositeModelDefinition& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
105 inline AssetModelCompositeModelDefinition& WithDescription(const char* value) { SetDescription(value); return *this;}
107
109
113 inline const Aws::String& GetType() const{ return m_type; }
114 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
115 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
116 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
117 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
118 inline AssetModelCompositeModelDefinition& WithType(const Aws::String& value) { SetType(value); return *this;}
119 inline AssetModelCompositeModelDefinition& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
120 inline AssetModelCompositeModelDefinition& WithType(const char* value) { SetType(value); return *this;}
122
124
127 inline const Aws::Vector<AssetModelPropertyDefinition>& GetProperties() const{ return m_properties; }
128 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
129 inline void SetProperties(const Aws::Vector<AssetModelPropertyDefinition>& value) { m_propertiesHasBeenSet = true; m_properties = value; }
130 inline void SetProperties(Aws::Vector<AssetModelPropertyDefinition>&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
133 inline AssetModelCompositeModelDefinition& AddProperties(const AssetModelPropertyDefinition& value) { m_propertiesHasBeenSet = true; m_properties.push_back(value); return *this; }
134 inline AssetModelCompositeModelDefinition& AddProperties(AssetModelPropertyDefinition&& value) { m_propertiesHasBeenSet = true; m_properties.push_back(std::move(value)); return *this; }
136 private:
137
138 Aws::String m_id;
139 bool m_idHasBeenSet = false;
140
141 Aws::String m_externalId;
142 bool m_externalIdHasBeenSet = false;
143
144 Aws::String m_name;
145 bool m_nameHasBeenSet = false;
146
147 Aws::String m_description;
148 bool m_descriptionHasBeenSet = false;
149
150 Aws::String m_type;
151 bool m_typeHasBeenSet = false;
152
154 bool m_propertiesHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace IoTSiteWise
159} // namespace Aws
AssetModelCompositeModelDefinition & WithProperties(const Aws::Vector< AssetModelPropertyDefinition > &value)
AssetModelCompositeModelDefinition & WithName(Aws::String &&value)
AssetModelCompositeModelDefinition & WithProperties(Aws::Vector< AssetModelPropertyDefinition > &&value)
void SetProperties(Aws::Vector< AssetModelPropertyDefinition > &&value)
AssetModelCompositeModelDefinition & WithExternalId(const Aws::String &value)
const Aws::Vector< AssetModelPropertyDefinition > & GetProperties() const
AssetModelCompositeModelDefinition & WithId(const Aws::String &value)
AWS_IOTSITEWISE_API AssetModelCompositeModelDefinition(Aws::Utils::Json::JsonView jsonValue)
AssetModelCompositeModelDefinition & WithDescription(const char *value)
AssetModelCompositeModelDefinition & WithDescription(Aws::String &&value)
AssetModelCompositeModelDefinition & WithExternalId(const char *value)
AssetModelCompositeModelDefinition & WithDescription(const Aws::String &value)
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
AssetModelCompositeModelDefinition & WithExternalId(Aws::String &&value)
void SetProperties(const Aws::Vector< AssetModelPropertyDefinition > &value)
AssetModelCompositeModelDefinition & WithType(const Aws::String &value)
AssetModelCompositeModelDefinition & AddProperties(const AssetModelPropertyDefinition &value)
AssetModelCompositeModelDefinition & WithName(const Aws::String &value)
AssetModelCompositeModelDefinition & WithId(const char *value)
AssetModelCompositeModelDefinition & AddProperties(AssetModelPropertyDefinition &&value)
AWS_IOTSITEWISE_API AssetModelCompositeModelDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
AssetModelCompositeModelDefinition & WithName(const char *value)
AssetModelCompositeModelDefinition & WithId(Aws::String &&value)
AssetModelCompositeModelDefinition & WithType(Aws::String &&value)
AssetModelCompositeModelDefinition & WithType(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue