AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Tunnel.h
1
6#pragma once
7#include <aws/iotsecuretunneling/IoTSecureTunneling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iotsecuretunneling/model/TunnelStatus.h>
10#include <aws/iotsecuretunneling/model/ConnectionState.h>
11#include <aws/iotsecuretunneling/model/DestinationConfig.h>
12#include <aws/iotsecuretunneling/model/TimeoutConfig.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/core/utils/DateTime.h>
15#include <aws/iotsecuretunneling/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace IoTSecureTunneling
29{
30namespace Model
31{
32
39 class Tunnel
40 {
41 public:
42 AWS_IOTSECURETUNNELING_API Tunnel();
43 AWS_IOTSECURETUNNELING_API Tunnel(Aws::Utils::Json::JsonView jsonValue);
44 AWS_IOTSECURETUNNELING_API Tunnel& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_IOTSECURETUNNELING_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetTunnelId() const{ return m_tunnelId; }
53 inline bool TunnelIdHasBeenSet() const { return m_tunnelIdHasBeenSet; }
54 inline void SetTunnelId(const Aws::String& value) { m_tunnelIdHasBeenSet = true; m_tunnelId = value; }
55 inline void SetTunnelId(Aws::String&& value) { m_tunnelIdHasBeenSet = true; m_tunnelId = std::move(value); }
56 inline void SetTunnelId(const char* value) { m_tunnelIdHasBeenSet = true; m_tunnelId.assign(value); }
57 inline Tunnel& WithTunnelId(const Aws::String& value) { SetTunnelId(value); return *this;}
58 inline Tunnel& WithTunnelId(Aws::String&& value) { SetTunnelId(std::move(value)); return *this;}
59 inline Tunnel& WithTunnelId(const char* value) { SetTunnelId(value); return *this;}
61
63
66 inline const Aws::String& GetTunnelArn() const{ return m_tunnelArn; }
67 inline bool TunnelArnHasBeenSet() const { return m_tunnelArnHasBeenSet; }
68 inline void SetTunnelArn(const Aws::String& value) { m_tunnelArnHasBeenSet = true; m_tunnelArn = value; }
69 inline void SetTunnelArn(Aws::String&& value) { m_tunnelArnHasBeenSet = true; m_tunnelArn = std::move(value); }
70 inline void SetTunnelArn(const char* value) { m_tunnelArnHasBeenSet = true; m_tunnelArn.assign(value); }
71 inline Tunnel& WithTunnelArn(const Aws::String& value) { SetTunnelArn(value); return *this;}
72 inline Tunnel& WithTunnelArn(Aws::String&& value) { SetTunnelArn(std::move(value)); return *this;}
73 inline Tunnel& WithTunnelArn(const char* value) { SetTunnelArn(value); return *this;}
75
77
80 inline const TunnelStatus& GetStatus() const{ return m_status; }
81 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
82 inline void SetStatus(const TunnelStatus& value) { m_statusHasBeenSet = true; m_status = value; }
83 inline void SetStatus(TunnelStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
84 inline Tunnel& WithStatus(const TunnelStatus& value) { SetStatus(value); return *this;}
85 inline Tunnel& WithStatus(TunnelStatus&& value) { SetStatus(std::move(value)); return *this;}
87
89
92 inline const ConnectionState& GetSourceConnectionState() const{ return m_sourceConnectionState; }
93 inline bool SourceConnectionStateHasBeenSet() const { return m_sourceConnectionStateHasBeenSet; }
94 inline void SetSourceConnectionState(const ConnectionState& value) { m_sourceConnectionStateHasBeenSet = true; m_sourceConnectionState = value; }
95 inline void SetSourceConnectionState(ConnectionState&& value) { m_sourceConnectionStateHasBeenSet = true; m_sourceConnectionState = std::move(value); }
96 inline Tunnel& WithSourceConnectionState(const ConnectionState& value) { SetSourceConnectionState(value); return *this;}
97 inline Tunnel& WithSourceConnectionState(ConnectionState&& value) { SetSourceConnectionState(std::move(value)); return *this;}
99
101
104 inline const ConnectionState& GetDestinationConnectionState() const{ return m_destinationConnectionState; }
105 inline bool DestinationConnectionStateHasBeenSet() const { return m_destinationConnectionStateHasBeenSet; }
106 inline void SetDestinationConnectionState(const ConnectionState& value) { m_destinationConnectionStateHasBeenSet = true; m_destinationConnectionState = value; }
107 inline void SetDestinationConnectionState(ConnectionState&& value) { m_destinationConnectionStateHasBeenSet = true; m_destinationConnectionState = std::move(value); }
109 inline Tunnel& WithDestinationConnectionState(ConnectionState&& value) { SetDestinationConnectionState(std::move(value)); return *this;}
111
113
116 inline const Aws::String& GetDescription() const{ return m_description; }
117 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
118 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
119 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
120 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
121 inline Tunnel& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
122 inline Tunnel& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
123 inline Tunnel& WithDescription(const char* value) { SetDescription(value); return *this;}
125
127
132 inline const DestinationConfig& GetDestinationConfig() const{ return m_destinationConfig; }
133 inline bool DestinationConfigHasBeenSet() const { return m_destinationConfigHasBeenSet; }
134 inline void SetDestinationConfig(const DestinationConfig& value) { m_destinationConfigHasBeenSet = true; m_destinationConfig = value; }
135 inline void SetDestinationConfig(DestinationConfig&& value) { m_destinationConfigHasBeenSet = true; m_destinationConfig = std::move(value); }
136 inline Tunnel& WithDestinationConfig(const DestinationConfig& value) { SetDestinationConfig(value); return *this;}
137 inline Tunnel& WithDestinationConfig(DestinationConfig&& value) { SetDestinationConfig(std::move(value)); return *this;}
139
141
144 inline const TimeoutConfig& GetTimeoutConfig() const{ return m_timeoutConfig; }
145 inline bool TimeoutConfigHasBeenSet() const { return m_timeoutConfigHasBeenSet; }
146 inline void SetTimeoutConfig(const TimeoutConfig& value) { m_timeoutConfigHasBeenSet = true; m_timeoutConfig = value; }
147 inline void SetTimeoutConfig(TimeoutConfig&& value) { m_timeoutConfigHasBeenSet = true; m_timeoutConfig = std::move(value); }
148 inline Tunnel& WithTimeoutConfig(const TimeoutConfig& value) { SetTimeoutConfig(value); return *this;}
149 inline Tunnel& WithTimeoutConfig(TimeoutConfig&& value) { SetTimeoutConfig(std::move(value)); return *this;}
151
153
156 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
157 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
158 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
159 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
160 inline Tunnel& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
161 inline Tunnel& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
162 inline Tunnel& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
163 inline Tunnel& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
165
167
170 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
171 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
172 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
173 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
174 inline Tunnel& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
175 inline Tunnel& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
177
179
182 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
183 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
184 inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
185 inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
186 inline Tunnel& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
187 inline Tunnel& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
189 private:
190
191 Aws::String m_tunnelId;
192 bool m_tunnelIdHasBeenSet = false;
193
194 Aws::String m_tunnelArn;
195 bool m_tunnelArnHasBeenSet = false;
196
197 TunnelStatus m_status;
198 bool m_statusHasBeenSet = false;
199
200 ConnectionState m_sourceConnectionState;
201 bool m_sourceConnectionStateHasBeenSet = false;
202
203 ConnectionState m_destinationConnectionState;
204 bool m_destinationConnectionStateHasBeenSet = false;
205
206 Aws::String m_description;
207 bool m_descriptionHasBeenSet = false;
208
209 DestinationConfig m_destinationConfig;
210 bool m_destinationConfigHasBeenSet = false;
211
212 TimeoutConfig m_timeoutConfig;
213 bool m_timeoutConfigHasBeenSet = false;
214
215 Aws::Vector<Tag> m_tags;
216 bool m_tagsHasBeenSet = false;
217
218 Aws::Utils::DateTime m_createdAt;
219 bool m_createdAtHasBeenSet = false;
220
221 Aws::Utils::DateTime m_lastUpdatedAt;
222 bool m_lastUpdatedAtHasBeenSet = false;
223 };
224
225} // namespace Model
226} // namespace IoTSecureTunneling
227} // namespace Aws
const Aws::String & GetTunnelId() const
Definition Tunnel.h:52
const Aws::Utils::DateTime & GetLastUpdatedAt() const
Definition Tunnel.h:182
Tunnel & WithTunnelId(const Aws::String &value)
Definition Tunnel.h:57
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Tunnel.h:170
Tunnel & WithDescription(Aws::String &&value)
Definition Tunnel.h:122
Tunnel & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
Definition Tunnel.h:187
Tunnel & WithDestinationConnectionState(ConnectionState &&value)
Definition Tunnel.h:109
Tunnel & AddTags(const Tag &value)
Definition Tunnel.h:162
void SetStatus(const TunnelStatus &value)
Definition Tunnel.h:82
Tunnel & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition Tunnel.h:174
const Aws::String & GetDescription() const
Definition Tunnel.h:116
const ConnectionState & GetDestinationConnectionState() const
Definition Tunnel.h:104
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
Definition Tunnel.h:184
Tunnel & WithSourceConnectionState(const ConnectionState &value)
Definition Tunnel.h:96
void SetSourceConnectionState(ConnectionState &&value)
Definition Tunnel.h:95
void SetDestinationConnectionState(ConnectionState &&value)
Definition Tunnel.h:107
Tunnel & WithTunnelId(Aws::String &&value)
Definition Tunnel.h:58
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
Definition Tunnel.h:185
Tunnel & AddTags(Tag &&value)
Definition Tunnel.h:163
Tunnel & WithStatus(const TunnelStatus &value)
Definition Tunnel.h:84
Tunnel & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition Tunnel.h:175
void SetTunnelId(const char *value)
Definition Tunnel.h:56
AWS_IOTSECURETUNNELING_API Tunnel(Aws::Utils::Json::JsonView jsonValue)
Tunnel & WithDestinationConfig(const DestinationConfig &value)
Definition Tunnel.h:136
AWS_IOTSECURETUNNELING_API Tunnel()
AWS_IOTSECURETUNNELING_API Tunnel & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTunnelId(const Aws::String &value)
Definition Tunnel.h:54
Tunnel & WithDescription(const Aws::String &value)
Definition Tunnel.h:121
const DestinationConfig & GetDestinationConfig() const
Definition Tunnel.h:132
void SetTunnelId(Aws::String &&value)
Definition Tunnel.h:55
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition Tunnel.h:172
void SetTags(const Aws::Vector< Tag > &value)
Definition Tunnel.h:158
void SetDestinationConnectionState(const ConnectionState &value)
Definition Tunnel.h:106
void SetDescription(Aws::String &&value)
Definition Tunnel.h:119
Tunnel & WithTunnelArn(Aws::String &&value)
Definition Tunnel.h:72
const TunnelStatus & GetStatus() const
Definition Tunnel.h:80
Tunnel & WithTimeoutConfig(const TimeoutConfig &value)
Definition Tunnel.h:148
Tunnel & WithTunnelArn(const Aws::String &value)
Definition Tunnel.h:71
void SetTunnelArn(Aws::String &&value)
Definition Tunnel.h:69
bool DestinationConnectionStateHasBeenSet() const
Definition Tunnel.h:105
Tunnel & WithTimeoutConfig(TimeoutConfig &&value)
Definition Tunnel.h:149
void SetTunnelArn(const Aws::String &value)
Definition Tunnel.h:68
Tunnel & WithStatus(TunnelStatus &&value)
Definition Tunnel.h:85
const Aws::Vector< Tag > & GetTags() const
Definition Tunnel.h:156
Tunnel & WithTags(Aws::Vector< Tag > &&value)
Definition Tunnel.h:161
AWS_IOTSECURETUNNELING_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDescription(const Aws::String &value)
Definition Tunnel.h:118
void SetSourceConnectionState(const ConnectionState &value)
Definition Tunnel.h:94
const ConnectionState & GetSourceConnectionState() const
Definition Tunnel.h:92
bool SourceConnectionStateHasBeenSet() const
Definition Tunnel.h:93
Tunnel & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
Definition Tunnel.h:186
void SetDestinationConfig(DestinationConfig &&value)
Definition Tunnel.h:135
Tunnel & WithTunnelArn(const char *value)
Definition Tunnel.h:73
Tunnel & WithDescription(const char *value)
Definition Tunnel.h:123
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition Tunnel.h:173
const TimeoutConfig & GetTimeoutConfig() const
Definition Tunnel.h:144
void SetTunnelArn(const char *value)
Definition Tunnel.h:70
void SetTimeoutConfig(const TimeoutConfig &value)
Definition Tunnel.h:146
void SetDestinationConfig(const DestinationConfig &value)
Definition Tunnel.h:134
const Aws::String & GetTunnelArn() const
Definition Tunnel.h:66
Tunnel & WithDestinationConfig(DestinationConfig &&value)
Definition Tunnel.h:137
void SetTags(Aws::Vector< Tag > &&value)
Definition Tunnel.h:159
Tunnel & WithDestinationConnectionState(const ConnectionState &value)
Definition Tunnel.h:108
Tunnel & WithSourceConnectionState(ConnectionState &&value)
Definition Tunnel.h:97
void SetStatus(TunnelStatus &&value)
Definition Tunnel.h:83
void SetDescription(const char *value)
Definition Tunnel.h:120
Tunnel & WithTags(const Aws::Vector< Tag > &value)
Definition Tunnel.h:160
void SetTimeoutConfig(TimeoutConfig &&value)
Definition Tunnel.h:147
Tunnel & WithTunnelId(const char *value)
Definition Tunnel.h:59
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue