AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoTFleetWise
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_IOTFLEETWISE_API ObdSignal() = default;
36 AWS_IOTFLEETWISE_API ObdSignal(Aws::Utils::Json::JsonView jsonValue);
37 AWS_IOTFLEETWISE_API ObdSignal& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline int GetPidResponseLength() const { return m_pidResponseLength; }
46 inline bool PidResponseLengthHasBeenSet() const { return m_pidResponseLengthHasBeenSet; }
47 inline void SetPidResponseLength(int value) { m_pidResponseLengthHasBeenSet = true; m_pidResponseLength = value; }
48 inline ObdSignal& WithPidResponseLength(int value) { SetPidResponseLength(value); return *this;}
50
52
55 inline int GetServiceMode() const { return m_serviceMode; }
56 inline bool ServiceModeHasBeenSet() const { return m_serviceModeHasBeenSet; }
57 inline void SetServiceMode(int value) { m_serviceModeHasBeenSet = true; m_serviceMode = value; }
58 inline ObdSignal& WithServiceMode(int value) { SetServiceMode(value); return *this;}
60
62
65 inline int GetPid() const { return m_pid; }
66 inline bool PidHasBeenSet() const { return m_pidHasBeenSet; }
67 inline void SetPid(int value) { m_pidHasBeenSet = true; m_pid = value; }
68 inline ObdSignal& WithPid(int value) { SetPid(value); return *this;}
70
72
75 inline double GetScaling() const { return m_scaling; }
76 inline bool ScalingHasBeenSet() const { return m_scalingHasBeenSet; }
77 inline void SetScaling(double value) { m_scalingHasBeenSet = true; m_scaling = value; }
78 inline ObdSignal& WithScaling(double value) { SetScaling(value); return *this;}
80
82
86 inline double GetOffset() const { return m_offset; }
87 inline bool OffsetHasBeenSet() const { return m_offsetHasBeenSet; }
88 inline void SetOffset(double value) { m_offsetHasBeenSet = true; m_offset = value; }
89 inline ObdSignal& WithOffset(double value) { SetOffset(value); return *this;}
91
93
96 inline int GetStartByte() const { return m_startByte; }
97 inline bool StartByteHasBeenSet() const { return m_startByteHasBeenSet; }
98 inline void SetStartByte(int value) { m_startByteHasBeenSet = true; m_startByte = value; }
99 inline ObdSignal& WithStartByte(int value) { SetStartByte(value); return *this;}
101
103
106 inline int GetByteLength() const { return m_byteLength; }
107 inline bool ByteLengthHasBeenSet() const { return m_byteLengthHasBeenSet; }
108 inline void SetByteLength(int value) { m_byteLengthHasBeenSet = true; m_byteLength = value; }
109 inline ObdSignal& WithByteLength(int value) { SetByteLength(value); return *this;}
111
113
116 inline int GetBitRightShift() const { return m_bitRightShift; }
117 inline bool BitRightShiftHasBeenSet() const { return m_bitRightShiftHasBeenSet; }
118 inline void SetBitRightShift(int value) { m_bitRightShiftHasBeenSet = true; m_bitRightShift = value; }
119 inline ObdSignal& WithBitRightShift(int value) { SetBitRightShift(value); return *this;}
121
123
126 inline int GetBitMaskLength() const { return m_bitMaskLength; }
127 inline bool BitMaskLengthHasBeenSet() const { return m_bitMaskLengthHasBeenSet; }
128 inline void SetBitMaskLength(int value) { m_bitMaskLengthHasBeenSet = true; m_bitMaskLength = value; }
129 inline ObdSignal& WithBitMaskLength(int value) { SetBitMaskLength(value); return *this;}
131
133
141 inline bool GetIsSigned() const { return m_isSigned; }
142 inline bool IsSignedHasBeenSet() const { return m_isSignedHasBeenSet; }
143 inline void SetIsSigned(bool value) { m_isSignedHasBeenSet = true; m_isSigned = value; }
144 inline ObdSignal& WithIsSigned(bool value) { SetIsSigned(value); return *this;}
146
148
151 inline SignalValueType GetSignalValueType() const { return m_signalValueType; }
152 inline bool SignalValueTypeHasBeenSet() const { return m_signalValueTypeHasBeenSet; }
153 inline void SetSignalValueType(SignalValueType value) { m_signalValueTypeHasBeenSet = true; m_signalValueType = value; }
154 inline ObdSignal& WithSignalValueType(SignalValueType value) { SetSignalValueType(value); return *this;}
156 private:
157
158 int m_pidResponseLength{0};
159 bool m_pidResponseLengthHasBeenSet = false;
160
161 int m_serviceMode{0};
162 bool m_serviceModeHasBeenSet = false;
163
164 int m_pid{0};
165 bool m_pidHasBeenSet = false;
166
167 double m_scaling{0.0};
168 bool m_scalingHasBeenSet = false;
169
170 double m_offset{0.0};
171 bool m_offsetHasBeenSet = false;
172
173 int m_startByte{0};
174 bool m_startByteHasBeenSet = false;
175
176 int m_byteLength{0};
177 bool m_byteLengthHasBeenSet = false;
178
179 int m_bitRightShift{0};
180 bool m_bitRightShiftHasBeenSet = false;
181
182 int m_bitMaskLength{0};
183 bool m_bitMaskLengthHasBeenSet = false;
184
185 bool m_isSigned{false};
186 bool m_isSignedHasBeenSet = false;
187
188 SignalValueType m_signalValueType{SignalValueType::NOT_SET};
189 bool m_signalValueTypeHasBeenSet = false;
190 };
191
192} // namespace Model
193} // namespace IoTFleetWise
194} // namespace Aws
AWS_IOTFLEETWISE_API ObdSignal & operator=(Aws::Utils::Json::JsonView jsonValue)
ObdSignal & WithByteLength(int value)
Definition ObdSignal.h:109
AWS_IOTFLEETWISE_API ObdSignal()=default
ObdSignal & WithServiceMode(int value)
Definition ObdSignal.h:58
ObdSignal & WithBitMaskLength(int value)
Definition ObdSignal.h:129
ObdSignal & WithPidResponseLength(int value)
Definition ObdSignal.h:48
AWS_IOTFLEETWISE_API ObdSignal(Aws::Utils::Json::JsonView jsonValue)
ObdSignal & WithScaling(double value)
Definition ObdSignal.h:78
ObdSignal & WithPid(int value)
Definition ObdSignal.h:68
ObdSignal & WithIsSigned(bool value)
Definition ObdSignal.h:144
AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const
ObdSignal & WithBitRightShift(int value)
Definition ObdSignal.h:119
ObdSignal & WithSignalValueType(SignalValueType value)
Definition ObdSignal.h:154
ObdSignal & WithOffset(double value)
Definition ObdSignal.h:89
SignalValueType GetSignalValueType() const
Definition ObdSignal.h:151
ObdSignal & WithStartByte(int value)
Definition ObdSignal.h:99
void SetSignalValueType(SignalValueType value)
Definition ObdSignal.h:153
Aws::Utils::Json::JsonValue JsonValue