AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateDBProxyEndpointRequest.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/rds/RDSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/rds/model/DBProxyEndpointTargetRole.h>
12#include <aws/rds/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace RDS
18{
19namespace 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_RDS_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
47 inline const Aws::String& GetDBProxyName() const{ return m_dBProxyName; }
48 inline bool DBProxyNameHasBeenSet() const { return m_dBProxyNameHasBeenSet; }
49 inline void SetDBProxyName(const Aws::String& value) { m_dBProxyNameHasBeenSet = true; m_dBProxyName = value; }
50 inline void SetDBProxyName(Aws::String&& value) { m_dBProxyNameHasBeenSet = true; m_dBProxyName = std::move(value); }
51 inline void SetDBProxyName(const char* value) { m_dBProxyNameHasBeenSet = true; m_dBProxyName.assign(value); }
52 inline CreateDBProxyEndpointRequest& WithDBProxyName(const Aws::String& value) { SetDBProxyName(value); return *this;}
53 inline CreateDBProxyEndpointRequest& WithDBProxyName(Aws::String&& value) { SetDBProxyName(std::move(value)); return *this;}
54 inline CreateDBProxyEndpointRequest& WithDBProxyName(const char* value) { SetDBProxyName(value); return *this;}
56
58
61 inline const Aws::String& GetDBProxyEndpointName() const{ return m_dBProxyEndpointName; }
62 inline bool DBProxyEndpointNameHasBeenSet() const { return m_dBProxyEndpointNameHasBeenSet; }
63 inline void SetDBProxyEndpointName(const Aws::String& value) { m_dBProxyEndpointNameHasBeenSet = true; m_dBProxyEndpointName = value; }
64 inline void SetDBProxyEndpointName(Aws::String&& value) { m_dBProxyEndpointNameHasBeenSet = true; m_dBProxyEndpointName = std::move(value); }
65 inline void SetDBProxyEndpointName(const char* value) { m_dBProxyEndpointNameHasBeenSet = true; m_dBProxyEndpointName.assign(value); }
68 inline CreateDBProxyEndpointRequest& WithDBProxyEndpointName(const char* value) { SetDBProxyEndpointName(value); return *this;}
70
72
76 inline const Aws::Vector<Aws::String>& GetVpcSubnetIds() const{ return m_vpcSubnetIds; }
77 inline bool VpcSubnetIdsHasBeenSet() const { return m_vpcSubnetIdsHasBeenSet; }
78 inline void SetVpcSubnetIds(const Aws::Vector<Aws::String>& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds = value; }
79 inline void SetVpcSubnetIds(Aws::Vector<Aws::String>&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds = std::move(value); }
82 inline CreateDBProxyEndpointRequest& AddVpcSubnetIds(const Aws::String& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds.push_back(value); return *this; }
83 inline CreateDBProxyEndpointRequest& AddVpcSubnetIds(Aws::String&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds.push_back(std::move(value)); return *this; }
84 inline CreateDBProxyEndpointRequest& AddVpcSubnetIds(const char* value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds.push_back(value); return *this; }
86
88
93 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const{ return m_vpcSecurityGroupIds; }
94 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
95 inline void SetVpcSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = value; }
96 inline void SetVpcSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::move(value); }
99 inline CreateDBProxyEndpointRequest& AddVpcSecurityGroupIds(const Aws::String& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
100 inline CreateDBProxyEndpointRequest& AddVpcSecurityGroupIds(Aws::String&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(std::move(value)); return *this; }
101 inline CreateDBProxyEndpointRequest& AddVpcSecurityGroupIds(const char* value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
103
105
111 inline const DBProxyEndpointTargetRole& GetTargetRole() const{ return m_targetRole; }
112 inline bool TargetRoleHasBeenSet() const { return m_targetRoleHasBeenSet; }
113 inline void SetTargetRole(const DBProxyEndpointTargetRole& value) { m_targetRoleHasBeenSet = true; m_targetRole = value; }
114 inline void SetTargetRole(DBProxyEndpointTargetRole&& value) { m_targetRoleHasBeenSet = true; m_targetRole = std::move(value); }
116 inline CreateDBProxyEndpointRequest& WithTargetRole(DBProxyEndpointTargetRole&& value) { SetTargetRole(std::move(value)); return *this;}
118
120
121 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
122 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
123 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
124 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
125 inline CreateDBProxyEndpointRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
126 inline CreateDBProxyEndpointRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
127 inline CreateDBProxyEndpointRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
128 inline CreateDBProxyEndpointRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
130 private:
131
132 Aws::String m_dBProxyName;
133 bool m_dBProxyNameHasBeenSet = false;
134
135 Aws::String m_dBProxyEndpointName;
136 bool m_dBProxyEndpointNameHasBeenSet = false;
137
138 Aws::Vector<Aws::String> m_vpcSubnetIds;
139 bool m_vpcSubnetIdsHasBeenSet = false;
140
141 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
142 bool m_vpcSecurityGroupIdsHasBeenSet = false;
143
144 DBProxyEndpointTargetRole m_targetRole;
145 bool m_targetRoleHasBeenSet = false;
146
147 Aws::Vector<Tag> m_tags;
148 bool m_tagsHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace RDS
153} // namespace Aws
CreateDBProxyEndpointRequest & WithDBProxyName(const Aws::String &value)
CreateDBProxyEndpointRequest & WithVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< Aws::String > & GetVpcSecurityGroupIds() const
CreateDBProxyEndpointRequest & AddVpcSecurityGroupIds(Aws::String &&value)
CreateDBProxyEndpointRequest & AddTags(const Tag &value)
void SetVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
CreateDBProxyEndpointRequest & AddVpcSubnetIds(const Aws::String &value)
CreateDBProxyEndpointRequest & WithDBProxyName(Aws::String &&value)
CreateDBProxyEndpointRequest & AddTags(Tag &&value)
void SetTargetRole(const DBProxyEndpointTargetRole &value)
AWS_RDS_API Aws::String SerializePayload() const override
void SetVpcSubnetIds(Aws::Vector< Aws::String > &&value)
void SetTargetRole(DBProxyEndpointTargetRole &&value)
CreateDBProxyEndpointRequest & WithTags(const Aws::Vector< Tag > &value)
CreateDBProxyEndpointRequest & AddVpcSecurityGroupIds(const char *value)
CreateDBProxyEndpointRequest & AddVpcSubnetIds(Aws::String &&value)
CreateDBProxyEndpointRequest & WithTargetRole(DBProxyEndpointTargetRole &&value)
CreateDBProxyEndpointRequest & WithDBProxyName(const char *value)
CreateDBProxyEndpointRequest & WithDBProxyEndpointName(const Aws::String &value)
CreateDBProxyEndpointRequest & WithTags(Aws::Vector< Tag > &&value)
void SetVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
const DBProxyEndpointTargetRole & GetTargetRole() const
CreateDBProxyEndpointRequest & WithTargetRole(const DBProxyEndpointTargetRole &value)
virtual const char * GetServiceRequestName() const override
CreateDBProxyEndpointRequest & AddVpcSecurityGroupIds(const Aws::String &value)
const Aws::Vector< Aws::String > & GetVpcSubnetIds() const
CreateDBProxyEndpointRequest & WithVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
CreateDBProxyEndpointRequest & WithVpcSubnetIds(Aws::Vector< Aws::String > &&value)
CreateDBProxyEndpointRequest & WithVpcSubnetIds(const Aws::Vector< Aws::String > &value)
CreateDBProxyEndpointRequest & AddVpcSubnetIds(const char *value)
CreateDBProxyEndpointRequest & WithDBProxyEndpointName(const char *value)
CreateDBProxyEndpointRequest & WithDBProxyEndpointName(Aws::String &&value)
void SetVpcSubnetIds(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector