AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline CompositeModelProperty& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline CompositeModelProperty& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline CompositeModelProperty& WithName(const char* value) { SetName(value); return *this;}
55
57
60 inline const Aws::String& GetType() const{ return m_type; }
61 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
62 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
63 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
64 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
65 inline CompositeModelProperty& WithType(const Aws::String& value) { SetType(value); return *this;}
66 inline CompositeModelProperty& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
67 inline CompositeModelProperty& WithType(const char* value) { SetType(value); return *this;}
69
71
72 inline const Property& GetAssetProperty() const{ return m_assetProperty; }
73 inline bool AssetPropertyHasBeenSet() const { return m_assetPropertyHasBeenSet; }
74 inline void SetAssetProperty(const Property& value) { m_assetPropertyHasBeenSet = true; m_assetProperty = value; }
75 inline void SetAssetProperty(Property&& value) { m_assetPropertyHasBeenSet = true; m_assetProperty = std::move(value); }
76 inline CompositeModelProperty& WithAssetProperty(const Property& value) { SetAssetProperty(value); return *this;}
77 inline CompositeModelProperty& WithAssetProperty(Property&& value) { SetAssetProperty(std::move(value)); return *this;}
79
81
84 inline const Aws::String& GetId() const{ return m_id; }
85 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
86 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
87 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
88 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
89 inline CompositeModelProperty& WithId(const Aws::String& value) { SetId(value); return *this;}
90 inline CompositeModelProperty& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
91 inline CompositeModelProperty& WithId(const char* value) { SetId(value); return *this;}
93
95
101 inline const Aws::String& GetExternalId() const{ return m_externalId; }
102 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
103 inline void SetExternalId(const Aws::String& value) { m_externalIdHasBeenSet = true; m_externalId = value; }
104 inline void SetExternalId(Aws::String&& value) { m_externalIdHasBeenSet = true; m_externalId = std::move(value); }
105 inline void SetExternalId(const char* value) { m_externalIdHasBeenSet = true; m_externalId.assign(value); }
106 inline CompositeModelProperty& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;}
107 inline CompositeModelProperty& WithExternalId(Aws::String&& value) { SetExternalId(std::move(value)); return *this;}
108 inline CompositeModelProperty& WithExternalId(const char* value) { SetExternalId(value); return *this;}
110 private:
111
112 Aws::String m_name;
113 bool m_nameHasBeenSet = false;
114
115 Aws::String m_type;
116 bool m_typeHasBeenSet = false;
117
118 Property m_assetProperty;
119 bool m_assetPropertyHasBeenSet = false;
120
121 Aws::String m_id;
122 bool m_idHasBeenSet = false;
123
124 Aws::String m_externalId;
125 bool m_externalIdHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace IoTSiteWise
130} // namespace Aws
CompositeModelProperty & WithType(const Aws::String &value)
CompositeModelProperty & WithName(const char *value)
CompositeModelProperty & WithType(const char *value)
CompositeModelProperty & WithAssetProperty(const Property &value)
CompositeModelProperty & WithAssetProperty(Property &&value)
CompositeModelProperty & WithType(Aws::String &&value)
AWS_IOTSITEWISE_API CompositeModelProperty & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
CompositeModelProperty & WithId(const char *value)
AWS_IOTSITEWISE_API CompositeModelProperty(Aws::Utils::Json::JsonView jsonValue)
CompositeModelProperty & WithName(Aws::String &&value)
CompositeModelProperty & WithExternalId(const Aws::String &value)
CompositeModelProperty & WithId(const Aws::String &value)
CompositeModelProperty & WithName(const Aws::String &value)
CompositeModelProperty & WithExternalId(Aws::String &&value)
CompositeModelProperty & WithExternalId(const char *value)
CompositeModelProperty & WithId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue