AWS SDK for C++

AWS SDK for C++ Version 1.11.845

Loading...
Searching...
No Matches
PrivateConnectionSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/securityagent/SecurityAgent_EXPORTS.h>
11#include <aws/securityagent/model/PrivateConnectionStatus.h>
12#include <aws/securityagent/model/PrivateConnectionType.h>
13#include <aws/securityagent/model/ResourceConfigDnsResolution.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SecurityAgent {
25namespace Model {
26
33 public:
34 AWS_SECURITYAGENT_API PrivateConnectionSummary() = default;
35 AWS_SECURITYAGENT_API PrivateConnectionSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
62 inline PrivateConnectionType GetType() const { return m_type; }
63 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
64 inline void SetType(PrivateConnectionType value) {
65 m_typeHasBeenSet = true;
66 m_type = value;
67 }
69 SetType(value);
70 return *this;
71 }
73
75
78 inline PrivateConnectionStatus GetStatus() const { return m_status; }
79 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
81 m_statusHasBeenSet = true;
82 m_status = value;
83 }
85 SetStatus(value);
86 return *this;
87 }
89
91
94 inline const Aws::String& GetResourceGatewayId() const { return m_resourceGatewayId; }
95 inline bool ResourceGatewayIdHasBeenSet() const { return m_resourceGatewayIdHasBeenSet; }
96 template <typename ResourceGatewayIdT = Aws::String>
97 void SetResourceGatewayId(ResourceGatewayIdT&& value) {
98 m_resourceGatewayIdHasBeenSet = true;
99 m_resourceGatewayId = std::forward<ResourceGatewayIdT>(value);
100 }
101 template <typename ResourceGatewayIdT = Aws::String>
102 PrivateConnectionSummary& WithResourceGatewayId(ResourceGatewayIdT&& value) {
103 SetResourceGatewayId(std::forward<ResourceGatewayIdT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetHostAddress() const { return m_hostAddress; }
113 inline bool HostAddressHasBeenSet() const { return m_hostAddressHasBeenSet; }
114 template <typename HostAddressT = Aws::String>
115 void SetHostAddress(HostAddressT&& value) {
116 m_hostAddressHasBeenSet = true;
117 m_hostAddress = std::forward<HostAddressT>(value);
118 }
119 template <typename HostAddressT = Aws::String>
121 SetHostAddress(std::forward<HostAddressT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetVpcId() const { return m_vpcId; }
131 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
132 template <typename VpcIdT = Aws::String>
133 void SetVpcId(VpcIdT&& value) {
134 m_vpcIdHasBeenSet = true;
135 m_vpcId = std::forward<VpcIdT>(value);
136 }
137 template <typename VpcIdT = Aws::String>
139 SetVpcId(std::forward<VpcIdT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::String& GetResourceConfigurationId() const { return m_resourceConfigurationId; }
149 inline bool ResourceConfigurationIdHasBeenSet() const { return m_resourceConfigurationIdHasBeenSet; }
150 template <typename ResourceConfigurationIdT = Aws::String>
151 void SetResourceConfigurationId(ResourceConfigurationIdT&& value) {
152 m_resourceConfigurationIdHasBeenSet = true;
153 m_resourceConfigurationId = std::forward<ResourceConfigurationIdT>(value);
154 }
155 template <typename ResourceConfigurationIdT = Aws::String>
156 PrivateConnectionSummary& WithResourceConfigurationId(ResourceConfigurationIdT&& value) {
157 SetResourceConfigurationId(std::forward<ResourceConfigurationIdT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::Utils::DateTime& GetCertificateExpiryTime() const { return m_certificateExpiryTime; }
167 inline bool CertificateExpiryTimeHasBeenSet() const { return m_certificateExpiryTimeHasBeenSet; }
168 template <typename CertificateExpiryTimeT = Aws::Utils::DateTime>
169 void SetCertificateExpiryTime(CertificateExpiryTimeT&& value) {
170 m_certificateExpiryTimeHasBeenSet = true;
171 m_certificateExpiryTime = std::forward<CertificateExpiryTimeT>(value);
172 }
173 template <typename CertificateExpiryTimeT = Aws::Utils::DateTime>
174 PrivateConnectionSummary& WithCertificateExpiryTime(CertificateExpiryTimeT&& value) {
175 SetCertificateExpiryTime(std::forward<CertificateExpiryTimeT>(value));
176 return *this;
177 }
179
181
184 inline ResourceConfigDnsResolution GetDnsResolution() const { return m_dnsResolution; }
185 inline bool DnsResolutionHasBeenSet() const { return m_dnsResolutionHasBeenSet; }
187 m_dnsResolutionHasBeenSet = true;
188 m_dnsResolution = value;
189 }
191 SetDnsResolution(value);
192 return *this;
193 }
195
197
201 inline const Aws::String& GetFailureMessage() const { return m_failureMessage; }
202 inline bool FailureMessageHasBeenSet() const { return m_failureMessageHasBeenSet; }
203 template <typename FailureMessageT = Aws::String>
204 void SetFailureMessage(FailureMessageT&& value) {
205 m_failureMessageHasBeenSet = true;
206 m_failureMessage = std::forward<FailureMessageT>(value);
207 }
208 template <typename FailureMessageT = Aws::String>
210 SetFailureMessage(std::forward<FailureMessageT>(value));
211 return *this;
212 }
214
216
219 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
220 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
221 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
222 void SetTags(TagsT&& value) {
223 m_tagsHasBeenSet = true;
224 m_tags = std::forward<TagsT>(value);
225 }
226 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
228 SetTags(std::forward<TagsT>(value));
229 return *this;
230 }
231 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
232 PrivateConnectionSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
233 m_tagsHasBeenSet = true;
234 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
235 return *this;
236 }
238 private:
239 Aws::String m_name;
240
242
244
245 Aws::String m_resourceGatewayId;
246
247 Aws::String m_hostAddress;
248
249 Aws::String m_vpcId;
250
251 Aws::String m_resourceConfigurationId;
252
253 Aws::Utils::DateTime m_certificateExpiryTime{};
254
256
257 Aws::String m_failureMessage;
258
260 bool m_nameHasBeenSet = false;
261 bool m_typeHasBeenSet = false;
262 bool m_statusHasBeenSet = false;
263 bool m_resourceGatewayIdHasBeenSet = false;
264 bool m_hostAddressHasBeenSet = false;
265 bool m_vpcIdHasBeenSet = false;
266 bool m_resourceConfigurationIdHasBeenSet = false;
267 bool m_certificateExpiryTimeHasBeenSet = false;
268 bool m_dnsResolutionHasBeenSet = false;
269 bool m_failureMessageHasBeenSet = false;
270 bool m_tagsHasBeenSet = false;
271};
272
273} // namespace Model
274} // namespace SecurityAgent
275} // namespace Aws
PrivateConnectionSummary & WithVpcId(VpcIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
PrivateConnectionSummary & WithStatus(PrivateConnectionStatus value)
void SetDnsResolution(ResourceConfigDnsResolution value)
PrivateConnectionSummary & WithType(PrivateConnectionType value)
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYAGENT_API PrivateConnectionSummary()=default
const Aws::Utils::DateTime & GetCertificateExpiryTime() const
AWS_SECURITYAGENT_API PrivateConnectionSummary(Aws::Utils::Json::JsonView jsonValue)
void SetCertificateExpiryTime(CertificateExpiryTimeT &&value)
void SetResourceConfigurationId(ResourceConfigurationIdT &&value)
PrivateConnectionSummary & WithDnsResolution(ResourceConfigDnsResolution value)
PrivateConnectionSummary & WithHostAddress(HostAddressT &&value)
PrivateConnectionSummary & WithResourceConfigurationId(ResourceConfigurationIdT &&value)
PrivateConnectionSummary & WithCertificateExpiryTime(CertificateExpiryTimeT &&value)
PrivateConnectionSummary & WithResourceGatewayId(ResourceGatewayIdT &&value)
PrivateConnectionSummary & WithFailureMessage(FailureMessageT &&value)
AWS_SECURITYAGENT_API PrivateConnectionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
PrivateConnectionSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
PrivateConnectionSummary & WithTags(TagsT &&value)
PrivateConnectionSummary & WithName(NameT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue