AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
DescribeVpcConnectionResult.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/core/utils/memory/stl/AWSVector.h>
12#include <aws/kafka/Kafka_EXPORTS.h>
13#include <aws/kafka/model/VpcConnectionState.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 Kafka {
27namespace Model {
29 public:
30 AWS_KAFKA_API DescribeVpcConnectionResult() = default;
33
35
41 inline const Aws::String& GetVpcConnectionArn() const { return m_vpcConnectionArn; }
42 template <typename VpcConnectionArnT = Aws::String>
43 void SetVpcConnectionArn(VpcConnectionArnT&& value) {
44 m_vpcConnectionArnHasBeenSet = true;
45 m_vpcConnectionArn = std::forward<VpcConnectionArnT>(value);
46 }
47 template <typename VpcConnectionArnT = Aws::String>
49 SetVpcConnectionArn(std::forward<VpcConnectionArnT>(value));
50 return *this;
51 }
53
55
61 inline const Aws::String& GetTargetClusterArn() const { return m_targetClusterArn; }
62 template <typename TargetClusterArnT = Aws::String>
63 void SetTargetClusterArn(TargetClusterArnT&& value) {
64 m_targetClusterArnHasBeenSet = true;
65 m_targetClusterArn = std::forward<TargetClusterArnT>(value);
66 }
67 template <typename TargetClusterArnT = Aws::String>
69 SetTargetClusterArn(std::forward<TargetClusterArnT>(value));
70 return *this;
71 }
73
75
80 inline VpcConnectionState GetState() const { return m_state; }
81 inline void SetState(VpcConnectionState value) {
82 m_stateHasBeenSet = true;
83 m_state = value;
84 }
86 SetState(value);
87 return *this;
88 }
90
92
97 inline const Aws::String& GetAuthentication() const { return m_authentication; }
98 template <typename AuthenticationT = Aws::String>
99 void SetAuthentication(AuthenticationT&& value) {
100 m_authenticationHasBeenSet = true;
101 m_authentication = std::forward<AuthenticationT>(value);
102 }
103 template <typename AuthenticationT = Aws::String>
105 SetAuthentication(std::forward<AuthenticationT>(value));
106 return *this;
107 }
109
111
116 inline const Aws::String& GetVpcId() const { return m_vpcId; }
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
135 inline const Aws::Vector<Aws::String>& GetSubnets() const { return m_subnets; }
136 template <typename SubnetsT = Aws::Vector<Aws::String>>
137 void SetSubnets(SubnetsT&& value) {
138 m_subnetsHasBeenSet = true;
139 m_subnets = std::forward<SubnetsT>(value);
140 }
141 template <typename SubnetsT = Aws::Vector<Aws::String>>
143 SetSubnets(std::forward<SubnetsT>(value));
144 return *this;
145 }
146 template <typename SubnetsT = Aws::String>
148 m_subnetsHasBeenSet = true;
149 m_subnets.emplace_back(std::forward<SubnetsT>(value));
150 return *this;
151 }
153
155
160 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const { return m_securityGroups; }
161 template <typename SecurityGroupsT = Aws::Vector<Aws::String>>
162 void SetSecurityGroups(SecurityGroupsT&& value) {
163 m_securityGroupsHasBeenSet = true;
164 m_securityGroups = std::forward<SecurityGroupsT>(value);
165 }
166 template <typename SecurityGroupsT = Aws::Vector<Aws::String>>
168 SetSecurityGroups(std::forward<SecurityGroupsT>(value));
169 return *this;
170 }
171 template <typename SecurityGroupsT = Aws::String>
173 m_securityGroupsHasBeenSet = true;
174 m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value));
175 return *this;
176 }
178
180
185 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
186 template <typename CreationTimeT = Aws::Utils::DateTime>
187 void SetCreationTime(CreationTimeT&& value) {
188 m_creationTimeHasBeenSet = true;
189 m_creationTime = std::forward<CreationTimeT>(value);
190 }
191 template <typename CreationTimeT = Aws::Utils::DateTime>
193 SetCreationTime(std::forward<CreationTimeT>(value));
194 return *this;
195 }
197
199
204 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
205 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
206 void SetTags(TagsT&& value) {
207 m_tagsHasBeenSet = true;
208 m_tags = std::forward<TagsT>(value);
209 }
210 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
212 SetTags(std::forward<TagsT>(value));
213 return *this;
214 }
215 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
216 DescribeVpcConnectionResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
217 m_tagsHasBeenSet = true;
218 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
219 return *this;
220 }
222
224
225 inline const Aws::String& GetRequestId() const { return m_requestId; }
226 template <typename RequestIdT = Aws::String>
227 void SetRequestId(RequestIdT&& value) {
228 m_requestIdHasBeenSet = true;
229 m_requestId = std::forward<RequestIdT>(value);
230 }
231 template <typename RequestIdT = Aws::String>
233 SetRequestId(std::forward<RequestIdT>(value));
234 return *this;
235 }
237 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
238
239 private:
240 Aws::String m_vpcConnectionArn;
241
242 Aws::String m_targetClusterArn;
243
245
246 Aws::String m_authentication;
247
248 Aws::String m_vpcId;
249
250 Aws::Vector<Aws::String> m_subnets;
251
252 Aws::Vector<Aws::String> m_securityGroups;
253
254 Aws::Utils::DateTime m_creationTime{};
255
257
258 Aws::String m_requestId;
259 Aws::Http::HttpResponseCode m_HttpResponseCode;
260 bool m_vpcConnectionArnHasBeenSet = false;
261 bool m_targetClusterArnHasBeenSet = false;
262 bool m_stateHasBeenSet = false;
263 bool m_authenticationHasBeenSet = false;
264 bool m_vpcIdHasBeenSet = false;
265 bool m_subnetsHasBeenSet = false;
266 bool m_securityGroupsHasBeenSet = false;
267 bool m_creationTimeHasBeenSet = false;
268 bool m_tagsHasBeenSet = false;
269 bool m_requestIdHasBeenSet = false;
270};
271
272} // namespace Model
273} // namespace Kafka
274} // namespace Aws
DescribeVpcConnectionResult & WithVpcConnectionArn(VpcConnectionArnT &&value)
AWS_KAFKA_API DescribeVpcConnectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeVpcConnectionResult & WithState(VpcConnectionState value)
AWS_KAFKA_API DescribeVpcConnectionResult()=default
DescribeVpcConnectionResult & AddSubnets(SubnetsT &&value)
DescribeVpcConnectionResult & WithSecurityGroups(SecurityGroupsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
DescribeVpcConnectionResult & WithTargetClusterArn(TargetClusterArnT &&value)
const Aws::Vector< Aws::String > & GetSubnets() const
DescribeVpcConnectionResult & WithAuthentication(AuthenticationT &&value)
DescribeVpcConnectionResult & WithCreationTime(CreationTimeT &&value)
DescribeVpcConnectionResult & WithRequestId(RequestIdT &&value)
DescribeVpcConnectionResult & WithTags(TagsT &&value)
AWS_KAFKA_API DescribeVpcConnectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeVpcConnectionResult & WithVpcId(VpcIdT &&value)
DescribeVpcConnectionResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
DescribeVpcConnectionResult & WithSubnets(SubnetsT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroups() const
DescribeVpcConnectionResult & AddSecurityGroups(SecurityGroupsT &&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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue