AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
Node.h
1
6#pragma once
7#include <aws/iotfleetwise/IoTFleetWise_EXPORTS.h>
8#include <aws/iotfleetwise/model/Actuator.h>
9#include <aws/iotfleetwise/model/Attribute.h>
10#include <aws/iotfleetwise/model/Branch.h>
11#include <aws/iotfleetwise/model/CustomProperty.h>
12#include <aws/iotfleetwise/model/CustomStruct.h>
13#include <aws/iotfleetwise/model/Sensor.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace IoTFleetWise {
25namespace Model {
26
33class Node {
34 public:
35 AWS_IOTFLEETWISE_API Node() = default;
36 AWS_IOTFLEETWISE_API Node(Aws::Utils::Json::JsonView jsonValue);
37 AWS_IOTFLEETWISE_API Node& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const Branch& GetBranch() const { return m_branch; }
46 inline bool BranchHasBeenSet() const { return m_branchHasBeenSet; }
47 template <typename BranchT = Branch>
48 void SetBranch(BranchT&& value) {
49 m_branchHasBeenSet = true;
50 m_branch = std::forward<BranchT>(value);
51 }
52 template <typename BranchT = Branch>
53 Node& WithBranch(BranchT&& value) {
54 SetBranch(std::forward<BranchT>(value));
55 return *this;
56 }
58
60
61 inline const Sensor& GetSensor() const { return m_sensor; }
62 inline bool SensorHasBeenSet() const { return m_sensorHasBeenSet; }
63 template <typename SensorT = Sensor>
64 void SetSensor(SensorT&& value) {
65 m_sensorHasBeenSet = true;
66 m_sensor = std::forward<SensorT>(value);
67 }
68 template <typename SensorT = Sensor>
69 Node& WithSensor(SensorT&& value) {
70 SetSensor(std::forward<SensorT>(value));
71 return *this;
72 }
74
76
80 inline const Actuator& GetActuator() const { return m_actuator; }
81 inline bool ActuatorHasBeenSet() const { return m_actuatorHasBeenSet; }
82 template <typename ActuatorT = Actuator>
83 void SetActuator(ActuatorT&& value) {
84 m_actuatorHasBeenSet = true;
85 m_actuator = std::forward<ActuatorT>(value);
86 }
87 template <typename ActuatorT = Actuator>
88 Node& WithActuator(ActuatorT&& value) {
89 SetActuator(std::forward<ActuatorT>(value));
90 return *this;
91 }
93
95
99 inline const Attribute& GetAttribute() const { return m_attribute; }
100 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
101 template <typename AttributeT = Attribute>
102 void SetAttribute(AttributeT&& value) {
103 m_attributeHasBeenSet = true;
104 m_attribute = std::forward<AttributeT>(value);
105 }
106 template <typename AttributeT = Attribute>
107 Node& WithAttribute(AttributeT&& value) {
108 SetAttribute(std::forward<AttributeT>(value));
109 return *this;
110 }
112
114
117 inline const CustomStruct& GetStruct() const { return m_struct; }
118 inline bool StructHasBeenSet() const { return m_structHasBeenSet; }
119 template <typename StructT = CustomStruct>
120 void SetStruct(StructT&& value) {
121 m_structHasBeenSet = true;
122 m_struct = std::forward<StructT>(value);
123 }
124 template <typename StructT = CustomStruct>
125 Node& WithStruct(StructT&& value) {
126 SetStruct(std::forward<StructT>(value));
127 return *this;
128 }
130
132
136 inline const CustomProperty& GetProperty() const { return m_property; }
137 inline bool PropertyHasBeenSet() const { return m_propertyHasBeenSet; }
138 template <typename PropertyT = CustomProperty>
139 void SetProperty(PropertyT&& value) {
140 m_propertyHasBeenSet = true;
141 m_property = std::forward<PropertyT>(value);
142 }
143 template <typename PropertyT = CustomProperty>
144 Node& WithProperty(PropertyT&& value) {
145 SetProperty(std::forward<PropertyT>(value));
146 return *this;
147 }
149 private:
150 Branch m_branch;
151
152 Sensor m_sensor;
153
154 Actuator m_actuator;
155
156 Attribute m_attribute;
157
158 CustomStruct m_struct;
159
160 CustomProperty m_property;
161 bool m_branchHasBeenSet = false;
162 bool m_sensorHasBeenSet = false;
163 bool m_actuatorHasBeenSet = false;
164 bool m_attributeHasBeenSet = false;
165 bool m_structHasBeenSet = false;
166 bool m_propertyHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace IoTFleetWise
171} // namespace Aws
bool PropertyHasBeenSet() const
Definition Node.h:137
bool AttributeHasBeenSet() const
Definition Node.h:100
void SetSensor(SensorT &&value)
Definition Node.h:64
AWS_IOTFLEETWISE_API Node()=default
const Sensor & GetSensor() const
Definition Node.h:61
Node & WithSensor(SensorT &&value)
Definition Node.h:69
const Attribute & GetAttribute() const
Definition Node.h:99
AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const
Node & WithBranch(BranchT &&value)
Definition Node.h:53
bool StructHasBeenSet() const
Definition Node.h:118
Node & WithStruct(StructT &&value)
Definition Node.h:125
Node & WithAttribute(AttributeT &&value)
Definition Node.h:107
void SetProperty(PropertyT &&value)
Definition Node.h:139
void SetStruct(StructT &&value)
Definition Node.h:120
void SetAttribute(AttributeT &&value)
Definition Node.h:102
AWS_IOTFLEETWISE_API Node(Aws::Utils::Json::JsonView jsonValue)
const CustomProperty & GetProperty() const
Definition Node.h:136
const CustomStruct & GetStruct() const
Definition Node.h:117
const Actuator & GetActuator() const
Definition Node.h:80
void SetActuator(ActuatorT &&value)
Definition Node.h:83
AWS_IOTFLEETWISE_API Node & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetBranch(BranchT &&value)
Definition Node.h:48
bool SensorHasBeenSet() const
Definition Node.h:62
bool ActuatorHasBeenSet() const
Definition Node.h:81
Node & WithActuator(ActuatorT &&value)
Definition Node.h:88
Node & WithProperty(PropertyT &&value)
Definition Node.h:144
const Branch & GetBranch() const
Definition Node.h:45
bool BranchHasBeenSet() const
Definition Node.h:46
Aws::Utils::Json::JsonValue JsonValue