AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
ConnectorItem.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
9#include <aws/iot-managed-integrations/model/CloudConnectorType.h>
10#include <aws/iot-managed-integrations/model/EndpointConfig.h>
11#include <aws/iot-managed-integrations/model/EndpointType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoTManagedIntegrations {
23namespace Model {
24
31 public:
32 AWS_IOTMANAGEDINTEGRATIONS_API ConnectorItem() = default;
33 AWS_IOTMANAGEDINTEGRATIONS_API ConnectorItem(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IOTMANAGEDINTEGRATIONS_API ConnectorItem& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 ConnectorItem& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
60 inline const EndpointConfig& GetEndpointConfig() const { return m_endpointConfig; }
61 inline bool EndpointConfigHasBeenSet() const { return m_endpointConfigHasBeenSet; }
62 template <typename EndpointConfigT = EndpointConfig>
63 void SetEndpointConfig(EndpointConfigT&& value) {
64 m_endpointConfigHasBeenSet = true;
65 m_endpointConfig = std::forward<EndpointConfigT>(value);
66 }
67 template <typename EndpointConfigT = EndpointConfig>
68 ConnectorItem& WithEndpointConfig(EndpointConfigT&& value) {
69 SetEndpointConfig(std::forward<EndpointConfigT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDescription() const { return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 template <typename DescriptionT = Aws::String>
81 void SetDescription(DescriptionT&& value) {
82 m_descriptionHasBeenSet = true;
83 m_description = std::forward<DescriptionT>(value);
84 }
85 template <typename DescriptionT = Aws::String>
86 ConnectorItem& WithDescription(DescriptionT&& value) {
87 SetDescription(std::forward<DescriptionT>(value));
88 return *this;
89 }
91
93
96 inline EndpointType GetEndpointType() const { return m_endpointType; }
97 inline bool EndpointTypeHasBeenSet() const { return m_endpointTypeHasBeenSet; }
98 inline void SetEndpointType(EndpointType value) {
99 m_endpointTypeHasBeenSet = true;
100 m_endpointType = value;
101 }
103 SetEndpointType(value);
104 return *this;
105 }
107
109
112 inline const Aws::String& GetId() const { return m_id; }
113 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
114 template <typename IdT = Aws::String>
115 void SetId(IdT&& value) {
116 m_idHasBeenSet = true;
117 m_id = std::forward<IdT>(value);
118 }
119 template <typename IdT = Aws::String>
120 ConnectorItem& WithId(IdT&& value) {
121 SetId(std::forward<IdT>(value));
122 return *this;
123 }
125
127
130 inline CloudConnectorType GetType() const { return m_type; }
131 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
132 inline void SetType(CloudConnectorType value) {
133 m_typeHasBeenSet = true;
134 m_type = value;
135 }
137 SetType(value);
138 return *this;
139 }
141 private:
142 Aws::String m_name;
143
144 EndpointConfig m_endpointConfig;
145
146 Aws::String m_description;
147
148 EndpointType m_endpointType{EndpointType::NOT_SET};
149
150 Aws::String m_id;
151
153 bool m_nameHasBeenSet = false;
154 bool m_endpointConfigHasBeenSet = false;
155 bool m_descriptionHasBeenSet = false;
156 bool m_endpointTypeHasBeenSet = false;
157 bool m_idHasBeenSet = false;
158 bool m_typeHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace IoTManagedIntegrations
163} // namespace Aws
AWS_IOTMANAGEDINTEGRATIONS_API ConnectorItem(Aws::Utils::Json::JsonView jsonValue)
ConnectorItem & WithEndpointType(EndpointType value)
const EndpointConfig & GetEndpointConfig() const
void SetEndpointConfig(EndpointConfigT &&value)
ConnectorItem & WithEndpointConfig(EndpointConfigT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTMANAGEDINTEGRATIONS_API ConnectorItem & operator=(Aws::Utils::Json::JsonView jsonValue)
ConnectorItem & WithDescription(DescriptionT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API ConnectorItem()=default
ConnectorItem & WithType(CloudConnectorType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue