AWS SDK for C++  1.9.104
AWS SDK for C++
CreateDBProxyEndpointRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
8 #include <aws/rds/RDSRequest.h>
12 #include <aws/rds/model/Tag.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace RDS
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreateDBProxyEndpoint"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
46  inline const Aws::String& GetDBProxyName() const{ return m_dBProxyName; }
47 
52  inline bool DBProxyNameHasBeenSet() const { return m_dBProxyNameHasBeenSet; }
53 
58  inline void SetDBProxyName(const Aws::String& value) { m_dBProxyNameHasBeenSet = true; m_dBProxyName = value; }
59 
64  inline void SetDBProxyName(Aws::String&& value) { m_dBProxyNameHasBeenSet = true; m_dBProxyName = std::move(value); }
65 
70  inline void SetDBProxyName(const char* value) { m_dBProxyNameHasBeenSet = true; m_dBProxyName.assign(value); }
71 
76  inline CreateDBProxyEndpointRequest& WithDBProxyName(const Aws::String& value) { SetDBProxyName(value); return *this;}
77 
82  inline CreateDBProxyEndpointRequest& WithDBProxyName(Aws::String&& value) { SetDBProxyName(std::move(value)); return *this;}
83 
88  inline CreateDBProxyEndpointRequest& WithDBProxyName(const char* value) { SetDBProxyName(value); return *this;}
89 
90 
94  inline const Aws::String& GetDBProxyEndpointName() const{ return m_dBProxyEndpointName; }
95 
99  inline bool DBProxyEndpointNameHasBeenSet() const { return m_dBProxyEndpointNameHasBeenSet; }
100 
104  inline void SetDBProxyEndpointName(const Aws::String& value) { m_dBProxyEndpointNameHasBeenSet = true; m_dBProxyEndpointName = value; }
105 
109  inline void SetDBProxyEndpointName(Aws::String&& value) { m_dBProxyEndpointNameHasBeenSet = true; m_dBProxyEndpointName = std::move(value); }
110 
114  inline void SetDBProxyEndpointName(const char* value) { m_dBProxyEndpointNameHasBeenSet = true; m_dBProxyEndpointName.assign(value); }
115 
119  inline CreateDBProxyEndpointRequest& WithDBProxyEndpointName(const Aws::String& value) { SetDBProxyEndpointName(value); return *this;}
120 
124  inline CreateDBProxyEndpointRequest& WithDBProxyEndpointName(Aws::String&& value) { SetDBProxyEndpointName(std::move(value)); return *this;}
125 
129  inline CreateDBProxyEndpointRequest& WithDBProxyEndpointName(const char* value) { SetDBProxyEndpointName(value); return *this;}
130 
131 
136  inline const Aws::Vector<Aws::String>& GetVpcSubnetIds() const{ return m_vpcSubnetIds; }
137 
142  inline bool VpcSubnetIdsHasBeenSet() const { return m_vpcSubnetIdsHasBeenSet; }
143 
148  inline void SetVpcSubnetIds(const Aws::Vector<Aws::String>& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds = value; }
149 
154  inline void SetVpcSubnetIds(Aws::Vector<Aws::String>&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds = std::move(value); }
155 
160  inline CreateDBProxyEndpointRequest& WithVpcSubnetIds(const Aws::Vector<Aws::String>& value) { SetVpcSubnetIds(value); return *this;}
161 
166  inline CreateDBProxyEndpointRequest& WithVpcSubnetIds(Aws::Vector<Aws::String>&& value) { SetVpcSubnetIds(std::move(value)); return *this;}
167 
172  inline CreateDBProxyEndpointRequest& AddVpcSubnetIds(const Aws::String& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds.push_back(value); return *this; }
173 
178  inline CreateDBProxyEndpointRequest& AddVpcSubnetIds(Aws::String&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds.push_back(std::move(value)); return *this; }
179 
184  inline CreateDBProxyEndpointRequest& AddVpcSubnetIds(const char* value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds.push_back(value); return *this; }
185 
186 
192  inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const{ return m_vpcSecurityGroupIds; }
193 
199  inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
200 
206  inline void SetVpcSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = value; }
207 
213  inline void SetVpcSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::move(value); }
214 
220  inline CreateDBProxyEndpointRequest& WithVpcSecurityGroupIds(const Aws::Vector<Aws::String>& value) { SetVpcSecurityGroupIds(value); return *this;}
221 
227  inline CreateDBProxyEndpointRequest& WithVpcSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetVpcSecurityGroupIds(std::move(value)); return *this;}
228 
234  inline CreateDBProxyEndpointRequest& AddVpcSecurityGroupIds(const Aws::String& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
235 
241  inline CreateDBProxyEndpointRequest& AddVpcSecurityGroupIds(Aws::String&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(std::move(value)); return *this; }
242 
248  inline CreateDBProxyEndpointRequest& AddVpcSecurityGroupIds(const char* value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
249 
250 
255  inline const DBProxyEndpointTargetRole& GetTargetRole() const{ return m_targetRole; }
256 
261  inline bool TargetRoleHasBeenSet() const { return m_targetRoleHasBeenSet; }
262 
267  inline void SetTargetRole(const DBProxyEndpointTargetRole& value) { m_targetRoleHasBeenSet = true; m_targetRole = value; }
268 
273  inline void SetTargetRole(DBProxyEndpointTargetRole&& value) { m_targetRoleHasBeenSet = true; m_targetRole = std::move(value); }
274 
279  inline CreateDBProxyEndpointRequest& WithTargetRole(const DBProxyEndpointTargetRole& value) { SetTargetRole(value); return *this;}
280 
285  inline CreateDBProxyEndpointRequest& WithTargetRole(DBProxyEndpointTargetRole&& value) { SetTargetRole(std::move(value)); return *this;}
286 
287 
288 
289  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
290 
291 
292  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
293 
294 
295  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
296 
297 
298  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
299 
300 
301  inline CreateDBProxyEndpointRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
302 
303 
304  inline CreateDBProxyEndpointRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
305 
306 
307  inline CreateDBProxyEndpointRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
308 
309 
310  inline CreateDBProxyEndpointRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
311 
312  private:
313 
314  Aws::String m_dBProxyName;
315  bool m_dBProxyNameHasBeenSet;
316 
317  Aws::String m_dBProxyEndpointName;
318  bool m_dBProxyEndpointNameHasBeenSet;
319 
320  Aws::Vector<Aws::String> m_vpcSubnetIds;
321  bool m_vpcSubnetIdsHasBeenSet;
322 
323  Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
324  bool m_vpcSecurityGroupIdsHasBeenSet;
325 
326  DBProxyEndpointTargetRole m_targetRole;
327  bool m_targetRoleHasBeenSet;
328 
329  Aws::Vector<Tag> m_tags;
330  bool m_tagsHasBeenSet;
331  };
332 
333 } // namespace Model
334 } // namespace RDS
335 } // namespace Aws
Aws::RDS::Model::Tag
Definition: Tag.h:33
DBProxyEndpointTargetRole.h
Aws::RDS::Model::CreateDBProxyEndpointRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateDBProxyEndpointRequest.h:292
Aws::RDS::Model::CreateDBProxyEndpointRequest::SetVpcSecurityGroupIds
void SetVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
Definition: CreateDBProxyEndpointRequest.h:213
Aws::RDS::Model::CreateDBProxyEndpointRequest::SetVpcSubnetIds
void SetVpcSubnetIds(const Aws::Vector< Aws::String > &value)
Definition: CreateDBProxyEndpointRequest.h:148
Aws::RDS::Model::CreateDBProxyEndpointRequest::GetTargetRole
const DBProxyEndpointTargetRole & GetTargetRole() const
Definition: CreateDBProxyEndpointRequest.h:255
Aws::RDS::Model::CreateDBProxyEndpointRequest::SetVpcSubnetIds
void SetVpcSubnetIds(Aws::Vector< Aws::String > &&value)
Definition: CreateDBProxyEndpointRequest.h:154
Aws::RDS::Model::CreateDBProxyEndpointRequest::SetDBProxyEndpointName
void SetDBProxyEndpointName(const char *value)
Definition: CreateDBProxyEndpointRequest.h:114
Aws::Http::URI
Definition: URI.h:32
Aws::RDS::Model::CreateDBProxyEndpointRequest::WithVpcSubnetIds
CreateDBProxyEndpointRequest & WithVpcSubnetIds(Aws::Vector< Aws::String > &&value)
Definition: CreateDBProxyEndpointRequest.h:166
Aws::RDS::Model::CreateDBProxyEndpointRequest::WithTags
CreateDBProxyEndpointRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateDBProxyEndpointRequest.h:301
Aws::RDS::Model::CreateDBProxyEndpointRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateDBProxyEndpointRequest.h:289
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::CreateDBProxyEndpointRequest::WithDBProxyEndpointName
CreateDBProxyEndpointRequest & WithDBProxyEndpointName(Aws::String &&value)
Definition: CreateDBProxyEndpointRequest.h:124
Aws::RDS::Model::DBProxyEndpointTargetRole
DBProxyEndpointTargetRole
Definition: DBProxyEndpointTargetRole.h:17
Aws::RDS::Model::CreateDBProxyEndpointRequest::GetVpcSecurityGroupIds
const Aws::Vector< Aws::String > & GetVpcSecurityGroupIds() const
Definition: CreateDBProxyEndpointRequest.h:192
Aws::RDS::Model::CreateDBProxyEndpointRequest::SetTargetRole
void SetTargetRole(const DBProxyEndpointTargetRole &value)
Definition: CreateDBProxyEndpointRequest.h:267
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::RDS::Model::CreateDBProxyEndpointRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::RDS::Model::CreateDBProxyEndpointRequest::VpcSubnetIdsHasBeenSet
bool VpcSubnetIdsHasBeenSet() const
Definition: CreateDBProxyEndpointRequest.h:142
Aws::RDS::Model::CreateDBProxyEndpointRequest::WithTargetRole
CreateDBProxyEndpointRequest & WithTargetRole(const DBProxyEndpointTargetRole &value)
Definition: CreateDBProxyEndpointRequest.h:279
Aws::RDS::Model::CreateDBProxyEndpointRequest::AddVpcSecurityGroupIds
CreateDBProxyEndpointRequest & AddVpcSecurityGroupIds(Aws::String &&value)
Definition: CreateDBProxyEndpointRequest.h:241
Aws::RDS::Model::CreateDBProxyEndpointRequest
Definition: CreateDBProxyEndpointRequest.h:25
Aws::RDS::Model::CreateDBProxyEndpointRequest::DBProxyEndpointNameHasBeenSet
bool DBProxyEndpointNameHasBeenSet() const
Definition: CreateDBProxyEndpointRequest.h:99
AWSVector.h
Aws::RDS::Model::CreateDBProxyEndpointRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateDBProxyEndpointRequest.h:295
Aws::RDS::Model::CreateDBProxyEndpointRequest::WithTags
CreateDBProxyEndpointRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateDBProxyEndpointRequest.h:304
Aws::RDS::Model::CreateDBProxyEndpointRequest::AddVpcSubnetIds
CreateDBProxyEndpointRequest & AddVpcSubnetIds(const Aws::String &value)
Definition: CreateDBProxyEndpointRequest.h:172
Aws::RDS::Model::CreateDBProxyEndpointRequest::GetDBProxyEndpointName
const Aws::String & GetDBProxyEndpointName() const
Definition: CreateDBProxyEndpointRequest.h:94
Aws::RDS::Model::CreateDBProxyEndpointRequest::WithDBProxyName
CreateDBProxyEndpointRequest & WithDBProxyName(const Aws::String &value)
Definition: CreateDBProxyEndpointRequest.h:76
Aws::RDS::Model::CreateDBProxyEndpointRequest::WithTargetRole
CreateDBProxyEndpointRequest & WithTargetRole(DBProxyEndpointTargetRole &&value)
Definition: CreateDBProxyEndpointRequest.h:285
Aws::RDS::Model::CreateDBProxyEndpointRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateDBProxyEndpointRequest.h:298
Aws::RDS::Model::CreateDBProxyEndpointRequest::WithVpcSubnetIds
CreateDBProxyEndpointRequest & WithVpcSubnetIds(const Aws::Vector< Aws::String > &value)
Definition: CreateDBProxyEndpointRequest.h:160
Aws::RDS::Model::CreateDBProxyEndpointRequest::SetTargetRole
void SetTargetRole(DBProxyEndpointTargetRole &&value)
Definition: CreateDBProxyEndpointRequest.h:273
RDS_EXPORTS.h
Aws::RDS::Model::CreateDBProxyEndpointRequest::AddVpcSecurityGroupIds
CreateDBProxyEndpointRequest & AddVpcSecurityGroupIds(const Aws::String &value)
Definition: CreateDBProxyEndpointRequest.h:234
Aws::RDS::Model::CreateDBProxyEndpointRequest::WithDBProxyName
CreateDBProxyEndpointRequest & WithDBProxyName(const char *value)
Definition: CreateDBProxyEndpointRequest.h:88
Aws::RDS::Model::CreateDBProxyEndpointRequest::AddTags
CreateDBProxyEndpointRequest & AddTags(const Tag &value)
Definition: CreateDBProxyEndpointRequest.h:307
Aws::RDS::Model::CreateDBProxyEndpointRequest::DBProxyNameHasBeenSet
bool DBProxyNameHasBeenSet() const
Definition: CreateDBProxyEndpointRequest.h:52
Aws::RDS::Model::CreateDBProxyEndpointRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateDBProxyEndpointRequest.h:33
AWSString.h
Aws::RDS::Model::CreateDBProxyEndpointRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::RDS::Model::CreateDBProxyEndpointRequest::SetVpcSecurityGroupIds
void SetVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Definition: CreateDBProxyEndpointRequest.h:206
Aws::RDS::Model::CreateDBProxyEndpointRequest::WithVpcSecurityGroupIds
CreateDBProxyEndpointRequest & WithVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Definition: CreateDBProxyEndpointRequest.h:220
Aws::RDS::Model::CreateDBProxyEndpointRequest::SetDBProxyName
void SetDBProxyName(Aws::String &&value)
Definition: CreateDBProxyEndpointRequest.h:64
Aws::RDS::Model::CreateDBProxyEndpointRequest::SetDBProxyEndpointName
void SetDBProxyEndpointName(const Aws::String &value)
Definition: CreateDBProxyEndpointRequest.h:104
Aws::RDS::Model::CreateDBProxyEndpointRequest::AddVpcSecurityGroupIds
CreateDBProxyEndpointRequest & AddVpcSecurityGroupIds(const char *value)
Definition: CreateDBProxyEndpointRequest.h:248
Aws::RDS::Model::CreateDBProxyEndpointRequest::TargetRoleHasBeenSet
bool TargetRoleHasBeenSet() const
Definition: CreateDBProxyEndpointRequest.h:261
Aws::RDS::Model::CreateDBProxyEndpointRequest::WithVpcSecurityGroupIds
CreateDBProxyEndpointRequest & WithVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
Definition: CreateDBProxyEndpointRequest.h:227
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::CreateDBProxyEndpointRequest::AddVpcSubnetIds
CreateDBProxyEndpointRequest & AddVpcSubnetIds(const char *value)
Definition: CreateDBProxyEndpointRequest.h:184
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::CreateDBProxyEndpointRequest::WithDBProxyEndpointName
CreateDBProxyEndpointRequest & WithDBProxyEndpointName(const char *value)
Definition: CreateDBProxyEndpointRequest.h:129
Aws::RDS::Model::CreateDBProxyEndpointRequest::WithDBProxyName
CreateDBProxyEndpointRequest & WithDBProxyName(Aws::String &&value)
Definition: CreateDBProxyEndpointRequest.h:82
Aws::RDS::Model::CreateDBProxyEndpointRequest::AddTags
CreateDBProxyEndpointRequest & AddTags(Tag &&value)
Definition: CreateDBProxyEndpointRequest.h:310
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Tag.h
Aws::RDS::Model::CreateDBProxyEndpointRequest::AddVpcSubnetIds
CreateDBProxyEndpointRequest & AddVpcSubnetIds(Aws::String &&value)
Definition: CreateDBProxyEndpointRequest.h:178
Aws::RDS::Model::CreateDBProxyEndpointRequest::SetDBProxyName
void SetDBProxyName(const char *value)
Definition: CreateDBProxyEndpointRequest.h:70
RDSRequest.h
Aws::RDS::Model::CreateDBProxyEndpointRequest::SetDBProxyName
void SetDBProxyName(const Aws::String &value)
Definition: CreateDBProxyEndpointRequest.h:58
Aws::RDS::Model::CreateDBProxyEndpointRequest::WithDBProxyEndpointName
CreateDBProxyEndpointRequest & WithDBProxyEndpointName(const Aws::String &value)
Definition: CreateDBProxyEndpointRequest.h:119
Aws::RDS::Model::CreateDBProxyEndpointRequest::VpcSecurityGroupIdsHasBeenSet
bool VpcSecurityGroupIdsHasBeenSet() const
Definition: CreateDBProxyEndpointRequest.h:199
Aws::RDS::Model::CreateDBProxyEndpointRequest::GetVpcSubnetIds
const Aws::Vector< Aws::String > & GetVpcSubnetIds() const
Definition: CreateDBProxyEndpointRequest.h:136
Aws::RDS::RDSRequest
Definition: RDSRequest.h:17
Aws::RDS::Model::CreateDBProxyEndpointRequest::SetDBProxyEndpointName
void SetDBProxyEndpointName(Aws::String &&value)
Definition: CreateDBProxyEndpointRequest.h:109
Aws::RDS::Model::CreateDBProxyEndpointRequest::CreateDBProxyEndpointRequest
CreateDBProxyEndpointRequest()
Aws::RDS::Model::CreateDBProxyEndpointRequest::GetDBProxyName
const Aws::String & GetDBProxyName() const
Definition: CreateDBProxyEndpointRequest.h:46