AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribeVpcConnectionResult.h
1
6#pragma once
7#include <aws/kafka/Kafka_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kafka/model/VpcConnectionState.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace Kafka
28{
29namespace Model
30{
32 {
33 public:
34 AWS_KAFKA_API DescribeVpcConnectionResult() = default;
37
38
40
46 inline const Aws::String& GetVpcConnectionArn() const { return m_vpcConnectionArn; }
47 template<typename VpcConnectionArnT = Aws::String>
48 void SetVpcConnectionArn(VpcConnectionArnT&& value) { m_vpcConnectionArnHasBeenSet = true; m_vpcConnectionArn = std::forward<VpcConnectionArnT>(value); }
49 template<typename VpcConnectionArnT = Aws::String>
50 DescribeVpcConnectionResult& WithVpcConnectionArn(VpcConnectionArnT&& value) { SetVpcConnectionArn(std::forward<VpcConnectionArnT>(value)); return *this;}
52
54
60 inline const Aws::String& GetTargetClusterArn() const { return m_targetClusterArn; }
61 template<typename TargetClusterArnT = Aws::String>
62 void SetTargetClusterArn(TargetClusterArnT&& value) { m_targetClusterArnHasBeenSet = true; m_targetClusterArn = std::forward<TargetClusterArnT>(value); }
63 template<typename TargetClusterArnT = Aws::String>
64 DescribeVpcConnectionResult& WithTargetClusterArn(TargetClusterArnT&& value) { SetTargetClusterArn(std::forward<TargetClusterArnT>(value)); return *this;}
66
68
73 inline VpcConnectionState GetState() const { return m_state; }
74 inline void SetState(VpcConnectionState value) { m_stateHasBeenSet = true; m_state = value; }
75 inline DescribeVpcConnectionResult& WithState(VpcConnectionState value) { SetState(value); return *this;}
77
79
84 inline const Aws::String& GetAuthentication() const { return m_authentication; }
85 template<typename AuthenticationT = Aws::String>
86 void SetAuthentication(AuthenticationT&& value) { m_authenticationHasBeenSet = true; m_authentication = std::forward<AuthenticationT>(value); }
87 template<typename AuthenticationT = Aws::String>
88 DescribeVpcConnectionResult& WithAuthentication(AuthenticationT&& value) { SetAuthentication(std::forward<AuthenticationT>(value)); return *this;}
90
92
97 inline const Aws::String& GetVpcId() const { return m_vpcId; }
98 template<typename VpcIdT = Aws::String>
99 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
100 template<typename VpcIdT = Aws::String>
101 DescribeVpcConnectionResult& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
103
105
110 inline const Aws::Vector<Aws::String>& GetSubnets() const { return m_subnets; }
111 template<typename SubnetsT = Aws::Vector<Aws::String>>
112 void SetSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets = std::forward<SubnetsT>(value); }
113 template<typename SubnetsT = Aws::Vector<Aws::String>>
114 DescribeVpcConnectionResult& WithSubnets(SubnetsT&& value) { SetSubnets(std::forward<SubnetsT>(value)); return *this;}
115 template<typename SubnetsT = Aws::String>
116 DescribeVpcConnectionResult& AddSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets.emplace_back(std::forward<SubnetsT>(value)); return *this; }
118
120
125 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const { return m_securityGroups; }
126 template<typename SecurityGroupsT = Aws::Vector<Aws::String>>
127 void SetSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::forward<SecurityGroupsT>(value); }
128 template<typename SecurityGroupsT = Aws::Vector<Aws::String>>
129 DescribeVpcConnectionResult& WithSecurityGroups(SecurityGroupsT&& value) { SetSecurityGroups(std::forward<SecurityGroupsT>(value)); return *this;}
130 template<typename SecurityGroupsT = Aws::String>
131 DescribeVpcConnectionResult& AddSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value)); return *this; }
133
135
140 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
141 template<typename CreationTimeT = Aws::Utils::DateTime>
142 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
143 template<typename CreationTimeT = Aws::Utils::DateTime>
144 DescribeVpcConnectionResult& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
146
148
153 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
154 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
155 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
156 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
157 DescribeVpcConnectionResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
158 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
159 DescribeVpcConnectionResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
160 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
161 }
163
165
166 inline const Aws::String& GetRequestId() const { return m_requestId; }
167 template<typename RequestIdT = Aws::String>
168 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
169 template<typename RequestIdT = Aws::String>
170 DescribeVpcConnectionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
172 private:
173
174 Aws::String m_vpcConnectionArn;
175 bool m_vpcConnectionArnHasBeenSet = false;
176
177 Aws::String m_targetClusterArn;
178 bool m_targetClusterArnHasBeenSet = false;
179
181 bool m_stateHasBeenSet = false;
182
183 Aws::String m_authentication;
184 bool m_authenticationHasBeenSet = false;
185
186 Aws::String m_vpcId;
187 bool m_vpcIdHasBeenSet = false;
188
189 Aws::Vector<Aws::String> m_subnets;
190 bool m_subnetsHasBeenSet = false;
191
192 Aws::Vector<Aws::String> m_securityGroups;
193 bool m_securityGroupsHasBeenSet = false;
194
195 Aws::Utils::DateTime m_creationTime{};
196 bool m_creationTimeHasBeenSet = false;
197
199 bool m_tagsHasBeenSet = false;
200
201 Aws::String m_requestId;
202 bool m_requestIdHasBeenSet = false;
203 };
204
205} // namespace Model
206} // namespace Kafka
207} // 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