AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Node.h
1
6#pragma once
7#include <aws/iotfleetwise/IoTFleetWise_EXPORTS.h>
8#include <aws/iotfleetwise/model/Branch.h>
9#include <aws/iotfleetwise/model/Sensor.h>
10#include <aws/iotfleetwise/model/Actuator.h>
11#include <aws/iotfleetwise/model/Attribute.h>
12#include <aws/iotfleetwise/model/CustomStruct.h>
13#include <aws/iotfleetwise/model/CustomProperty.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace IoTFleetWise
27{
28namespace Model
29{
30
37 class Node
38 {
39 public:
40 AWS_IOTFLEETWISE_API Node() = default;
41 AWS_IOTFLEETWISE_API Node(Aws::Utils::Json::JsonView jsonValue);
42 AWS_IOTFLEETWISE_API Node& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Branch& GetBranch() const { return m_branch; }
52 inline bool BranchHasBeenSet() const { return m_branchHasBeenSet; }
53 template<typename BranchT = Branch>
54 void SetBranch(BranchT&& value) { m_branchHasBeenSet = true; m_branch = std::forward<BranchT>(value); }
55 template<typename BranchT = Branch>
56 Node& WithBranch(BranchT&& value) { SetBranch(std::forward<BranchT>(value)); return *this;}
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) { m_sensorHasBeenSet = true; m_sensor = std::forward<SensorT>(value); }
65 template<typename SensorT = Sensor>
66 Node& WithSensor(SensorT&& value) { SetSensor(std::forward<SensorT>(value)); return *this;}
68
70
74 inline const Actuator& GetActuator() const { return m_actuator; }
75 inline bool ActuatorHasBeenSet() const { return m_actuatorHasBeenSet; }
76 template<typename ActuatorT = Actuator>
77 void SetActuator(ActuatorT&& value) { m_actuatorHasBeenSet = true; m_actuator = std::forward<ActuatorT>(value); }
78 template<typename ActuatorT = Actuator>
79 Node& WithActuator(ActuatorT&& value) { SetActuator(std::forward<ActuatorT>(value)); return *this;}
81
83
87 inline const Attribute& GetAttribute() const { return m_attribute; }
88 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
89 template<typename AttributeT = Attribute>
90 void SetAttribute(AttributeT&& value) { m_attributeHasBeenSet = true; m_attribute = std::forward<AttributeT>(value); }
91 template<typename AttributeT = Attribute>
92 Node& WithAttribute(AttributeT&& value) { SetAttribute(std::forward<AttributeT>(value)); return *this;}
94
96
99 inline const CustomStruct& GetStruct() const { return m_struct; }
100 inline bool StructHasBeenSet() const { return m_structHasBeenSet; }
101 template<typename StructT = CustomStruct>
102 void SetStruct(StructT&& value) { m_structHasBeenSet = true; m_struct = std::forward<StructT>(value); }
103 template<typename StructT = CustomStruct>
104 Node& WithStruct(StructT&& value) { SetStruct(std::forward<StructT>(value)); return *this;}
106
108
112 inline const CustomProperty& GetProperty() const { return m_property; }
113 inline bool PropertyHasBeenSet() const { return m_propertyHasBeenSet; }
114 template<typename PropertyT = CustomProperty>
115 void SetProperty(PropertyT&& value) { m_propertyHasBeenSet = true; m_property = std::forward<PropertyT>(value); }
116 template<typename PropertyT = CustomProperty>
117 Node& WithProperty(PropertyT&& value) { SetProperty(std::forward<PropertyT>(value)); return *this;}
119 private:
120
121 Branch m_branch;
122 bool m_branchHasBeenSet = false;
123
124 Sensor m_sensor;
125 bool m_sensorHasBeenSet = false;
126
127 Actuator m_actuator;
128 bool m_actuatorHasBeenSet = false;
129
130 Attribute m_attribute;
131 bool m_attributeHasBeenSet = false;
132
133 CustomStruct m_struct;
134 bool m_structHasBeenSet = false;
135
136 CustomProperty m_property;
137 bool m_propertyHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace IoTFleetWise
142} // namespace Aws
bool PropertyHasBeenSet() const
Definition Node.h:113
bool AttributeHasBeenSet() const
Definition Node.h:88
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:66
const Attribute & GetAttribute() const
Definition Node.h:87
AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const
Node & WithBranch(BranchT &&value)
Definition Node.h:56
bool StructHasBeenSet() const
Definition Node.h:100
Node & WithStruct(StructT &&value)
Definition Node.h:104
Node & WithAttribute(AttributeT &&value)
Definition Node.h:92
void SetProperty(PropertyT &&value)
Definition Node.h:115
void SetStruct(StructT &&value)
Definition Node.h:102
void SetAttribute(AttributeT &&value)
Definition Node.h:90
AWS_IOTFLEETWISE_API Node(Aws::Utils::Json::JsonView jsonValue)
const CustomProperty & GetProperty() const
Definition Node.h:112
const CustomStruct & GetStruct() const
Definition Node.h:99
const Actuator & GetActuator() const
Definition Node.h:74
void SetActuator(ActuatorT &&value)
Definition Node.h:77
AWS_IOTFLEETWISE_API Node & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetBranch(BranchT &&value)
Definition Node.h:54
bool SensorHasBeenSet() const
Definition Node.h:62
bool ActuatorHasBeenSet() const
Definition Node.h:75
Node & WithActuator(ActuatorT &&value)
Definition Node.h:79
Node & WithProperty(PropertyT &&value)
Definition Node.h:117
const Branch & GetBranch() const
Definition Node.h:51
bool BranchHasBeenSet() const
Definition Node.h:52
Aws::Utils::Json::JsonValue JsonValue