AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetBranch(const Branch& value) { m_branchHasBeenSet = true; m_branch = value; }
54 inline void SetBranch(Branch&& value) { m_branchHasBeenSet = true; m_branch = std::move(value); }
55 inline Node& WithBranch(const Branch& value) { SetBranch(value); return *this;}
56 inline Node& WithBranch(Branch&& value) { SetBranch(std::move(value)); return *this;}
58
60
61 inline const Sensor& GetSensor() const{ return m_sensor; }
62 inline bool SensorHasBeenSet() const { return m_sensorHasBeenSet; }
63 inline void SetSensor(const Sensor& value) { m_sensorHasBeenSet = true; m_sensor = value; }
64 inline void SetSensor(Sensor&& value) { m_sensorHasBeenSet = true; m_sensor = std::move(value); }
65 inline Node& WithSensor(const Sensor& value) { SetSensor(value); return *this;}
66 inline Node& WithSensor(Sensor&& value) { SetSensor(std::move(value)); return *this;}
68
70
74 inline const Actuator& GetActuator() const{ return m_actuator; }
75 inline bool ActuatorHasBeenSet() const { return m_actuatorHasBeenSet; }
76 inline void SetActuator(const Actuator& value) { m_actuatorHasBeenSet = true; m_actuator = value; }
77 inline void SetActuator(Actuator&& value) { m_actuatorHasBeenSet = true; m_actuator = std::move(value); }
78 inline Node& WithActuator(const Actuator& value) { SetActuator(value); return *this;}
79 inline Node& WithActuator(Actuator&& value) { SetActuator(std::move(value)); return *this;}
81
83
87 inline const Attribute& GetAttribute() const{ return m_attribute; }
88 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
89 inline void SetAttribute(const Attribute& value) { m_attributeHasBeenSet = true; m_attribute = value; }
90 inline void SetAttribute(Attribute&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); }
91 inline Node& WithAttribute(const Attribute& value) { SetAttribute(value); return *this;}
92 inline Node& WithAttribute(Attribute&& value) { SetAttribute(std::move(value)); return *this;}
94
96
99 inline const CustomStruct& GetStruct() const{ return m_struct; }
100 inline bool StructHasBeenSet() const { return m_structHasBeenSet; }
101 inline void SetStruct(const CustomStruct& value) { m_structHasBeenSet = true; m_struct = value; }
102 inline void SetStruct(CustomStruct&& value) { m_structHasBeenSet = true; m_struct = std::move(value); }
103 inline Node& WithStruct(const CustomStruct& value) { SetStruct(value); return *this;}
104 inline Node& WithStruct(CustomStruct&& value) { SetStruct(std::move(value)); return *this;}
106
108
112 inline const CustomProperty& GetProperty() const{ return m_property; }
113 inline bool PropertyHasBeenSet() const { return m_propertyHasBeenSet; }
114 inline void SetProperty(const CustomProperty& value) { m_propertyHasBeenSet = true; m_property = value; }
115 inline void SetProperty(CustomProperty&& value) { m_propertyHasBeenSet = true; m_property = std::move(value); }
116 inline Node& WithProperty(const CustomProperty& value) { SetProperty(value); return *this;}
117 inline Node& WithProperty(CustomProperty&& value) { SetProperty(std::move(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 SetStruct(const CustomStruct &value)
Definition Node.h:101
void SetSensor(Sensor &&value)
Definition Node.h:64
void SetSensor(const Sensor &value)
Definition Node.h:63
const Sensor & GetSensor() const
Definition Node.h:61
void SetBranch(const Branch &value)
Definition Node.h:53
Node & WithStruct(const CustomStruct &value)
Definition Node.h:103
void SetAttribute(Attribute &&value)
Definition Node.h:90
void SetProperty(const CustomProperty &value)
Definition Node.h:114
Node & WithProperty(CustomProperty &&value)
Definition Node.h:117
Node & WithBranch(Branch &&value)
Definition Node.h:56
const Attribute & GetAttribute() const
Definition Node.h:87
void SetActuator(const Actuator &value)
Definition Node.h:76
void SetActuator(Actuator &&value)
Definition Node.h:77
Node & WithProperty(const CustomProperty &value)
Definition Node.h:116
AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTFLEETWISE_API Node()
Node & WithSensor(const Sensor &value)
Definition Node.h:65
Node & WithActuator(Actuator &&value)
Definition Node.h:79
bool StructHasBeenSet() const
Definition Node.h:100
void SetProperty(CustomProperty &&value)
Definition Node.h:115
AWS_IOTFLEETWISE_API Node(Aws::Utils::Json::JsonView jsonValue)
Node & WithActuator(const Actuator &value)
Definition Node.h:78
Node & WithAttribute(const Attribute &value)
Definition Node.h:91
Node & WithAttribute(Attribute &&value)
Definition Node.h:92
const CustomProperty & GetProperty() const
Definition Node.h:112
const CustomStruct & GetStruct() const
Definition Node.h:99
const Actuator & GetActuator() const
Definition Node.h:74
Node & WithBranch(const Branch &value)
Definition Node.h:55
void SetStruct(CustomStruct &&value)
Definition Node.h:102
Node & WithStruct(CustomStruct &&value)
Definition Node.h:104
void SetBranch(Branch &&value)
Definition Node.h:54
AWS_IOTFLEETWISE_API Node & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAttribute(const Attribute &value)
Definition Node.h:89
bool SensorHasBeenSet() const
Definition Node.h:62
bool ActuatorHasBeenSet() const
Definition Node.h:75
const Branch & GetBranch() const
Definition Node.h:51
bool BranchHasBeenSet() const
Definition Node.h:52
Node & WithSensor(Sensor &&value)
Definition Node.h:66
Aws::Utils::Json::JsonValue JsonValue