AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
CompositeModelProperty.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iotsitewise/model/Property.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoTSiteWise
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IOTSITEWISE_API CompositeModelProperty() = default;
37 AWS_IOTSITEWISE_API CompositeModelProperty(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 CompositeModelProperty& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
53
55
58 inline const Aws::String& GetType() const { return m_type; }
59 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
60 template<typename TypeT = Aws::String>
61 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
62 template<typename TypeT = Aws::String>
63 CompositeModelProperty& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
65
67
68 inline const Property& GetAssetProperty() const { return m_assetProperty; }
69 inline bool AssetPropertyHasBeenSet() const { return m_assetPropertyHasBeenSet; }
70 template<typename AssetPropertyT = Property>
71 void SetAssetProperty(AssetPropertyT&& value) { m_assetPropertyHasBeenSet = true; m_assetProperty = std::forward<AssetPropertyT>(value); }
72 template<typename AssetPropertyT = Property>
73 CompositeModelProperty& WithAssetProperty(AssetPropertyT&& value) { SetAssetProperty(std::forward<AssetPropertyT>(value)); return *this;}
75
77
80 inline const Aws::String& GetId() const { return m_id; }
81 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
82 template<typename IdT = Aws::String>
83 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
84 template<typename IdT = Aws::String>
85 CompositeModelProperty& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
87
89
95 inline const Aws::String& GetExternalId() const { return m_externalId; }
96 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
97 template<typename ExternalIdT = Aws::String>
98 void SetExternalId(ExternalIdT&& value) { m_externalIdHasBeenSet = true; m_externalId = std::forward<ExternalIdT>(value); }
99 template<typename ExternalIdT = Aws::String>
100 CompositeModelProperty& WithExternalId(ExternalIdT&& value) { SetExternalId(std::forward<ExternalIdT>(value)); return *this;}
102 private:
103
104 Aws::String m_name;
105 bool m_nameHasBeenSet = false;
106
107 Aws::String m_type;
108 bool m_typeHasBeenSet = false;
109
110 Property m_assetProperty;
111 bool m_assetPropertyHasBeenSet = false;
112
113 Aws::String m_id;
114 bool m_idHasBeenSet = false;
115
116 Aws::String m_externalId;
117 bool m_externalIdHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace IoTSiteWise
122} // namespace Aws
CompositeModelProperty & WithAssetProperty(AssetPropertyT &&value)
CompositeModelProperty & WithName(NameT &&value)
AWS_IOTSITEWISE_API CompositeModelProperty()=default
AWS_IOTSITEWISE_API CompositeModelProperty & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTSITEWISE_API CompositeModelProperty(Aws::Utils::Json::JsonView jsonValue)
CompositeModelProperty & WithType(TypeT &&value)
CompositeModelProperty & WithExternalId(ExternalIdT &&value)
CompositeModelProperty & WithId(IdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue