AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 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 AssetCompositeModel& 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 AssetCompositeModel& 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 AssetCompositeModel& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
80
82
85 inline const Aws::Vector<AssetProperty>& GetProperties() const { return m_properties; }
86 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
87 template<typename PropertiesT = Aws::Vector<AssetProperty>>
88 void SetProperties(PropertiesT&& value) { m_propertiesHasBeenSet = true; m_properties = std::forward<PropertiesT>(value); }
89 template<typename PropertiesT = Aws::Vector<AssetProperty>>
90 AssetCompositeModel& WithProperties(PropertiesT&& value) { SetProperties(std::forward<PropertiesT>(value)); return *this;}
91 template<typename PropertiesT = AssetProperty>
92 AssetCompositeModel& 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 AssetCompositeModel& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
106
108
113 inline const Aws::String& GetExternalId() const { return m_externalId; }
114 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
115 template<typename ExternalIdT = Aws::String>
116 void SetExternalId(ExternalIdT&& value) { m_externalIdHasBeenSet = true; m_externalId = std::forward<ExternalIdT>(value); }
117 template<typename ExternalIdT = Aws::String>
118 AssetCompositeModel& WithExternalId(ExternalIdT&& value) { SetExternalId(std::forward<ExternalIdT>(value)); return *this;}
120 private:
121
122 Aws::String m_name;
123 bool m_nameHasBeenSet = false;
124
125 Aws::String m_description;
126 bool m_descriptionHasBeenSet = false;
127
128 Aws::String m_type;
129 bool m_typeHasBeenSet = false;
130
131 Aws::Vector<AssetProperty> m_properties;
132 bool m_propertiesHasBeenSet = false;
133
134 Aws::String m_id;
135 bool m_idHasBeenSet = false;
136
137 Aws::String m_externalId;
138 bool m_externalIdHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace IoTSiteWise
143} // namespace Aws
AWS_IOTSITEWISE_API AssetCompositeModel()=default
AssetCompositeModel & WithName(NameT &&value)
AssetCompositeModel & WithId(IdT &&value)
AWS_IOTSITEWISE_API AssetCompositeModel & operator=(Aws::Utils::Json::JsonView jsonValue)
AssetCompositeModel & WithType(TypeT &&value)
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
AssetCompositeModel & AddProperties(PropertiesT &&value)
const Aws::Vector< AssetProperty > & GetProperties() const
AssetCompositeModel & WithExternalId(ExternalIdT &&value)
AWS_IOTSITEWISE_API AssetCompositeModel(Aws::Utils::Json::JsonView jsonValue)
AssetCompositeModel & WithProperties(PropertiesT &&value)
AssetCompositeModel & WithDescription(DescriptionT &&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