AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateVpcConnectionResult.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 CreateVpcConnectionResult() = default;
37
38
40
45 inline const Aws::String& GetVpcConnectionArn() const { return m_vpcConnectionArn; }
46 template<typename VpcConnectionArnT = Aws::String>
47 void SetVpcConnectionArn(VpcConnectionArnT&& value) { m_vpcConnectionArnHasBeenSet = true; m_vpcConnectionArn = std::forward<VpcConnectionArnT>(value); }
48 template<typename VpcConnectionArnT = Aws::String>
49 CreateVpcConnectionResult& WithVpcConnectionArn(VpcConnectionArnT&& value) { SetVpcConnectionArn(std::forward<VpcConnectionArnT>(value)); return *this;}
51
53
58 inline VpcConnectionState GetState() const { return m_state; }
59 inline void SetState(VpcConnectionState value) { m_stateHasBeenSet = true; m_state = value; }
60 inline CreateVpcConnectionResult& WithState(VpcConnectionState value) { SetState(value); return *this;}
62
64
69 inline const Aws::String& GetAuthentication() const { return m_authentication; }
70 template<typename AuthenticationT = Aws::String>
71 void SetAuthentication(AuthenticationT&& value) { m_authenticationHasBeenSet = true; m_authentication = std::forward<AuthenticationT>(value); }
72 template<typename AuthenticationT = Aws::String>
73 CreateVpcConnectionResult& WithAuthentication(AuthenticationT&& value) { SetAuthentication(std::forward<AuthenticationT>(value)); return *this;}
75
77
82 inline const Aws::String& GetVpcId() const { return m_vpcId; }
83 template<typename VpcIdT = Aws::String>
84 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
85 template<typename VpcIdT = Aws::String>
86 CreateVpcConnectionResult& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
88
90
95 inline const Aws::Vector<Aws::String>& GetClientSubnets() const { return m_clientSubnets; }
96 template<typename ClientSubnetsT = Aws::Vector<Aws::String>>
97 void SetClientSubnets(ClientSubnetsT&& value) { m_clientSubnetsHasBeenSet = true; m_clientSubnets = std::forward<ClientSubnetsT>(value); }
98 template<typename ClientSubnetsT = Aws::Vector<Aws::String>>
99 CreateVpcConnectionResult& WithClientSubnets(ClientSubnetsT&& value) { SetClientSubnets(std::forward<ClientSubnetsT>(value)); return *this;}
100 template<typename ClientSubnetsT = Aws::String>
101 CreateVpcConnectionResult& AddClientSubnets(ClientSubnetsT&& value) { m_clientSubnetsHasBeenSet = true; m_clientSubnets.emplace_back(std::forward<ClientSubnetsT>(value)); return *this; }
103
105
110 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const { return m_securityGroups; }
111 template<typename SecurityGroupsT = Aws::Vector<Aws::String>>
112 void SetSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::forward<SecurityGroupsT>(value); }
113 template<typename SecurityGroupsT = Aws::Vector<Aws::String>>
114 CreateVpcConnectionResult& WithSecurityGroups(SecurityGroupsT&& value) { SetSecurityGroups(std::forward<SecurityGroupsT>(value)); return *this;}
115 template<typename SecurityGroupsT = Aws::String>
116 CreateVpcConnectionResult& AddSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value)); return *this; }
118
120
125 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
126 template<typename CreationTimeT = Aws::Utils::DateTime>
127 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
128 template<typename CreationTimeT = Aws::Utils::DateTime>
129 CreateVpcConnectionResult& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
131
133
138 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
139 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
140 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
141 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
142 CreateVpcConnectionResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
143 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
144 CreateVpcConnectionResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
145 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
146 }
148
150
151 inline const Aws::String& GetRequestId() const { return m_requestId; }
152 template<typename RequestIdT = Aws::String>
153 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
154 template<typename RequestIdT = Aws::String>
155 CreateVpcConnectionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
157 private:
158
159 Aws::String m_vpcConnectionArn;
160 bool m_vpcConnectionArnHasBeenSet = false;
161
163 bool m_stateHasBeenSet = false;
164
165 Aws::String m_authentication;
166 bool m_authenticationHasBeenSet = false;
167
168 Aws::String m_vpcId;
169 bool m_vpcIdHasBeenSet = false;
170
171 Aws::Vector<Aws::String> m_clientSubnets;
172 bool m_clientSubnetsHasBeenSet = false;
173
174 Aws::Vector<Aws::String> m_securityGroups;
175 bool m_securityGroupsHasBeenSet = false;
176
177 Aws::Utils::DateTime m_creationTime{};
178 bool m_creationTimeHasBeenSet = false;
179
181 bool m_tagsHasBeenSet = false;
182
183 Aws::String m_requestId;
184 bool m_requestIdHasBeenSet = false;
185 };
186
187} // namespace Model
188} // namespace Kafka
189} // 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