AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateVpcConnectionRequest.h
1
6#pragma once
7#include <aws/kafka/Kafka_EXPORTS.h>
8#include <aws/kafka/KafkaRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Kafka
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_KAFKA_API CreateVpcConnectionRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateVpcConnection"; }
33
34 AWS_KAFKA_API Aws::String SerializePayload() const override;
35
36
38
44 inline const Aws::String& GetTargetClusterArn() const { return m_targetClusterArn; }
45 inline bool TargetClusterArnHasBeenSet() const { return m_targetClusterArnHasBeenSet; }
46 template<typename TargetClusterArnT = Aws::String>
47 void SetTargetClusterArn(TargetClusterArnT&& value) { m_targetClusterArnHasBeenSet = true; m_targetClusterArn = std::forward<TargetClusterArnT>(value); }
48 template<typename TargetClusterArnT = Aws::String>
49 CreateVpcConnectionRequest& WithTargetClusterArn(TargetClusterArnT&& value) { SetTargetClusterArn(std::forward<TargetClusterArnT>(value)); return *this;}
51
53
58 inline const Aws::String& GetAuthentication() const { return m_authentication; }
59 inline bool AuthenticationHasBeenSet() const { return m_authenticationHasBeenSet; }
60 template<typename AuthenticationT = Aws::String>
61 void SetAuthentication(AuthenticationT&& value) { m_authenticationHasBeenSet = true; m_authentication = std::forward<AuthenticationT>(value); }
62 template<typename AuthenticationT = Aws::String>
63 CreateVpcConnectionRequest& WithAuthentication(AuthenticationT&& value) { SetAuthentication(std::forward<AuthenticationT>(value)); return *this;}
65
67
72 inline const Aws::String& GetVpcId() const { return m_vpcId; }
73 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
74 template<typename VpcIdT = Aws::String>
75 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
76 template<typename VpcIdT = Aws::String>
77 CreateVpcConnectionRequest& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
79
81
86 inline const Aws::Vector<Aws::String>& GetClientSubnets() const { return m_clientSubnets; }
87 inline bool ClientSubnetsHasBeenSet() const { return m_clientSubnetsHasBeenSet; }
88 template<typename ClientSubnetsT = Aws::Vector<Aws::String>>
89 void SetClientSubnets(ClientSubnetsT&& value) { m_clientSubnetsHasBeenSet = true; m_clientSubnets = std::forward<ClientSubnetsT>(value); }
90 template<typename ClientSubnetsT = Aws::Vector<Aws::String>>
91 CreateVpcConnectionRequest& WithClientSubnets(ClientSubnetsT&& value) { SetClientSubnets(std::forward<ClientSubnetsT>(value)); return *this;}
92 template<typename ClientSubnetsT = Aws::String>
93 CreateVpcConnectionRequest& AddClientSubnets(ClientSubnetsT&& value) { m_clientSubnetsHasBeenSet = true; m_clientSubnets.emplace_back(std::forward<ClientSubnetsT>(value)); return *this; }
95
97
102 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const { return m_securityGroups; }
103 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
104 template<typename SecurityGroupsT = Aws::Vector<Aws::String>>
105 void SetSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::forward<SecurityGroupsT>(value); }
106 template<typename SecurityGroupsT = Aws::Vector<Aws::String>>
107 CreateVpcConnectionRequest& WithSecurityGroups(SecurityGroupsT&& value) { SetSecurityGroups(std::forward<SecurityGroupsT>(value)); return *this;}
108 template<typename SecurityGroupsT = Aws::String>
109 CreateVpcConnectionRequest& AddSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value)); return *this; }
111
113
118 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
119 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
120 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
121 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
122 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
123 CreateVpcConnectionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
124 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
125 CreateVpcConnectionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
126 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
127 }
129 private:
130
131 Aws::String m_targetClusterArn;
132 bool m_targetClusterArnHasBeenSet = false;
133
134 Aws::String m_authentication;
135 bool m_authenticationHasBeenSet = false;
136
137 Aws::String m_vpcId;
138 bool m_vpcIdHasBeenSet = false;
139
140 Aws::Vector<Aws::String> m_clientSubnets;
141 bool m_clientSubnetsHasBeenSet = false;
142
143 Aws::Vector<Aws::String> m_securityGroups;
144 bool m_securityGroupsHasBeenSet = false;
145
147 bool m_tagsHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace Kafka
152} // 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