AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
CanInterface.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iotfleetwise/IoTFleetWise_EXPORTS.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
29 public:
30 AWS_IOTFLEETWISE_API CanInterface() = default;
31 AWS_IOTFLEETWISE_API CanInterface(Aws::Utils::Json::JsonView jsonValue);
32 AWS_IOTFLEETWISE_API CanInterface& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
47 CanInterface& WithName(NameT&& value) {
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetProtocolName() const { return m_protocolName; }
58 inline bool ProtocolNameHasBeenSet() const { return m_protocolNameHasBeenSet; }
59 template <typename ProtocolNameT = Aws::String>
60 void SetProtocolName(ProtocolNameT&& value) {
61 m_protocolNameHasBeenSet = true;
62 m_protocolName = std::forward<ProtocolNameT>(value);
63 }
64 template <typename ProtocolNameT = Aws::String>
65 CanInterface& WithProtocolName(ProtocolNameT&& value) {
66 SetProtocolName(std::forward<ProtocolNameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetProtocolVersion() const { return m_protocolVersion; }
76 inline bool ProtocolVersionHasBeenSet() const { return m_protocolVersionHasBeenSet; }
77 template <typename ProtocolVersionT = Aws::String>
78 void SetProtocolVersion(ProtocolVersionT&& value) {
79 m_protocolVersionHasBeenSet = true;
80 m_protocolVersion = std::forward<ProtocolVersionT>(value);
81 }
82 template <typename ProtocolVersionT = Aws::String>
83 CanInterface& WithProtocolVersion(ProtocolVersionT&& value) {
84 SetProtocolVersion(std::forward<ProtocolVersionT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_name;
90
91 Aws::String m_protocolName;
92
93 Aws::String m_protocolVersion;
94 bool m_nameHasBeenSet = false;
95 bool m_protocolNameHasBeenSet = false;
96 bool m_protocolVersionHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace IoTFleetWise
101} // namespace Aws
CanInterface & WithProtocolVersion(ProtocolVersionT &&value)
CanInterface & WithProtocolName(ProtocolNameT &&value)
AWS_IOTFLEETWISE_API CanInterface & operator=(Aws::Utils::Json::JsonView jsonValue)
CanInterface & WithName(NameT &&value)
const Aws::String & GetProtocolName() const
void SetProtocolName(ProtocolNameT &&value)
AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTFLEETWISE_API CanInterface(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
const Aws::String & GetProtocolVersion() const
void SetProtocolVersion(ProtocolVersionT &&value)
AWS_IOTFLEETWISE_API CanInterface()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue