AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
CreatePrivateConnectionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
12#include <aws/devops-agent/model/PrivateConnectionStatus.h>
13#include <aws/devops-agent/model/PrivateConnectionType.h>
14#include <aws/devops-agent/model/ResourceConfigDnsResolution.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace DevOpsAgent {
28namespace Model {
36 public:
37 AWS_DEVOPSAGENT_API CreatePrivateConnectionResult() = default;
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
62 inline PrivateConnectionType GetType() const { return m_type; }
63 inline void SetType(PrivateConnectionType value) {
64 m_typeHasBeenSet = true;
65 m_type = value;
66 }
68 SetType(value);
69 return *this;
70 }
72
74
78 inline const Aws::String& GetResourceGatewayId() const { return m_resourceGatewayId; }
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>
86 SetResourceGatewayId(std::forward<ResourceGatewayIdT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetHostAddress() const { return m_hostAddress; }
97 template <typename HostAddressT = Aws::String>
98 void SetHostAddress(HostAddressT&& value) {
99 m_hostAddressHasBeenSet = true;
100 m_hostAddress = std::forward<HostAddressT>(value);
101 }
102 template <typename HostAddressT = Aws::String>
104 SetHostAddress(std::forward<HostAddressT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::String& GetVpcId() const { return m_vpcId; }
115 template <typename VpcIdT = Aws::String>
116 void SetVpcId(VpcIdT&& value) {
117 m_vpcIdHasBeenSet = true;
118 m_vpcId = std::forward<VpcIdT>(value);
119 }
120 template <typename VpcIdT = Aws::String>
122 SetVpcId(std::forward<VpcIdT>(value));
123 return *this;
124 }
126
128
132 inline const Aws::String& GetResourceConfigurationId() const { return m_resourceConfigurationId; }
133 template <typename ResourceConfigurationIdT = Aws::String>
134 void SetResourceConfigurationId(ResourceConfigurationIdT&& value) {
135 m_resourceConfigurationIdHasBeenSet = true;
136 m_resourceConfigurationId = std::forward<ResourceConfigurationIdT>(value);
137 }
138 template <typename ResourceConfigurationIdT = Aws::String>
140 SetResourceConfigurationId(std::forward<ResourceConfigurationIdT>(value));
141 return *this;
142 }
144
146
149 inline PrivateConnectionStatus GetStatus() const { return m_status; }
151 m_statusHasBeenSet = true;
152 m_status = value;
153 }
155 SetStatus(value);
156 return *this;
157 }
159
161
165 inline const Aws::Utils::DateTime& GetCertificateExpiryTime() const { return m_certificateExpiryTime; }
166 template <typename CertificateExpiryTimeT = Aws::Utils::DateTime>
167 void SetCertificateExpiryTime(CertificateExpiryTimeT&& value) {
168 m_certificateExpiryTimeHasBeenSet = true;
169 m_certificateExpiryTime = std::forward<CertificateExpiryTimeT>(value);
170 }
171 template <typename CertificateExpiryTimeT = Aws::Utils::DateTime>
173 SetCertificateExpiryTime(std::forward<CertificateExpiryTimeT>(value));
174 return *this;
175 }
177
179
182 inline ResourceConfigDnsResolution GetDnsResolution() const { return m_dnsResolution; }
184 m_dnsResolutionHasBeenSet = true;
185 m_dnsResolution = value;
186 }
188 SetDnsResolution(value);
189 return *this;
190 }
192
194
198 inline const Aws::String& GetFailureMessage() const { return m_failureMessage; }
199 template <typename FailureMessageT = Aws::String>
200 void SetFailureMessage(FailureMessageT&& value) {
201 m_failureMessageHasBeenSet = true;
202 m_failureMessage = std::forward<FailureMessageT>(value);
203 }
204 template <typename FailureMessageT = Aws::String>
206 SetFailureMessage(std::forward<FailureMessageT>(value));
207 return *this;
208 }
210
212
215 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
216 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
217 void SetTags(TagsT&& value) {
218 m_tagsHasBeenSet = true;
219 m_tags = std::forward<TagsT>(value);
220 }
221 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
223 SetTags(std::forward<TagsT>(value));
224 return *this;
225 }
226 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
227 CreatePrivateConnectionResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
228 m_tagsHasBeenSet = true;
229 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
230 return *this;
231 }
233
235
236 inline const Aws::String& GetRequestId() const { return m_requestId; }
237 template <typename RequestIdT = Aws::String>
238 void SetRequestId(RequestIdT&& value) {
239 m_requestIdHasBeenSet = true;
240 m_requestId = std::forward<RequestIdT>(value);
241 }
242 template <typename RequestIdT = Aws::String>
244 SetRequestId(std::forward<RequestIdT>(value));
245 return *this;
246 }
248 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
249
250 private:
251 Aws::String m_name;
252
254
255 Aws::String m_resourceGatewayId;
256
257 Aws::String m_hostAddress;
258
259 Aws::String m_vpcId;
260
261 Aws::String m_resourceConfigurationId;
262
264
265 Aws::Utils::DateTime m_certificateExpiryTime{};
266
268
269 Aws::String m_failureMessage;
270
272
273 Aws::String m_requestId;
274 Aws::Http::HttpResponseCode m_HttpResponseCode;
275 bool m_nameHasBeenSet = false;
276 bool m_typeHasBeenSet = false;
277 bool m_resourceGatewayIdHasBeenSet = false;
278 bool m_hostAddressHasBeenSet = false;
279 bool m_vpcIdHasBeenSet = false;
280 bool m_resourceConfigurationIdHasBeenSet = false;
281 bool m_statusHasBeenSet = false;
282 bool m_certificateExpiryTimeHasBeenSet = false;
283 bool m_dnsResolutionHasBeenSet = false;
284 bool m_failureMessageHasBeenSet = false;
285 bool m_tagsHasBeenSet = false;
286 bool m_requestIdHasBeenSet = false;
287};
288
289} // namespace Model
290} // namespace DevOpsAgent
291} // namespace Aws
AWS_DEVOPSAGENT_API CreatePrivateConnectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreatePrivateConnectionResult & WithTags(TagsT &&value)
CreatePrivateConnectionResult & WithResourceGatewayId(ResourceGatewayIdT &&value)
CreatePrivateConnectionResult & WithRequestId(RequestIdT &&value)
AWS_DEVOPSAGENT_API CreatePrivateConnectionResult()=default
CreatePrivateConnectionResult & WithResourceConfigurationId(ResourceConfigurationIdT &&value)
CreatePrivateConnectionResult & WithStatus(PrivateConnectionStatus value)
CreatePrivateConnectionResult & WithName(NameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_DEVOPSAGENT_API CreatePrivateConnectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreatePrivateConnectionResult & WithFailureMessage(FailureMessageT &&value)
CreatePrivateConnectionResult & WithCertificateExpiryTime(CertificateExpiryTimeT &&value)
CreatePrivateConnectionResult & WithHostAddress(HostAddressT &&value)
CreatePrivateConnectionResult & WithType(PrivateConnectionType value)
CreatePrivateConnectionResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreatePrivateConnectionResult & WithVpcId(VpcIdT &&value)
CreatePrivateConnectionResult & WithDnsResolution(ResourceConfigDnsResolution 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