AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
CreateVpcConnectionResult.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 CreateVpcConnectionResult() = default;
33
35
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>
47 CreateVpcConnectionResult& WithVpcConnectionArn(VpcConnectionArnT&& value) {
48 SetVpcConnectionArn(std::forward<VpcConnectionArnT>(value));
49 return *this;
50 }
52
54
59 inline VpcConnectionState GetState() const { return m_state; }
60 inline void SetState(VpcConnectionState value) {
61 m_stateHasBeenSet = true;
62 m_state = value;
63 }
65 SetState(value);
66 return *this;
67 }
69
71
76 inline const Aws::String& GetAuthentication() const { return m_authentication; }
77 template <typename AuthenticationT = Aws::String>
78 void SetAuthentication(AuthenticationT&& value) {
79 m_authenticationHasBeenSet = true;
80 m_authentication = std::forward<AuthenticationT>(value);
81 }
82 template <typename AuthenticationT = Aws::String>
84 SetAuthentication(std::forward<AuthenticationT>(value));
85 return *this;
86 }
88
90
95 inline const Aws::String& GetVpcId() const { return m_vpcId; }
96 template <typename VpcIdT = Aws::String>
97 void SetVpcId(VpcIdT&& value) {
98 m_vpcIdHasBeenSet = true;
99 m_vpcId = std::forward<VpcIdT>(value);
100 }
101 template <typename VpcIdT = Aws::String>
103 SetVpcId(std::forward<VpcIdT>(value));
104 return *this;
105 }
107
109
114 inline const Aws::Vector<Aws::String>& GetClientSubnets() const { return m_clientSubnets; }
115 template <typename ClientSubnetsT = Aws::Vector<Aws::String>>
116 void SetClientSubnets(ClientSubnetsT&& value) {
117 m_clientSubnetsHasBeenSet = true;
118 m_clientSubnets = std::forward<ClientSubnetsT>(value);
119 }
120 template <typename ClientSubnetsT = Aws::Vector<Aws::String>>
122 SetClientSubnets(std::forward<ClientSubnetsT>(value));
123 return *this;
124 }
125 template <typename ClientSubnetsT = Aws::String>
127 m_clientSubnetsHasBeenSet = true;
128 m_clientSubnets.emplace_back(std::forward<ClientSubnetsT>(value));
129 return *this;
130 }
132
134
139 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const { return m_securityGroups; }
140 template <typename SecurityGroupsT = Aws::Vector<Aws::String>>
141 void SetSecurityGroups(SecurityGroupsT&& value) {
142 m_securityGroupsHasBeenSet = true;
143 m_securityGroups = std::forward<SecurityGroupsT>(value);
144 }
145 template <typename SecurityGroupsT = Aws::Vector<Aws::String>>
147 SetSecurityGroups(std::forward<SecurityGroupsT>(value));
148 return *this;
149 }
150 template <typename SecurityGroupsT = Aws::String>
152 m_securityGroupsHasBeenSet = true;
153 m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value));
154 return *this;
155 }
157
159
164 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
165 template <typename CreationTimeT = Aws::Utils::DateTime>
166 void SetCreationTime(CreationTimeT&& value) {
167 m_creationTimeHasBeenSet = true;
168 m_creationTime = std::forward<CreationTimeT>(value);
169 }
170 template <typename CreationTimeT = Aws::Utils::DateTime>
172 SetCreationTime(std::forward<CreationTimeT>(value));
173 return *this;
174 }
176
178
183 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
184 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
185 void SetTags(TagsT&& value) {
186 m_tagsHasBeenSet = true;
187 m_tags = std::forward<TagsT>(value);
188 }
189 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
191 SetTags(std::forward<TagsT>(value));
192 return *this;
193 }
194 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
195 CreateVpcConnectionResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
196 m_tagsHasBeenSet = true;
197 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
198 return *this;
199 }
201
203
204 inline const Aws::String& GetRequestId() const { return m_requestId; }
205 template <typename RequestIdT = Aws::String>
206 void SetRequestId(RequestIdT&& value) {
207 m_requestIdHasBeenSet = true;
208 m_requestId = std::forward<RequestIdT>(value);
209 }
210 template <typename RequestIdT = Aws::String>
212 SetRequestId(std::forward<RequestIdT>(value));
213 return *this;
214 }
216 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
217
218 private:
219 Aws::String m_vpcConnectionArn;
220
222
223 Aws::String m_authentication;
224
225 Aws::String m_vpcId;
226
227 Aws::Vector<Aws::String> m_clientSubnets;
228
229 Aws::Vector<Aws::String> m_securityGroups;
230
231 Aws::Utils::DateTime m_creationTime{};
232
234
235 Aws::String m_requestId;
236 Aws::Http::HttpResponseCode m_HttpResponseCode;
237 bool m_vpcConnectionArnHasBeenSet = false;
238 bool m_stateHasBeenSet = false;
239 bool m_authenticationHasBeenSet = false;
240 bool m_vpcIdHasBeenSet = false;
241 bool m_clientSubnetsHasBeenSet = false;
242 bool m_securityGroupsHasBeenSet = false;
243 bool m_creationTimeHasBeenSet = false;
244 bool m_tagsHasBeenSet = false;
245 bool m_requestIdHasBeenSet = false;
246};
247
248} // namespace Model
249} // namespace Kafka
250} // namespace Aws
AWS_KAFKA_API CreateVpcConnectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateVpcConnectionResult & WithClientSubnets(ClientSubnetsT &&value)
CreateVpcConnectionResult & WithAuthentication(AuthenticationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateVpcConnectionResult & WithTags(TagsT &&value)
const Aws::Vector< Aws::String > & GetClientSubnets() const
AWS_KAFKA_API CreateVpcConnectionResult()=default
CreateVpcConnectionResult & WithRequestId(RequestIdT &&value)
CreateVpcConnectionResult & WithCreationTime(CreationTimeT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroups() const
CreateVpcConnectionResult & WithState(VpcConnectionState value)
CreateVpcConnectionResult & WithSecurityGroups(SecurityGroupsT &&value)
CreateVpcConnectionResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateVpcConnectionResult & WithVpcConnectionArn(VpcConnectionArnT &&value)
CreateVpcConnectionResult & WithVpcId(VpcIdT &&value)
CreateVpcConnectionResult & AddSecurityGroups(SecurityGroupsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreateVpcConnectionResult & AddClientSubnets(ClientSubnetsT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
AWS_KAFKA_API CreateVpcConnectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
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