AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateVpcConnectionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/kafka/KafkaRequest.h>
11#include <aws/kafka/Kafka_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Kafka {
17namespace Model {
18
22 public:
23 AWS_KAFKA_API CreateVpcConnectionRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateVpcConnection"; }
30
31 AWS_KAFKA_API Aws::String SerializePayload() const override;
32
34
40 inline const Aws::String& GetTargetClusterArn() const { return m_targetClusterArn; }
41 inline bool TargetClusterArnHasBeenSet() const { return m_targetClusterArnHasBeenSet; }
42 template <typename TargetClusterArnT = Aws::String>
43 void SetTargetClusterArn(TargetClusterArnT&& value) {
44 m_targetClusterArnHasBeenSet = true;
45 m_targetClusterArn = std::forward<TargetClusterArnT>(value);
46 }
47 template <typename TargetClusterArnT = Aws::String>
49 SetTargetClusterArn(std::forward<TargetClusterArnT>(value));
50 return *this;
51 }
53
55
60 inline const Aws::String& GetAuthentication() const { return m_authentication; }
61 inline bool AuthenticationHasBeenSet() const { return m_authenticationHasBeenSet; }
62 template <typename AuthenticationT = Aws::String>
63 void SetAuthentication(AuthenticationT&& value) {
64 m_authenticationHasBeenSet = true;
65 m_authentication = std::forward<AuthenticationT>(value);
66 }
67 template <typename AuthenticationT = Aws::String>
69 SetAuthentication(std::forward<AuthenticationT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::String& GetVpcId() const { return m_vpcId; }
81 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
82 template <typename VpcIdT = Aws::String>
83 void SetVpcId(VpcIdT&& value) {
84 m_vpcIdHasBeenSet = true;
85 m_vpcId = std::forward<VpcIdT>(value);
86 }
87 template <typename VpcIdT = Aws::String>
89 SetVpcId(std::forward<VpcIdT>(value));
90 return *this;
91 }
93
95
100 inline const Aws::Vector<Aws::String>& GetClientSubnets() const { return m_clientSubnets; }
101 inline bool ClientSubnetsHasBeenSet() const { return m_clientSubnetsHasBeenSet; }
102 template <typename ClientSubnetsT = Aws::Vector<Aws::String>>
103 void SetClientSubnets(ClientSubnetsT&& value) {
104 m_clientSubnetsHasBeenSet = true;
105 m_clientSubnets = std::forward<ClientSubnetsT>(value);
106 }
107 template <typename ClientSubnetsT = Aws::Vector<Aws::String>>
109 SetClientSubnets(std::forward<ClientSubnetsT>(value));
110 return *this;
111 }
112 template <typename ClientSubnetsT = Aws::String>
114 m_clientSubnetsHasBeenSet = true;
115 m_clientSubnets.emplace_back(std::forward<ClientSubnetsT>(value));
116 return *this;
117 }
119
121
126 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const { return m_securityGroups; }
127 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
128 template <typename SecurityGroupsT = Aws::Vector<Aws::String>>
129 void SetSecurityGroups(SecurityGroupsT&& value) {
130 m_securityGroupsHasBeenSet = true;
131 m_securityGroups = std::forward<SecurityGroupsT>(value);
132 }
133 template <typename SecurityGroupsT = Aws::Vector<Aws::String>>
135 SetSecurityGroups(std::forward<SecurityGroupsT>(value));
136 return *this;
137 }
138 template <typename SecurityGroupsT = Aws::String>
140 m_securityGroupsHasBeenSet = true;
141 m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value));
142 return *this;
143 }
145
147
152 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
153 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
154 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
155 void SetTags(TagsT&& value) {
156 m_tagsHasBeenSet = true;
157 m_tags = std::forward<TagsT>(value);
158 }
159 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
161 SetTags(std::forward<TagsT>(value));
162 return *this;
163 }
164 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
165 CreateVpcConnectionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
166 m_tagsHasBeenSet = true;
167 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
168 return *this;
169 }
171 private:
172 Aws::String m_targetClusterArn;
173
174 Aws::String m_authentication;
175
176 Aws::String m_vpcId;
177
178 Aws::Vector<Aws::String> m_clientSubnets;
179
180 Aws::Vector<Aws::String> m_securityGroups;
181
183 bool m_targetClusterArnHasBeenSet = false;
184 bool m_authenticationHasBeenSet = false;
185 bool m_vpcIdHasBeenSet = false;
186 bool m_clientSubnetsHasBeenSet = false;
187 bool m_securityGroupsHasBeenSet = false;
188 bool m_tagsHasBeenSet = false;
189};
190
191} // namespace Model
192} // namespace Kafka
193} // namespace Aws
const Aws::Vector< Aws::String > & GetClientSubnets() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateVpcConnectionRequest & AddSecurityGroups(SecurityGroupsT &&value)
AWS_KAFKA_API Aws::String SerializePayload() const override
CreateVpcConnectionRequest & WithClientSubnets(ClientSubnetsT &&value)
CreateVpcConnectionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateVpcConnectionRequest & WithTargetClusterArn(TargetClusterArnT &&value)
AWS_KAFKA_API CreateVpcConnectionRequest()=default
CreateVpcConnectionRequest & AddClientSubnets(ClientSubnetsT &&value)
CreateVpcConnectionRequest & WithVpcId(VpcIdT &&value)
CreateVpcConnectionRequest & WithSecurityGroups(SecurityGroupsT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroups() const
virtual const char * GetServiceRequestName() const override
CreateVpcConnectionRequest & WithAuthentication(AuthenticationT &&value)
CreateVpcConnectionRequest & WithTags(TagsT &&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