AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CanSignal.h
1
6#pragma once
7#include <aws/iotfleetwise/IoTFleetWise_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.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 CanSignal();
36 AWS_IOTFLEETWISE_API CanSignal(Aws::Utils::Json::JsonView jsonValue);
37 AWS_IOTFLEETWISE_API CanSignal& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline int GetMessageId() const{ return m_messageId; }
46 inline bool MessageIdHasBeenSet() const { return m_messageIdHasBeenSet; }
47 inline void SetMessageId(int value) { m_messageIdHasBeenSet = true; m_messageId = value; }
48 inline CanSignal& WithMessageId(int value) { SetMessageId(value); return *this;}
50
52
55 inline bool GetIsBigEndian() const{ return m_isBigEndian; }
56 inline bool IsBigEndianHasBeenSet() const { return m_isBigEndianHasBeenSet; }
57 inline void SetIsBigEndian(bool value) { m_isBigEndianHasBeenSet = true; m_isBigEndian = value; }
58 inline CanSignal& WithIsBigEndian(bool value) { SetIsBigEndian(value); return *this;}
60
62
65 inline bool GetIsSigned() const{ return m_isSigned; }
66 inline bool IsSignedHasBeenSet() const { return m_isSignedHasBeenSet; }
67 inline void SetIsSigned(bool value) { m_isSignedHasBeenSet = true; m_isSigned = value; }
68 inline CanSignal& WithIsSigned(bool value) { SetIsSigned(value); return *this;}
70
72
80 inline int GetStartBit() const{ return m_startBit; }
81 inline bool StartBitHasBeenSet() const { return m_startBitHasBeenSet; }
82 inline void SetStartBit(int value) { m_startBitHasBeenSet = true; m_startBit = value; }
83 inline CanSignal& WithStartBit(int value) { SetStartBit(value); return *this;}
85
87
91 inline double GetOffset() const{ return m_offset; }
92 inline bool OffsetHasBeenSet() const { return m_offsetHasBeenSet; }
93 inline void SetOffset(double value) { m_offsetHasBeenSet = true; m_offset = value; }
94 inline CanSignal& WithOffset(double value) { SetOffset(value); return *this;}
96
98
101 inline double GetFactor() const{ return m_factor; }
102 inline bool FactorHasBeenSet() const { return m_factorHasBeenSet; }
103 inline void SetFactor(double value) { m_factorHasBeenSet = true; m_factor = value; }
104 inline CanSignal& WithFactor(double value) { SetFactor(value); return *this;}
106
108
111 inline int GetLength() const{ return m_length; }
112 inline bool LengthHasBeenSet() const { return m_lengthHasBeenSet; }
113 inline void SetLength(int value) { m_lengthHasBeenSet = true; m_length = value; }
114 inline CanSignal& WithLength(int value) { SetLength(value); return *this;}
116
118
121 inline const Aws::String& GetName() const{ return m_name; }
122 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
123 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
124 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
125 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
126 inline CanSignal& WithName(const Aws::String& value) { SetName(value); return *this;}
127 inline CanSignal& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
128 inline CanSignal& WithName(const char* value) { SetName(value); return *this;}
130 private:
131
132 int m_messageId;
133 bool m_messageIdHasBeenSet = false;
134
135 bool m_isBigEndian;
136 bool m_isBigEndianHasBeenSet = false;
137
138 bool m_isSigned;
139 bool m_isSignedHasBeenSet = false;
140
141 int m_startBit;
142 bool m_startBitHasBeenSet = false;
143
144 double m_offset;
145 bool m_offsetHasBeenSet = false;
146
147 double m_factor;
148 bool m_factorHasBeenSet = false;
149
150 int m_length;
151 bool m_lengthHasBeenSet = false;
152
153 Aws::String m_name;
154 bool m_nameHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace IoTFleetWise
159} // namespace Aws
AWS_IOTFLEETWISE_API CanSignal()
CanSignal & WithMessageId(int value)
Definition CanSignal.h:48
CanSignal & WithName(const Aws::String &value)
Definition CanSignal.h:126
AWS_IOTFLEETWISE_API CanSignal(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTFLEETWISE_API CanSignal & operator=(Aws::Utils::Json::JsonView jsonValue)
CanSignal & WithFactor(double value)
Definition CanSignal.h:104
CanSignal & WithIsBigEndian(bool value)
Definition CanSignal.h:58
CanSignal & WithName(const char *value)
Definition CanSignal.h:128
void SetName(const char *value)
Definition CanSignal.h:125
CanSignal & WithName(Aws::String &&value)
Definition CanSignal.h:127
CanSignal & WithStartBit(int value)
Definition CanSignal.h:83
void SetName(const Aws::String &value)
Definition CanSignal.h:123
const Aws::String & GetName() const
Definition CanSignal.h:121
CanSignal & WithLength(int value)
Definition CanSignal.h:114
void SetName(Aws::String &&value)
Definition CanSignal.h:124
AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const
CanSignal & WithOffset(double value)
Definition CanSignal.h:94
CanSignal & WithIsSigned(bool value)
Definition CanSignal.h:68
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue