AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateVpcConnectionResult.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 CreateVpcConnectionResult() = default;
32
34
39 inline const Aws::String& GetVpcConnectionArn() const { return m_vpcConnectionArn; }
40 template <typename VpcConnectionArnT = Aws::String>
41 void SetVpcConnectionArn(VpcConnectionArnT&& value) {
42 m_vpcConnectionArnHasBeenSet = true;
43 m_vpcConnectionArn = std::forward<VpcConnectionArnT>(value);
44 }
45 template <typename VpcConnectionArnT = Aws::String>
46 CreateVpcConnectionResult& WithVpcConnectionArn(VpcConnectionArnT&& value) {
47 SetVpcConnectionArn(std::forward<VpcConnectionArnT>(value));
48 return *this;
49 }
51
53
58 inline VpcConnectionState GetState() const { return m_state; }
59 inline void SetState(VpcConnectionState value) {
60 m_stateHasBeenSet = true;
61 m_state = value;
62 }
64 SetState(value);
65 return *this;
66 }
68
70
75 inline const Aws::String& GetAuthentication() const { return m_authentication; }
76 template <typename AuthenticationT = Aws::String>
77 void SetAuthentication(AuthenticationT&& value) {
78 m_authenticationHasBeenSet = true;
79 m_authentication = std::forward<AuthenticationT>(value);
80 }
81 template <typename AuthenticationT = Aws::String>
83 SetAuthentication(std::forward<AuthenticationT>(value));
84 return *this;
85 }
87
89
94 inline const Aws::String& GetVpcId() const { return m_vpcId; }
95 template <typename VpcIdT = Aws::String>
96 void SetVpcId(VpcIdT&& value) {
97 m_vpcIdHasBeenSet = true;
98 m_vpcId = std::forward<VpcIdT>(value);
99 }
100 template <typename VpcIdT = Aws::String>
102 SetVpcId(std::forward<VpcIdT>(value));
103 return *this;
104 }
106
108
113 inline const Aws::Vector<Aws::String>& GetClientSubnets() const { return m_clientSubnets; }
114 template <typename ClientSubnetsT = Aws::Vector<Aws::String>>
115 void SetClientSubnets(ClientSubnetsT&& value) {
116 m_clientSubnetsHasBeenSet = true;
117 m_clientSubnets = std::forward<ClientSubnetsT>(value);
118 }
119 template <typename ClientSubnetsT = Aws::Vector<Aws::String>>
121 SetClientSubnets(std::forward<ClientSubnetsT>(value));
122 return *this;
123 }
124 template <typename ClientSubnetsT = Aws::String>
126 m_clientSubnetsHasBeenSet = true;
127 m_clientSubnets.emplace_back(std::forward<ClientSubnetsT>(value));
128 return *this;
129 }
131
133
138 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const { return m_securityGroups; }
139 template <typename SecurityGroupsT = Aws::Vector<Aws::String>>
140 void SetSecurityGroups(SecurityGroupsT&& value) {
141 m_securityGroupsHasBeenSet = true;
142 m_securityGroups = std::forward<SecurityGroupsT>(value);
143 }
144 template <typename SecurityGroupsT = Aws::Vector<Aws::String>>
146 SetSecurityGroups(std::forward<SecurityGroupsT>(value));
147 return *this;
148 }
149 template <typename SecurityGroupsT = Aws::String>
151 m_securityGroupsHasBeenSet = true;
152 m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value));
153 return *this;
154 }
156
158
163 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
164 template <typename CreationTimeT = Aws::Utils::DateTime>
165 void SetCreationTime(CreationTimeT&& value) {
166 m_creationTimeHasBeenSet = true;
167 m_creationTime = std::forward<CreationTimeT>(value);
168 }
169 template <typename CreationTimeT = Aws::Utils::DateTime>
171 SetCreationTime(std::forward<CreationTimeT>(value));
172 return *this;
173 }
175
177
182 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
183 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
184 void SetTags(TagsT&& value) {
185 m_tagsHasBeenSet = true;
186 m_tags = std::forward<TagsT>(value);
187 }
188 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
190 SetTags(std::forward<TagsT>(value));
191 return *this;
192 }
193 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
194 CreateVpcConnectionResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
195 m_tagsHasBeenSet = true;
196 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
197 return *this;
198 }
200
202
203 inline const Aws::String& GetRequestId() const { return m_requestId; }
204 template <typename RequestIdT = Aws::String>
205 void SetRequestId(RequestIdT&& value) {
206 m_requestIdHasBeenSet = true;
207 m_requestId = std::forward<RequestIdT>(value);
208 }
209 template <typename RequestIdT = Aws::String>
211 SetRequestId(std::forward<RequestIdT>(value));
212 return *this;
213 }
215 private:
216 Aws::String m_vpcConnectionArn;
217
219
220 Aws::String m_authentication;
221
222 Aws::String m_vpcId;
223
224 Aws::Vector<Aws::String> m_clientSubnets;
225
226 Aws::Vector<Aws::String> m_securityGroups;
227
228 Aws::Utils::DateTime m_creationTime{};
229
231
232 Aws::String m_requestId;
233 bool m_vpcConnectionArnHasBeenSet = false;
234 bool m_stateHasBeenSet = false;
235 bool m_authenticationHasBeenSet = false;
236 bool m_vpcIdHasBeenSet = false;
237 bool m_clientSubnetsHasBeenSet = false;
238 bool m_securityGroupsHasBeenSet = false;
239 bool m_creationTimeHasBeenSet = false;
240 bool m_tagsHasBeenSet = false;
241 bool m_requestIdHasBeenSet = false;
242};
243
244} // namespace Model
245} // namespace Kafka
246} // 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)
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