AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssetCompositeModel.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/AssetProperty.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 AssetCompositeModel();
39 AWS_IOTSITEWISE_API AssetCompositeModel(Aws::Utils::Json::JsonView jsonValue);
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 AssetCompositeModel& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline AssetCompositeModel& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline AssetCompositeModel& 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 AssetCompositeModel& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
68 inline AssetCompositeModel& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
69 inline AssetCompositeModel& 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 AssetCompositeModel& WithType(const Aws::String& value) { SetType(value); return *this;}
83 inline AssetCompositeModel& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
84 inline AssetCompositeModel& WithType(const char* value) { SetType(value); return *this;}
86
88
91 inline const Aws::Vector<AssetProperty>& GetProperties() const{ return m_properties; }
92 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
93 inline void SetProperties(const Aws::Vector<AssetProperty>& value) { m_propertiesHasBeenSet = true; m_properties = value; }
94 inline void SetProperties(Aws::Vector<AssetProperty>&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
95 inline AssetCompositeModel& WithProperties(const Aws::Vector<AssetProperty>& value) { SetProperties(value); return *this;}
96 inline AssetCompositeModel& WithProperties(Aws::Vector<AssetProperty>&& value) { SetProperties(std::move(value)); return *this;}
97 inline AssetCompositeModel& AddProperties(const AssetProperty& value) { m_propertiesHasBeenSet = true; m_properties.push_back(value); return *this; }
98 inline AssetCompositeModel& AddProperties(AssetProperty&& 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 AssetCompositeModel& WithId(const Aws::String& value) { SetId(value); return *this;}
111 inline AssetCompositeModel& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
112 inline AssetCompositeModel& WithId(const char* value) { SetId(value); return *this;}
114
116
121 inline const Aws::String& GetExternalId() const{ return m_externalId; }
122 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
123 inline void SetExternalId(const Aws::String& value) { m_externalIdHasBeenSet = true; m_externalId = value; }
124 inline void SetExternalId(Aws::String&& value) { m_externalIdHasBeenSet = true; m_externalId = std::move(value); }
125 inline void SetExternalId(const char* value) { m_externalIdHasBeenSet = true; m_externalId.assign(value); }
126 inline AssetCompositeModel& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;}
127 inline AssetCompositeModel& WithExternalId(Aws::String&& value) { SetExternalId(std::move(value)); return *this;}
128 inline AssetCompositeModel& WithExternalId(const char* value) { SetExternalId(value); return *this;}
130 private:
131
132 Aws::String m_name;
133 bool m_nameHasBeenSet = false;
134
135 Aws::String m_description;
136 bool m_descriptionHasBeenSet = false;
137
138 Aws::String m_type;
139 bool m_typeHasBeenSet = false;
140
141 Aws::Vector<AssetProperty> m_properties;
142 bool m_propertiesHasBeenSet = false;
143
144 Aws::String m_id;
145 bool m_idHasBeenSet = false;
146
147 Aws::String m_externalId;
148 bool m_externalIdHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace IoTSiteWise
153} // namespace Aws
void SetDescription(const Aws::String &value)
AssetCompositeModel & WithType(Aws::String &&value)
AssetCompositeModel & WithType(const Aws::String &value)
AWS_IOTSITEWISE_API AssetCompositeModel & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetProperties(Aws::Vector< AssetProperty > &&value)
const Aws::Vector< AssetProperty > & GetProperties() const
AssetCompositeModel & WithDescription(const char *value)
AssetCompositeModel & WithExternalId(const Aws::String &value)
AssetCompositeModel & WithName(const char *value)
AssetCompositeModel & WithName(const Aws::String &value)
AssetCompositeModel & WithId(const char *value)
AssetCompositeModel & WithId(const Aws::String &value)
AssetCompositeModel & WithProperties(Aws::Vector< AssetProperty > &&value)
AssetCompositeModel & AddProperties(const AssetProperty &value)
AssetCompositeModel & WithId(Aws::String &&value)
AssetCompositeModel & WithProperties(const Aws::Vector< AssetProperty > &value)
void SetProperties(const Aws::Vector< AssetProperty > &value)
AssetCompositeModel & WithType(const char *value)
AssetCompositeModel & WithName(Aws::String &&value)
AssetCompositeModel & WithDescription(const Aws::String &value)
AssetCompositeModel & WithExternalId(const char *value)
AssetCompositeModel & WithExternalId(Aws::String &&value)
AssetCompositeModel & AddProperties(AssetProperty &&value)
AssetCompositeModel & WithDescription(Aws::String &&value)
AWS_IOTSITEWISE_API AssetCompositeModel(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue