AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DescribeVpcConnectionResult.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/kafka/Kafka_EXPORTS.h>
12#include <aws/kafka/model/VpcConnectionState.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Kafka {
26namespace Model {
28 public:
29 AWS_KAFKA_API DescribeVpcConnectionResult() = default;
32
34
40 inline const Aws::String& GetVpcConnectionArn() const { return m_vpcConnectionArn; }
41 template <typename VpcConnectionArnT = Aws::String>
42 void SetVpcConnectionArn(VpcConnectionArnT&& value) {
43 m_vpcConnectionArnHasBeenSet = true;
44 m_vpcConnectionArn = std::forward<VpcConnectionArnT>(value);
45 }
46 template <typename VpcConnectionArnT = Aws::String>
48 SetVpcConnectionArn(std::forward<VpcConnectionArnT>(value));
49 return *this;
50 }
52
54
60 inline const Aws::String& GetTargetClusterArn() const { return m_targetClusterArn; }
61 template <typename TargetClusterArnT = Aws::String>
62 void SetTargetClusterArn(TargetClusterArnT&& value) {
63 m_targetClusterArnHasBeenSet = true;
64 m_targetClusterArn = std::forward<TargetClusterArnT>(value);
65 }
66 template <typename TargetClusterArnT = Aws::String>
68 SetTargetClusterArn(std::forward<TargetClusterArnT>(value));
69 return *this;
70 }
72
74
79 inline VpcConnectionState GetState() const { return m_state; }
80 inline void SetState(VpcConnectionState value) {
81 m_stateHasBeenSet = true;
82 m_state = value;
83 }
85 SetState(value);
86 return *this;
87 }
89
91
96 inline const Aws::String& GetAuthentication() const { return m_authentication; }
97 template <typename AuthenticationT = Aws::String>
98 void SetAuthentication(AuthenticationT&& value) {
99 m_authenticationHasBeenSet = true;
100 m_authentication = std::forward<AuthenticationT>(value);
101 }
102 template <typename AuthenticationT = Aws::String>
104 SetAuthentication(std::forward<AuthenticationT>(value));
105 return *this;
106 }
108
110
115 inline const Aws::String& GetVpcId() const { return m_vpcId; }
116 template <typename VpcIdT = Aws::String>
117 void SetVpcId(VpcIdT&& value) {
118 m_vpcIdHasBeenSet = true;
119 m_vpcId = std::forward<VpcIdT>(value);
120 }
121 template <typename VpcIdT = Aws::String>
123 SetVpcId(std::forward<VpcIdT>(value));
124 return *this;
125 }
127
129
134 inline const Aws::Vector<Aws::String>& GetSubnets() const { return m_subnets; }
135 template <typename SubnetsT = Aws::Vector<Aws::String>>
136 void SetSubnets(SubnetsT&& value) {
137 m_subnetsHasBeenSet = true;
138 m_subnets = std::forward<SubnetsT>(value);
139 }
140 template <typename SubnetsT = Aws::Vector<Aws::String>>
142 SetSubnets(std::forward<SubnetsT>(value));
143 return *this;
144 }
145 template <typename SubnetsT = Aws::String>
147 m_subnetsHasBeenSet = true;
148 m_subnets.emplace_back(std::forward<SubnetsT>(value));
149 return *this;
150 }
152
154
159 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const { return m_securityGroups; }
160 template <typename SecurityGroupsT = Aws::Vector<Aws::String>>
161 void SetSecurityGroups(SecurityGroupsT&& value) {
162 m_securityGroupsHasBeenSet = true;
163 m_securityGroups = std::forward<SecurityGroupsT>(value);
164 }
165 template <typename SecurityGroupsT = Aws::Vector<Aws::String>>
167 SetSecurityGroups(std::forward<SecurityGroupsT>(value));
168 return *this;
169 }
170 template <typename SecurityGroupsT = Aws::String>
172 m_securityGroupsHasBeenSet = true;
173 m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value));
174 return *this;
175 }
177
179
184 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
185 template <typename CreationTimeT = Aws::Utils::DateTime>
186 void SetCreationTime(CreationTimeT&& value) {
187 m_creationTimeHasBeenSet = true;
188 m_creationTime = std::forward<CreationTimeT>(value);
189 }
190 template <typename CreationTimeT = Aws::Utils::DateTime>
192 SetCreationTime(std::forward<CreationTimeT>(value));
193 return *this;
194 }
196
198
203 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
204 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
205 void SetTags(TagsT&& value) {
206 m_tagsHasBeenSet = true;
207 m_tags = std::forward<TagsT>(value);
208 }
209 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
211 SetTags(std::forward<TagsT>(value));
212 return *this;
213 }
214 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
215 DescribeVpcConnectionResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
216 m_tagsHasBeenSet = true;
217 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
218 return *this;
219 }
221
223
224 inline const Aws::String& GetRequestId() const { return m_requestId; }
225 template <typename RequestIdT = Aws::String>
226 void SetRequestId(RequestIdT&& value) {
227 m_requestIdHasBeenSet = true;
228 m_requestId = std::forward<RequestIdT>(value);
229 }
230 template <typename RequestIdT = Aws::String>
232 SetRequestId(std::forward<RequestIdT>(value));
233 return *this;
234 }
236 private:
237 Aws::String m_vpcConnectionArn;
238
239 Aws::String m_targetClusterArn;
240
242
243 Aws::String m_authentication;
244
245 Aws::String m_vpcId;
246
247 Aws::Vector<Aws::String> m_subnets;
248
249 Aws::Vector<Aws::String> m_securityGroups;
250
251 Aws::Utils::DateTime m_creationTime{};
252
254
255 Aws::String m_requestId;
256 bool m_vpcConnectionArnHasBeenSet = false;
257 bool m_targetClusterArnHasBeenSet = false;
258 bool m_stateHasBeenSet = false;
259 bool m_authenticationHasBeenSet = false;
260 bool m_vpcIdHasBeenSet = false;
261 bool m_subnetsHasBeenSet = false;
262 bool m_securityGroupsHasBeenSet = false;
263 bool m_creationTimeHasBeenSet = false;
264 bool m_tagsHasBeenSet = false;
265 bool m_requestIdHasBeenSet = false;
266};
267
268} // namespace Model
269} // namespace Kafka
270} // 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