AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 AssetModelCompositeModel& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
55
57
60 inline const Aws::String& GetDescription() const { return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 template<typename DescriptionT = Aws::String>
63 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
64 template<typename DescriptionT = Aws::String>
65 AssetModelCompositeModel& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
67
69
73 inline const Aws::String& GetType() const { return m_type; }
74 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
75 template<typename TypeT = Aws::String>
76 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
77 template<typename TypeT = Aws::String>
78 AssetModelCompositeModel& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
80
82
85 inline const Aws::Vector<AssetModelProperty>& GetProperties() const { return m_properties; }
86 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
87 template<typename PropertiesT = Aws::Vector<AssetModelProperty>>
88 void SetProperties(PropertiesT&& value) { m_propertiesHasBeenSet = true; m_properties = std::forward<PropertiesT>(value); }
89 template<typename PropertiesT = Aws::Vector<AssetModelProperty>>
90 AssetModelCompositeModel& WithProperties(PropertiesT&& value) { SetProperties(std::forward<PropertiesT>(value)); return *this;}
91 template<typename PropertiesT = AssetModelProperty>
92 AssetModelCompositeModel& AddProperties(PropertiesT&& value) { m_propertiesHasBeenSet = true; m_properties.emplace_back(std::forward<PropertiesT>(value)); return *this; }
94
96
99 inline const Aws::String& GetId() const { return m_id; }
100 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
101 template<typename IdT = Aws::String>
102 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
103 template<typename IdT = Aws::String>
104 AssetModelCompositeModel& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
106
108
114 inline const Aws::String& GetExternalId() const { return m_externalId; }
115 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
116 template<typename ExternalIdT = Aws::String>
117 void SetExternalId(ExternalIdT&& value) { m_externalIdHasBeenSet = true; m_externalId = std::forward<ExternalIdT>(value); }
118 template<typename ExternalIdT = Aws::String>
119 AssetModelCompositeModel& WithExternalId(ExternalIdT&& value) { SetExternalId(std::forward<ExternalIdT>(value)); return *this;}
121 private:
122
123 Aws::String m_name;
124 bool m_nameHasBeenSet = false;
125
126 Aws::String m_description;
127 bool m_descriptionHasBeenSet = false;
128
129 Aws::String m_type;
130 bool m_typeHasBeenSet = false;
131
133 bool m_propertiesHasBeenSet = false;
134
135 Aws::String m_id;
136 bool m_idHasBeenSet = false;
137
138 Aws::String m_externalId;
139 bool m_externalIdHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace IoTSiteWise
144} // namespace Aws
AssetModelCompositeModel & AddProperties(PropertiesT &&value)
AWS_IOTSITEWISE_API AssetModelCompositeModel & operator=(Aws::Utils::Json::JsonView jsonValue)
AssetModelCompositeModel & WithDescription(DescriptionT &&value)
const Aws::Vector< AssetModelProperty > & GetProperties() const
AWS_IOTSITEWISE_API AssetModelCompositeModel(Aws::Utils::Json::JsonView jsonValue)
AssetModelCompositeModel & WithExternalId(ExternalIdT &&value)
AssetModelCompositeModel & WithType(TypeT &&value)
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
AssetModelCompositeModel & WithProperties(PropertiesT &&value)
AWS_IOTSITEWISE_API AssetModelCompositeModel()=default
AssetModelCompositeModel & WithName(NameT &&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