AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssetModelCompositeModel.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/AssetModelProperty.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:
38 AWS_IOTSITEWISE_API AssetModelCompositeModel();
41 AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetName() const{ return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline AssetModelCompositeModel& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline AssetModelCompositeModel& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline AssetModelCompositeModel& WithName(const char* value) { SetName(value); return *this;}
57
59
62 inline const Aws::String& GetDescription() const{ return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
65 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
66 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
67 inline AssetModelCompositeModel& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
68 inline AssetModelCompositeModel& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
69 inline AssetModelCompositeModel& WithDescription(const char* value) { SetDescription(value); return *this;}
71
73
77 inline const Aws::String& GetType() const{ return m_type; }
78 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
79 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
80 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
81 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
82 inline AssetModelCompositeModel& WithType(const Aws::String& value) { SetType(value); return *this;}
83 inline AssetModelCompositeModel& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
84 inline AssetModelCompositeModel& WithType(const char* value) { SetType(value); return *this;}
86
88
91 inline const Aws::Vector<AssetModelProperty>& GetProperties() const{ return m_properties; }
92 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
93 inline void SetProperties(const Aws::Vector<AssetModelProperty>& value) { m_propertiesHasBeenSet = true; m_properties = value; }
94 inline void SetProperties(Aws::Vector<AssetModelProperty>&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
96 inline AssetModelCompositeModel& WithProperties(Aws::Vector<AssetModelProperty>&& value) { SetProperties(std::move(value)); return *this;}
97 inline AssetModelCompositeModel& AddProperties(const AssetModelProperty& value) { m_propertiesHasBeenSet = true; m_properties.push_back(value); return *this; }
98 inline AssetModelCompositeModel& AddProperties(AssetModelProperty&& value) { m_propertiesHasBeenSet = true; m_properties.push_back(std::move(value)); return *this; }
100
102
105 inline const Aws::String& GetId() const{ return m_id; }
106 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
107 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
108 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
109 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
110 inline AssetModelCompositeModel& WithId(const Aws::String& value) { SetId(value); return *this;}
111 inline AssetModelCompositeModel& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
112 inline AssetModelCompositeModel& WithId(const char* value) { SetId(value); return *this;}
114
116
122 inline const Aws::String& GetExternalId() const{ return m_externalId; }
123 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
124 inline void SetExternalId(const Aws::String& value) { m_externalIdHasBeenSet = true; m_externalId = value; }
125 inline void SetExternalId(Aws::String&& value) { m_externalIdHasBeenSet = true; m_externalId = std::move(value); }
126 inline void SetExternalId(const char* value) { m_externalIdHasBeenSet = true; m_externalId.assign(value); }
127 inline AssetModelCompositeModel& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;}
128 inline AssetModelCompositeModel& WithExternalId(Aws::String&& value) { SetExternalId(std::move(value)); return *this;}
129 inline AssetModelCompositeModel& WithExternalId(const char* value) { SetExternalId(value); return *this;}
131 private:
132
133 Aws::String m_name;
134 bool m_nameHasBeenSet = false;
135
136 Aws::String m_description;
137 bool m_descriptionHasBeenSet = false;
138
139 Aws::String m_type;
140 bool m_typeHasBeenSet = false;
141
143 bool m_propertiesHasBeenSet = false;
144
145 Aws::String m_id;
146 bool m_idHasBeenSet = false;
147
148 Aws::String m_externalId;
149 bool m_externalIdHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace IoTSiteWise
154} // namespace Aws
AssetModelCompositeModel & WithExternalId(Aws::String &&value)
AssetModelCompositeModel & AddProperties(AssetModelProperty &&value)
void SetProperties(Aws::Vector< AssetModelProperty > &&value)
AssetModelCompositeModel & WithExternalId(const char *value)
AssetModelCompositeModel & WithType(const char *value)
AssetModelCompositeModel & WithId(const Aws::String &value)
AssetModelCompositeModel & WithName(const char *value)
AssetModelCompositeModel & WithDescription(const Aws::String &value)
AssetModelCompositeModel & WithId(const char *value)
AssetModelCompositeModel & WithProperties(const Aws::Vector< AssetModelProperty > &value)
AWS_IOTSITEWISE_API AssetModelCompositeModel & operator=(Aws::Utils::Json::JsonView jsonValue)
AssetModelCompositeModel & AddProperties(const AssetModelProperty &value)
AssetModelCompositeModel & WithType(const Aws::String &value)
AssetModelCompositeModel & WithType(Aws::String &&value)
AssetModelCompositeModel & WithName(const Aws::String &value)
AssetModelCompositeModel & WithProperties(Aws::Vector< AssetModelProperty > &&value)
const Aws::Vector< AssetModelProperty > & GetProperties() const
AWS_IOTSITEWISE_API AssetModelCompositeModel(Aws::Utils::Json::JsonView jsonValue)
void SetProperties(const Aws::Vector< AssetModelProperty > &value)
AssetModelCompositeModel & WithExternalId(const Aws::String &value)
AssetModelCompositeModel & WithId(Aws::String &&value)
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
AssetModelCompositeModel & WithName(Aws::String &&value)
AssetModelCompositeModel & WithDescription(Aws::String &&value)
AssetModelCompositeModel & WithDescription(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