AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
PrivateConnectionSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
10#include <aws/devops-agent/model/PrivateConnectionStatus.h>
11#include <aws/devops-agent/model/PrivateConnectionType.h>
12#include <aws/devops-agent/model/ResourceConfigDnsResolution.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DevOpsAgent {
24namespace Model {
25
32 public:
33 AWS_DEVOPSAGENT_API PrivateConnectionSummary() = default;
36 AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline PrivateConnectionType GetType() const { return m_type; }
61 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
62 inline void SetType(PrivateConnectionType value) {
63 m_typeHasBeenSet = true;
64 m_type = value;
65 }
67 SetType(value);
68 return *this;
69 }
71
73
77 inline const Aws::String& GetResourceGatewayId() const { return m_resourceGatewayId; }
78 inline bool ResourceGatewayIdHasBeenSet() const { return m_resourceGatewayIdHasBeenSet; }
79 template <typename ResourceGatewayIdT = Aws::String>
80 void SetResourceGatewayId(ResourceGatewayIdT&& value) {
81 m_resourceGatewayIdHasBeenSet = true;
82 m_resourceGatewayId = std::forward<ResourceGatewayIdT>(value);
83 }
84 template <typename ResourceGatewayIdT = Aws::String>
85 PrivateConnectionSummary& WithResourceGatewayId(ResourceGatewayIdT&& value) {
86 SetResourceGatewayId(std::forward<ResourceGatewayIdT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetHostAddress() const { return m_hostAddress; }
97 inline bool HostAddressHasBeenSet() const { return m_hostAddressHasBeenSet; }
98 template <typename HostAddressT = Aws::String>
99 void SetHostAddress(HostAddressT&& value) {
100 m_hostAddressHasBeenSet = true;
101 m_hostAddress = std::forward<HostAddressT>(value);
102 }
103 template <typename HostAddressT = Aws::String>
105 SetHostAddress(std::forward<HostAddressT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetVpcId() const { return m_vpcId; }
116 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
117 template <typename VpcIdT = Aws::String>
118 void SetVpcId(VpcIdT&& value) {
119 m_vpcIdHasBeenSet = true;
120 m_vpcId = std::forward<VpcIdT>(value);
121 }
122 template <typename VpcIdT = Aws::String>
124 SetVpcId(std::forward<VpcIdT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::String& GetResourceConfigurationId() const { return m_resourceConfigurationId; }
135 inline bool ResourceConfigurationIdHasBeenSet() const { return m_resourceConfigurationIdHasBeenSet; }
136 template <typename ResourceConfigurationIdT = Aws::String>
137 void SetResourceConfigurationId(ResourceConfigurationIdT&& value) {
138 m_resourceConfigurationIdHasBeenSet = true;
139 m_resourceConfigurationId = std::forward<ResourceConfigurationIdT>(value);
140 }
141 template <typename ResourceConfigurationIdT = Aws::String>
142 PrivateConnectionSummary& WithResourceConfigurationId(ResourceConfigurationIdT&& value) {
143 SetResourceConfigurationId(std::forward<ResourceConfigurationIdT>(value));
144 return *this;
145 }
147
149
152 inline PrivateConnectionStatus GetStatus() const { return m_status; }
153 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
155 m_statusHasBeenSet = true;
156 m_status = value;
157 }
159 SetStatus(value);
160 return *this;
161 }
163
165
169 inline const Aws::Utils::DateTime& GetCertificateExpiryTime() const { return m_certificateExpiryTime; }
170 inline bool CertificateExpiryTimeHasBeenSet() const { return m_certificateExpiryTimeHasBeenSet; }
171 template <typename CertificateExpiryTimeT = Aws::Utils::DateTime>
172 void SetCertificateExpiryTime(CertificateExpiryTimeT&& value) {
173 m_certificateExpiryTimeHasBeenSet = true;
174 m_certificateExpiryTime = std::forward<CertificateExpiryTimeT>(value);
175 }
176 template <typename CertificateExpiryTimeT = Aws::Utils::DateTime>
177 PrivateConnectionSummary& WithCertificateExpiryTime(CertificateExpiryTimeT&& value) {
178 SetCertificateExpiryTime(std::forward<CertificateExpiryTimeT>(value));
179 return *this;
180 }
182
184
187 inline ResourceConfigDnsResolution GetDnsResolution() const { return m_dnsResolution; }
188 inline bool DnsResolutionHasBeenSet() const { return m_dnsResolutionHasBeenSet; }
190 m_dnsResolutionHasBeenSet = true;
191 m_dnsResolution = value;
192 }
194 SetDnsResolution(value);
195 return *this;
196 }
198
200
204 inline const Aws::String& GetFailureMessage() const { return m_failureMessage; }
205 inline bool FailureMessageHasBeenSet() const { return m_failureMessageHasBeenSet; }
206 template <typename FailureMessageT = Aws::String>
207 void SetFailureMessage(FailureMessageT&& value) {
208 m_failureMessageHasBeenSet = true;
209 m_failureMessage = std::forward<FailureMessageT>(value);
210 }
211 template <typename FailureMessageT = Aws::String>
213 SetFailureMessage(std::forward<FailureMessageT>(value));
214 return *this;
215 }
217 private:
218 Aws::String m_name;
219
221
222 Aws::String m_resourceGatewayId;
223
224 Aws::String m_hostAddress;
225
226 Aws::String m_vpcId;
227
228 Aws::String m_resourceConfigurationId;
229
231
232 Aws::Utils::DateTime m_certificateExpiryTime{};
233
235
236 Aws::String m_failureMessage;
237 bool m_nameHasBeenSet = false;
238 bool m_typeHasBeenSet = false;
239 bool m_resourceGatewayIdHasBeenSet = false;
240 bool m_hostAddressHasBeenSet = false;
241 bool m_vpcIdHasBeenSet = false;
242 bool m_resourceConfigurationIdHasBeenSet = false;
243 bool m_statusHasBeenSet = false;
244 bool m_certificateExpiryTimeHasBeenSet = false;
245 bool m_dnsResolutionHasBeenSet = false;
246 bool m_failureMessageHasBeenSet = false;
247};
248
249} // namespace Model
250} // namespace DevOpsAgent
251} // namespace Aws
AWS_DEVOPSAGENT_API PrivateConnectionSummary(Aws::Utils::Json::JsonView jsonValue)
void SetCertificateExpiryTime(CertificateExpiryTimeT &&value)
const Aws::Utils::DateTime & GetCertificateExpiryTime() const
void SetResourceConfigurationId(ResourceConfigurationIdT &&value)
PrivateConnectionSummary & WithType(PrivateConnectionType value)
PrivateConnectionSummary & WithVpcId(VpcIdT &&value)
PrivateConnectionSummary & WithCertificateExpiryTime(CertificateExpiryTimeT &&value)
PrivateConnectionSummary & WithName(NameT &&value)
AWS_DEVOPSAGENT_API PrivateConnectionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVOPSAGENT_API PrivateConnectionSummary()=default
AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
PrivateConnectionSummary & WithResourceGatewayId(ResourceGatewayIdT &&value)
PrivateConnectionSummary & WithResourceConfigurationId(ResourceConfigurationIdT &&value)
PrivateConnectionSummary & WithStatus(PrivateConnectionStatus value)
void SetDnsResolution(ResourceConfigDnsResolution value)
PrivateConnectionSummary & WithDnsResolution(ResourceConfigDnsResolution value)
PrivateConnectionSummary & WithFailureMessage(FailureMessageT &&value)
PrivateConnectionSummary & WithHostAddress(HostAddressT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue