AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
ObdSignal.h
1
6#pragma once
7#include <aws/iotfleetwise/IoTFleetWise_EXPORTS.h>
8#include <aws/iotfleetwise/model/SignalValueType.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace IoTFleetWise {
20namespace Model {
21
28class ObdSignal {
29 public:
30 AWS_IOTFLEETWISE_API ObdSignal() = default;
31 AWS_IOTFLEETWISE_API ObdSignal(Aws::Utils::Json::JsonView jsonValue);
32 AWS_IOTFLEETWISE_API ObdSignal& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline int GetPidResponseLength() const { return m_pidResponseLength; }
40 inline bool PidResponseLengthHasBeenSet() const { return m_pidResponseLengthHasBeenSet; }
41 inline void SetPidResponseLength(int value) {
42 m_pidResponseLengthHasBeenSet = true;
43 m_pidResponseLength = value;
44 }
45 inline ObdSignal& WithPidResponseLength(int value) {
47 return *this;
48 }
50
52
55 inline int GetServiceMode() const { return m_serviceMode; }
56 inline bool ServiceModeHasBeenSet() const { return m_serviceModeHasBeenSet; }
57 inline void SetServiceMode(int value) {
58 m_serviceModeHasBeenSet = true;
59 m_serviceMode = value;
60 }
61 inline ObdSignal& WithServiceMode(int value) {
62 SetServiceMode(value);
63 return *this;
64 }
66
68
71 inline int GetPid() const { return m_pid; }
72 inline bool PidHasBeenSet() const { return m_pidHasBeenSet; }
73 inline void SetPid(int value) {
74 m_pidHasBeenSet = true;
75 m_pid = value;
76 }
77 inline ObdSignal& WithPid(int value) {
78 SetPid(value);
79 return *this;
80 }
82
84
87 inline double GetScaling() const { return m_scaling; }
88 inline bool ScalingHasBeenSet() const { return m_scalingHasBeenSet; }
89 inline void SetScaling(double value) {
90 m_scalingHasBeenSet = true;
91 m_scaling = value;
92 }
93 inline ObdSignal& WithScaling(double value) {
94 SetScaling(value);
95 return *this;
96 }
98
100
104 inline double GetOffset() const { return m_offset; }
105 inline bool OffsetHasBeenSet() const { return m_offsetHasBeenSet; }
106 inline void SetOffset(double value) {
107 m_offsetHasBeenSet = true;
108 m_offset = value;
109 }
110 inline ObdSignal& WithOffset(double value) {
111 SetOffset(value);
112 return *this;
113 }
115
117
120 inline int GetStartByte() const { return m_startByte; }
121 inline bool StartByteHasBeenSet() const { return m_startByteHasBeenSet; }
122 inline void SetStartByte(int value) {
123 m_startByteHasBeenSet = true;
124 m_startByte = value;
125 }
126 inline ObdSignal& WithStartByte(int value) {
127 SetStartByte(value);
128 return *this;
129 }
131
133
136 inline int GetByteLength() const { return m_byteLength; }
137 inline bool ByteLengthHasBeenSet() const { return m_byteLengthHasBeenSet; }
138 inline void SetByteLength(int value) {
139 m_byteLengthHasBeenSet = true;
140 m_byteLength = value;
141 }
142 inline ObdSignal& WithByteLength(int value) {
143 SetByteLength(value);
144 return *this;
145 }
147
149
152 inline int GetBitRightShift() const { return m_bitRightShift; }
153 inline bool BitRightShiftHasBeenSet() const { return m_bitRightShiftHasBeenSet; }
154 inline void SetBitRightShift(int value) {
155 m_bitRightShiftHasBeenSet = true;
156 m_bitRightShift = value;
157 }
158 inline ObdSignal& WithBitRightShift(int value) {
159 SetBitRightShift(value);
160 return *this;
161 }
163
165
168 inline int GetBitMaskLength() const { return m_bitMaskLength; }
169 inline bool BitMaskLengthHasBeenSet() const { return m_bitMaskLengthHasBeenSet; }
170 inline void SetBitMaskLength(int value) {
171 m_bitMaskLengthHasBeenSet = true;
172 m_bitMaskLength = value;
173 }
174 inline ObdSignal& WithBitMaskLength(int value) {
175 SetBitMaskLength(value);
176 return *this;
177 }
179
181
189 inline bool GetIsSigned() const { return m_isSigned; }
190 inline bool IsSignedHasBeenSet() const { return m_isSignedHasBeenSet; }
191 inline void SetIsSigned(bool value) {
192 m_isSignedHasBeenSet = true;
193 m_isSigned = value;
194 }
195 inline ObdSignal& WithIsSigned(bool value) {
196 SetIsSigned(value);
197 return *this;
198 }
200
202
205 inline SignalValueType GetSignalValueType() const { return m_signalValueType; }
206 inline bool SignalValueTypeHasBeenSet() const { return m_signalValueTypeHasBeenSet; }
208 m_signalValueTypeHasBeenSet = true;
209 m_signalValueType = value;
210 }
212 SetSignalValueType(value);
213 return *this;
214 }
216 private:
217 int m_pidResponseLength{0};
218
219 int m_serviceMode{0};
220
221 int m_pid{0};
222
223 double m_scaling{0.0};
224
225 double m_offset{0.0};
226
227 int m_startByte{0};
228
229 int m_byteLength{0};
230
231 int m_bitRightShift{0};
232
233 int m_bitMaskLength{0};
234
235 bool m_isSigned{false};
236
237 SignalValueType m_signalValueType{SignalValueType::NOT_SET};
238 bool m_pidResponseLengthHasBeenSet = false;
239 bool m_serviceModeHasBeenSet = false;
240 bool m_pidHasBeenSet = false;
241 bool m_scalingHasBeenSet = false;
242 bool m_offsetHasBeenSet = false;
243 bool m_startByteHasBeenSet = false;
244 bool m_byteLengthHasBeenSet = false;
245 bool m_bitRightShiftHasBeenSet = false;
246 bool m_bitMaskLengthHasBeenSet = false;
247 bool m_isSignedHasBeenSet = false;
248 bool m_signalValueTypeHasBeenSet = false;
249};
250
251} // namespace Model
252} // namespace IoTFleetWise
253} // namespace Aws
AWS_IOTFLEETWISE_API ObdSignal & operator=(Aws::Utils::Json::JsonView jsonValue)
ObdSignal & WithByteLength(int value)
Definition ObdSignal.h:142
AWS_IOTFLEETWISE_API ObdSignal()=default
ObdSignal & WithServiceMode(int value)
Definition ObdSignal.h:61
ObdSignal & WithBitMaskLength(int value)
Definition ObdSignal.h:174
ObdSignal & WithPidResponseLength(int value)
Definition ObdSignal.h:45
AWS_IOTFLEETWISE_API ObdSignal(Aws::Utils::Json::JsonView jsonValue)
ObdSignal & WithScaling(double value)
Definition ObdSignal.h:93
ObdSignal & WithPid(int value)
Definition ObdSignal.h:77
ObdSignal & WithIsSigned(bool value)
Definition ObdSignal.h:195
AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const
ObdSignal & WithBitRightShift(int value)
Definition ObdSignal.h:158
ObdSignal & WithSignalValueType(SignalValueType value)
Definition ObdSignal.h:211
ObdSignal & WithOffset(double value)
Definition ObdSignal.h:110
SignalValueType GetSignalValueType() const
Definition ObdSignal.h:205
ObdSignal & WithStartByte(int value)
Definition ObdSignal.h:126
void SetSignalValueType(SignalValueType value)
Definition ObdSignal.h:207
Aws::Utils::Json::JsonValue JsonValue