AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetTargetClusterArn(const Aws::String& value) { m_targetClusterArnHasBeenSet = true; m_targetClusterArn = value; }
47 inline void SetTargetClusterArn(Aws::String&& value) { m_targetClusterArnHasBeenSet = true; m_targetClusterArn = std::move(value); }
48 inline void SetTargetClusterArn(const char* value) { m_targetClusterArnHasBeenSet = true; m_targetClusterArn.assign(value); }
50 inline CreateVpcConnectionRequest& WithTargetClusterArn(Aws::String&& value) { SetTargetClusterArn(std::move(value)); return *this;}
51 inline CreateVpcConnectionRequest& WithTargetClusterArn(const char* value) { SetTargetClusterArn(value); return *this;}
53
55
60 inline const Aws::String& GetAuthentication() const{ return m_authentication; }
61 inline bool AuthenticationHasBeenSet() const { return m_authenticationHasBeenSet; }
62 inline void SetAuthentication(const Aws::String& value) { m_authenticationHasBeenSet = true; m_authentication = value; }
63 inline void SetAuthentication(Aws::String&& value) { m_authenticationHasBeenSet = true; m_authentication = std::move(value); }
64 inline void SetAuthentication(const char* value) { m_authenticationHasBeenSet = true; m_authentication.assign(value); }
65 inline CreateVpcConnectionRequest& WithAuthentication(const Aws::String& value) { SetAuthentication(value); return *this;}
66 inline CreateVpcConnectionRequest& WithAuthentication(Aws::String&& value) { SetAuthentication(std::move(value)); return *this;}
67 inline CreateVpcConnectionRequest& WithAuthentication(const char* value) { SetAuthentication(value); return *this;}
69
71
76 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
77 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
78 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
79 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
80 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
81 inline CreateVpcConnectionRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
82 inline CreateVpcConnectionRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
83 inline CreateVpcConnectionRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
85
87
92 inline const Aws::Vector<Aws::String>& GetClientSubnets() const{ return m_clientSubnets; }
93 inline bool ClientSubnetsHasBeenSet() const { return m_clientSubnetsHasBeenSet; }
94 inline void SetClientSubnets(const Aws::Vector<Aws::String>& value) { m_clientSubnetsHasBeenSet = true; m_clientSubnets = value; }
95 inline void SetClientSubnets(Aws::Vector<Aws::String>&& value) { m_clientSubnetsHasBeenSet = true; m_clientSubnets = std::move(value); }
98 inline CreateVpcConnectionRequest& AddClientSubnets(const Aws::String& value) { m_clientSubnetsHasBeenSet = true; m_clientSubnets.push_back(value); return *this; }
99 inline CreateVpcConnectionRequest& AddClientSubnets(Aws::String&& value) { m_clientSubnetsHasBeenSet = true; m_clientSubnets.push_back(std::move(value)); return *this; }
100 inline CreateVpcConnectionRequest& AddClientSubnets(const char* value) { m_clientSubnetsHasBeenSet = true; m_clientSubnets.push_back(value); return *this; }
102
104
109 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const{ return m_securityGroups; }
110 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
111 inline void SetSecurityGroups(const Aws::Vector<Aws::String>& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; }
112 inline void SetSecurityGroups(Aws::Vector<Aws::String>&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); }
115 inline CreateVpcConnectionRequest& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
116 inline CreateVpcConnectionRequest& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; }
117 inline CreateVpcConnectionRequest& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
119
121
126 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
127 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
128 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
129 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
131 inline CreateVpcConnectionRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
132 inline CreateVpcConnectionRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
133 inline CreateVpcConnectionRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
134 inline CreateVpcConnectionRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
135 inline CreateVpcConnectionRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
136 inline CreateVpcConnectionRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
137 inline CreateVpcConnectionRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
138 inline CreateVpcConnectionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
140 private:
141
142 Aws::String m_targetClusterArn;
143 bool m_targetClusterArnHasBeenSet = false;
144
145 Aws::String m_authentication;
146 bool m_authenticationHasBeenSet = false;
147
148 Aws::String m_vpcId;
149 bool m_vpcIdHasBeenSet = false;
150
151 Aws::Vector<Aws::String> m_clientSubnets;
152 bool m_clientSubnetsHasBeenSet = false;
153
154 Aws::Vector<Aws::String> m_securityGroups;
155 bool m_securityGroupsHasBeenSet = false;
156
158 bool m_tagsHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace Kafka
163} // namespace Aws
CreateVpcConnectionRequest & AddSecurityGroups(Aws::String &&value)
CreateVpcConnectionRequest & WithTargetClusterArn(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetClientSubnets(Aws::Vector< Aws::String > &&value)
CreateVpcConnectionRequest & AddTags(const char *key, Aws::String &&value)
CreateVpcConnectionRequest & AddSecurityGroups(const Aws::String &value)
CreateVpcConnectionRequest & WithVpcId(const char *value)
const Aws::Vector< Aws::String > & GetClientSubnets() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateVpcConnectionRequest & WithSecurityGroups(const Aws::Vector< Aws::String > &value)
CreateVpcConnectionRequest & AddTags(const char *key, const char *value)
CreateVpcConnectionRequest & AddClientSubnets(const Aws::String &value)
CreateVpcConnectionRequest & WithAuthentication(const Aws::String &value)
CreateVpcConnectionRequest & AddSecurityGroups(const char *value)
CreateVpcConnectionRequest & WithAuthentication(const char *value)
AWS_KAFKA_API Aws::String SerializePayload() const override
CreateVpcConnectionRequest & AddTags(Aws::String &&key, const char *value)
CreateVpcConnectionRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateVpcConnectionRequest & WithClientSubnets(const Aws::Vector< Aws::String > &value)
CreateVpcConnectionRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateVpcConnectionRequest & WithClientSubnets(Aws::Vector< Aws::String > &&value)
CreateVpcConnectionRequest & WithTargetClusterArn(Aws::String &&value)
CreateVpcConnectionRequest & WithTargetClusterArn(const char *value)
void SetSecurityGroups(Aws::Vector< Aws::String > &&value)
CreateVpcConnectionRequest & AddClientSubnets(Aws::String &&value)
CreateVpcConnectionRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateVpcConnectionRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateVpcConnectionRequest & WithSecurityGroups(Aws::Vector< Aws::String > &&value)
CreateVpcConnectionRequest & WithVpcId(const Aws::String &value)
CreateVpcConnectionRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateVpcConnectionRequest & WithVpcId(Aws::String &&value)
const Aws::Vector< Aws::String > & GetSecurityGroups() const
virtual const char * GetServiceRequestName() const override
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateVpcConnectionRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetSecurityGroups(const Aws::Vector< Aws::String > &value)
CreateVpcConnectionRequest & WithAuthentication(Aws::String &&value)
CreateVpcConnectionRequest & AddClientSubnets(const char *value)
void SetClientSubnets(const Aws::Vector< Aws::String > &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