AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
DescribePrivateConnectionResult.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
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace DevOpsAgent {
27namespace Model {
35 public:
36 AWS_DEVOPSAGENT_API DescribePrivateConnectionResult() = default;
39
41
44 inline const Aws::String& GetName() const { return m_name; }
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
61 inline PrivateConnectionType GetType() const { return m_type; }
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 template <typename ResourceGatewayIdT = Aws::String>
79 void SetResourceGatewayId(ResourceGatewayIdT&& value) {
80 m_resourceGatewayIdHasBeenSet = true;
81 m_resourceGatewayId = std::forward<ResourceGatewayIdT>(value);
82 }
83 template <typename ResourceGatewayIdT = Aws::String>
85 SetResourceGatewayId(std::forward<ResourceGatewayIdT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetHostAddress() const { return m_hostAddress; }
96 template <typename HostAddressT = Aws::String>
97 void SetHostAddress(HostAddressT&& value) {
98 m_hostAddressHasBeenSet = true;
99 m_hostAddress = std::forward<HostAddressT>(value);
100 }
101 template <typename HostAddressT = Aws::String>
103 SetHostAddress(std::forward<HostAddressT>(value));
104 return *this;
105 }
107
109
113 inline const Aws::String& GetVpcId() const { return m_vpcId; }
114 template <typename VpcIdT = Aws::String>
115 void SetVpcId(VpcIdT&& value) {
116 m_vpcIdHasBeenSet = true;
117 m_vpcId = std::forward<VpcIdT>(value);
118 }
119 template <typename VpcIdT = Aws::String>
121 SetVpcId(std::forward<VpcIdT>(value));
122 return *this;
123 }
125
127
131 inline const Aws::String& GetResourceConfigurationId() const { return m_resourceConfigurationId; }
132 template <typename ResourceConfigurationIdT = Aws::String>
133 void SetResourceConfigurationId(ResourceConfigurationIdT&& value) {
134 m_resourceConfigurationIdHasBeenSet = true;
135 m_resourceConfigurationId = std::forward<ResourceConfigurationIdT>(value);
136 }
137 template <typename ResourceConfigurationIdT = Aws::String>
139 SetResourceConfigurationId(std::forward<ResourceConfigurationIdT>(value));
140 return *this;
141 }
143
145
148 inline PrivateConnectionStatus GetStatus() const { return m_status; }
150 m_statusHasBeenSet = true;
151 m_status = value;
152 }
154 SetStatus(value);
155 return *this;
156 }
158
160
164 inline const Aws::Utils::DateTime& GetCertificateExpiryTime() const { return m_certificateExpiryTime; }
165 template <typename CertificateExpiryTimeT = Aws::Utils::DateTime>
166 void SetCertificateExpiryTime(CertificateExpiryTimeT&& value) {
167 m_certificateExpiryTimeHasBeenSet = true;
168 m_certificateExpiryTime = std::forward<CertificateExpiryTimeT>(value);
169 }
170 template <typename CertificateExpiryTimeT = Aws::Utils::DateTime>
172 SetCertificateExpiryTime(std::forward<CertificateExpiryTimeT>(value));
173 return *this;
174 }
176
178
181 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
182 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
183 void SetTags(TagsT&& value) {
184 m_tagsHasBeenSet = true;
185 m_tags = std::forward<TagsT>(value);
186 }
187 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
189 SetTags(std::forward<TagsT>(value));
190 return *this;
191 }
192 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
193 DescribePrivateConnectionResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
194 m_tagsHasBeenSet = true;
195 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
196 return *this;
197 }
199
201
202 inline const Aws::String& GetRequestId() const { return m_requestId; }
203 template <typename RequestIdT = Aws::String>
204 void SetRequestId(RequestIdT&& value) {
205 m_requestIdHasBeenSet = true;
206 m_requestId = std::forward<RequestIdT>(value);
207 }
208 template <typename RequestIdT = Aws::String>
210 SetRequestId(std::forward<RequestIdT>(value));
211 return *this;
212 }
214 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
215
216 private:
217 Aws::String m_name;
218
220
221 Aws::String m_resourceGatewayId;
222
223 Aws::String m_hostAddress;
224
225 Aws::String m_vpcId;
226
227 Aws::String m_resourceConfigurationId;
228
230
231 Aws::Utils::DateTime m_certificateExpiryTime{};
232
234
235 Aws::String m_requestId;
236 Aws::Http::HttpResponseCode m_HttpResponseCode;
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_tagsHasBeenSet = false;
246 bool m_requestIdHasBeenSet = false;
247};
248
249} // namespace Model
250} // namespace DevOpsAgent
251} // namespace Aws
AWS_DEVOPSAGENT_API DescribePrivateConnectionResult()=default
DescribePrivateConnectionResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
DescribePrivateConnectionResult & WithResourceConfigurationId(ResourceConfigurationIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
DescribePrivateConnectionResult & WithCertificateExpiryTime(CertificateExpiryTimeT &&value)
DescribePrivateConnectionResult & WithName(NameT &&value)
DescribePrivateConnectionResult & WithRequestId(RequestIdT &&value)
DescribePrivateConnectionResult & WithStatus(PrivateConnectionStatus value)
AWS_DEVOPSAGENT_API DescribePrivateConnectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribePrivateConnectionResult & WithVpcId(VpcIdT &&value)
DescribePrivateConnectionResult & WithType(PrivateConnectionType value)
AWS_DEVOPSAGENT_API DescribePrivateConnectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribePrivateConnectionResult & WithHostAddress(HostAddressT &&value)
DescribePrivateConnectionResult & WithResourceGatewayId(ResourceGatewayIdT &&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