AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
NetworkInterface.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iotfleetwise/IoTFleetWise_EXPORTS.h>
9#include <aws/iotfleetwise/model/CanInterface.h>
10#include <aws/iotfleetwise/model/CustomDecodingInterface.h>
11#include <aws/iotfleetwise/model/NetworkInterfaceType.h>
12#include <aws/iotfleetwise/model/ObdInterface.h>
13#include <aws/iotfleetwise/model/VehicleMiddleware.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace IoTFleetWise {
25namespace Model {
26
36 public:
37 AWS_IOTFLEETWISE_API NetworkInterface() = default;
38 AWS_IOTFLEETWISE_API NetworkInterface(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTFLEETWISE_API NetworkInterface& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetInterfaceId() const { return m_interfaceId; }
47 inline bool InterfaceIdHasBeenSet() const { return m_interfaceIdHasBeenSet; }
48 template <typename InterfaceIdT = Aws::String>
49 void SetInterfaceId(InterfaceIdT&& value) {
50 m_interfaceIdHasBeenSet = true;
51 m_interfaceId = std::forward<InterfaceIdT>(value);
52 }
53 template <typename InterfaceIdT = Aws::String>
54 NetworkInterface& WithInterfaceId(InterfaceIdT&& value) {
55 SetInterfaceId(std::forward<InterfaceIdT>(value));
56 return *this;
57 }
59
61
67 inline NetworkInterfaceType GetType() const { return m_type; }
68 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
69 inline void SetType(NetworkInterfaceType value) {
70 m_typeHasBeenSet = true;
71 m_type = value;
72 }
74 SetType(value);
75 return *this;
76 }
78
80
84 inline const CanInterface& GetCanInterface() const { return m_canInterface; }
85 inline bool CanInterfaceHasBeenSet() const { return m_canInterfaceHasBeenSet; }
86 template <typename CanInterfaceT = CanInterface>
87 void SetCanInterface(CanInterfaceT&& value) {
88 m_canInterfaceHasBeenSet = true;
89 m_canInterface = std::forward<CanInterfaceT>(value);
90 }
91 template <typename CanInterfaceT = CanInterface>
92 NetworkInterface& WithCanInterface(CanInterfaceT&& value) {
93 SetCanInterface(std::forward<CanInterfaceT>(value));
94 return *this;
95 }
97
99
103 inline const ObdInterface& GetObdInterface() const { return m_obdInterface; }
104 inline bool ObdInterfaceHasBeenSet() const { return m_obdInterfaceHasBeenSet; }
105 template <typename ObdInterfaceT = ObdInterface>
106 void SetObdInterface(ObdInterfaceT&& value) {
107 m_obdInterfaceHasBeenSet = true;
108 m_obdInterface = std::forward<ObdInterfaceT>(value);
109 }
110 template <typename ObdInterfaceT = ObdInterface>
111 NetworkInterface& WithObdInterface(ObdInterfaceT&& value) {
112 SetObdInterface(std::forward<ObdInterfaceT>(value));
113 return *this;
114 }
116
118
122 inline const VehicleMiddleware& GetVehicleMiddleware() const { return m_vehicleMiddleware; }
123 inline bool VehicleMiddlewareHasBeenSet() const { return m_vehicleMiddlewareHasBeenSet; }
124 template <typename VehicleMiddlewareT = VehicleMiddleware>
125 void SetVehicleMiddleware(VehicleMiddlewareT&& value) {
126 m_vehicleMiddlewareHasBeenSet = true;
127 m_vehicleMiddleware = std::forward<VehicleMiddlewareT>(value);
128 }
129 template <typename VehicleMiddlewareT = VehicleMiddleware>
130 NetworkInterface& WithVehicleMiddleware(VehicleMiddlewareT&& value) {
131 SetVehicleMiddleware(std::forward<VehicleMiddlewareT>(value));
132 return *this;
133 }
135
137
142 inline const CustomDecodingInterface& GetCustomDecodingInterface() const { return m_customDecodingInterface; }
143 inline bool CustomDecodingInterfaceHasBeenSet() const { return m_customDecodingInterfaceHasBeenSet; }
144 template <typename CustomDecodingInterfaceT = CustomDecodingInterface>
145 void SetCustomDecodingInterface(CustomDecodingInterfaceT&& value) {
146 m_customDecodingInterfaceHasBeenSet = true;
147 m_customDecodingInterface = std::forward<CustomDecodingInterfaceT>(value);
148 }
149 template <typename CustomDecodingInterfaceT = CustomDecodingInterface>
150 NetworkInterface& WithCustomDecodingInterface(CustomDecodingInterfaceT&& value) {
151 SetCustomDecodingInterface(std::forward<CustomDecodingInterfaceT>(value));
152 return *this;
153 }
155 private:
156 Aws::String m_interfaceId;
157
159
160 CanInterface m_canInterface;
161
162 ObdInterface m_obdInterface;
163
164 VehicleMiddleware m_vehicleMiddleware;
165
166 CustomDecodingInterface m_customDecodingInterface;
167 bool m_interfaceIdHasBeenSet = false;
168 bool m_typeHasBeenSet = false;
169 bool m_canInterfaceHasBeenSet = false;
170 bool m_obdInterfaceHasBeenSet = false;
171 bool m_vehicleMiddlewareHasBeenSet = false;
172 bool m_customDecodingInterfaceHasBeenSet = false;
173};
174
175} // namespace Model
176} // namespace IoTFleetWise
177} // namespace Aws
AWS_IOTFLEETWISE_API NetworkInterface()=default
const ObdInterface & GetObdInterface() const
AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCustomDecodingInterface(CustomDecodingInterfaceT &&value)
NetworkInterface & WithCustomDecodingInterface(CustomDecodingInterfaceT &&value)
AWS_IOTFLEETWISE_API NetworkInterface & operator=(Aws::Utils::Json::JsonView jsonValue)
NetworkInterface & WithObdInterface(ObdInterfaceT &&value)
const CustomDecodingInterface & GetCustomDecodingInterface() const
NetworkInterface & WithVehicleMiddleware(VehicleMiddlewareT &&value)
void SetObdInterface(ObdInterfaceT &&value)
NetworkInterface & WithType(NetworkInterfaceType value)
NetworkInterface & WithCanInterface(CanInterfaceT &&value)
void SetVehicleMiddleware(VehicleMiddlewareT &&value)
const CanInterface & GetCanInterface() const
const Aws::String & GetInterfaceId() const
void SetCanInterface(CanInterfaceT &&value)
AWS_IOTFLEETWISE_API NetworkInterface(Aws::Utils::Json::JsonView jsonValue)
const VehicleMiddleware & GetVehicleMiddleware() const
NetworkInterface & WithInterfaceId(InterfaceIdT &&value)
void SetType(NetworkInterfaceType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue