AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
NetworkInterface.h
1
6#pragma once
7#include <aws/iotfleetwise/IoTFleetWise_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iotfleetwise/model/NetworkInterfaceType.h>
10#include <aws/iotfleetwise/model/CanInterface.h>
11#include <aws/iotfleetwise/model/ObdInterface.h>
12#include <aws/iotfleetwise/model/VehicleMiddleware.h>
13#include <aws/iotfleetwise/model/CustomDecodingInterface.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
40 {
41 public:
42 AWS_IOTFLEETWISE_API NetworkInterface() = default;
43 AWS_IOTFLEETWISE_API NetworkInterface(Aws::Utils::Json::JsonView jsonValue);
44 AWS_IOTFLEETWISE_API NetworkInterface& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetInterfaceId() const { return m_interfaceId; }
53 inline bool InterfaceIdHasBeenSet() const { return m_interfaceIdHasBeenSet; }
54 template<typename InterfaceIdT = Aws::String>
55 void SetInterfaceId(InterfaceIdT&& value) { m_interfaceIdHasBeenSet = true; m_interfaceId = std::forward<InterfaceIdT>(value); }
56 template<typename InterfaceIdT = Aws::String>
57 NetworkInterface& WithInterfaceId(InterfaceIdT&& value) { SetInterfaceId(std::forward<InterfaceIdT>(value)); return *this;}
59
61
67 inline NetworkInterfaceType GetType() const { return m_type; }
68 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
69 inline void SetType(NetworkInterfaceType value) { m_typeHasBeenSet = true; m_type = value; }
70 inline NetworkInterface& WithType(NetworkInterfaceType value) { SetType(value); return *this;}
72
74
78 inline const CanInterface& GetCanInterface() const { return m_canInterface; }
79 inline bool CanInterfaceHasBeenSet() const { return m_canInterfaceHasBeenSet; }
80 template<typename CanInterfaceT = CanInterface>
81 void SetCanInterface(CanInterfaceT&& value) { m_canInterfaceHasBeenSet = true; m_canInterface = std::forward<CanInterfaceT>(value); }
82 template<typename CanInterfaceT = CanInterface>
83 NetworkInterface& WithCanInterface(CanInterfaceT&& value) { SetCanInterface(std::forward<CanInterfaceT>(value)); return *this;}
85
87
91 inline const ObdInterface& GetObdInterface() const { return m_obdInterface; }
92 inline bool ObdInterfaceHasBeenSet() const { return m_obdInterfaceHasBeenSet; }
93 template<typename ObdInterfaceT = ObdInterface>
94 void SetObdInterface(ObdInterfaceT&& value) { m_obdInterfaceHasBeenSet = true; m_obdInterface = std::forward<ObdInterfaceT>(value); }
95 template<typename ObdInterfaceT = ObdInterface>
96 NetworkInterface& WithObdInterface(ObdInterfaceT&& value) { SetObdInterface(std::forward<ObdInterfaceT>(value)); return *this;}
98
100
104 inline const VehicleMiddleware& GetVehicleMiddleware() const { return m_vehicleMiddleware; }
105 inline bool VehicleMiddlewareHasBeenSet() const { return m_vehicleMiddlewareHasBeenSet; }
106 template<typename VehicleMiddlewareT = VehicleMiddleware>
107 void SetVehicleMiddleware(VehicleMiddlewareT&& value) { m_vehicleMiddlewareHasBeenSet = true; m_vehicleMiddleware = std::forward<VehicleMiddlewareT>(value); }
108 template<typename VehicleMiddlewareT = VehicleMiddleware>
109 NetworkInterface& WithVehicleMiddleware(VehicleMiddlewareT&& value) { SetVehicleMiddleware(std::forward<VehicleMiddlewareT>(value)); return *this;}
111
113
118 inline const CustomDecodingInterface& GetCustomDecodingInterface() const { return m_customDecodingInterface; }
119 inline bool CustomDecodingInterfaceHasBeenSet() const { return m_customDecodingInterfaceHasBeenSet; }
120 template<typename CustomDecodingInterfaceT = CustomDecodingInterface>
121 void SetCustomDecodingInterface(CustomDecodingInterfaceT&& value) { m_customDecodingInterfaceHasBeenSet = true; m_customDecodingInterface = std::forward<CustomDecodingInterfaceT>(value); }
122 template<typename CustomDecodingInterfaceT = CustomDecodingInterface>
123 NetworkInterface& WithCustomDecodingInterface(CustomDecodingInterfaceT&& value) { SetCustomDecodingInterface(std::forward<CustomDecodingInterfaceT>(value)); return *this;}
125 private:
126
127 Aws::String m_interfaceId;
128 bool m_interfaceIdHasBeenSet = false;
129
131 bool m_typeHasBeenSet = false;
132
133 CanInterface m_canInterface;
134 bool m_canInterfaceHasBeenSet = false;
135
136 ObdInterface m_obdInterface;
137 bool m_obdInterfaceHasBeenSet = false;
138
139 VehicleMiddleware m_vehicleMiddleware;
140 bool m_vehicleMiddlewareHasBeenSet = false;
141
142 CustomDecodingInterface m_customDecodingInterface;
143 bool m_customDecodingInterfaceHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace IoTFleetWise
148} // 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