AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
27 AWS_RDS_API CreateDBProxyEndpointRequest() = default;
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 template<typename DBProxyNameT = Aws::String>
50 void SetDBProxyName(DBProxyNameT&& value) { m_dBProxyNameHasBeenSet = true; m_dBProxyName = std::forward<DBProxyNameT>(value); }
51 template<typename DBProxyNameT = Aws::String>
52 CreateDBProxyEndpointRequest& WithDBProxyName(DBProxyNameT&& value) { SetDBProxyName(std::forward<DBProxyNameT>(value)); return *this;}
54
56
59 inline const Aws::String& GetDBProxyEndpointName() const { return m_dBProxyEndpointName; }
60 inline bool DBProxyEndpointNameHasBeenSet() const { return m_dBProxyEndpointNameHasBeenSet; }
61 template<typename DBProxyEndpointNameT = Aws::String>
62 void SetDBProxyEndpointName(DBProxyEndpointNameT&& value) { m_dBProxyEndpointNameHasBeenSet = true; m_dBProxyEndpointName = std::forward<DBProxyEndpointNameT>(value); }
63 template<typename DBProxyEndpointNameT = Aws::String>
64 CreateDBProxyEndpointRequest& WithDBProxyEndpointName(DBProxyEndpointNameT&& value) { SetDBProxyEndpointName(std::forward<DBProxyEndpointNameT>(value)); return *this;}
66
68
72 inline const Aws::Vector<Aws::String>& GetVpcSubnetIds() const { return m_vpcSubnetIds; }
73 inline bool VpcSubnetIdsHasBeenSet() const { return m_vpcSubnetIdsHasBeenSet; }
74 template<typename VpcSubnetIdsT = Aws::Vector<Aws::String>>
75 void SetVpcSubnetIds(VpcSubnetIdsT&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds = std::forward<VpcSubnetIdsT>(value); }
76 template<typename VpcSubnetIdsT = Aws::Vector<Aws::String>>
77 CreateDBProxyEndpointRequest& WithVpcSubnetIds(VpcSubnetIdsT&& value) { SetVpcSubnetIds(std::forward<VpcSubnetIdsT>(value)); return *this;}
78 template<typename VpcSubnetIdsT = Aws::String>
79 CreateDBProxyEndpointRequest& AddVpcSubnetIds(VpcSubnetIdsT&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds.emplace_back(std::forward<VpcSubnetIdsT>(value)); return *this; }
81
83
88 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const { return m_vpcSecurityGroupIds; }
89 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
90 template<typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
91 void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::forward<VpcSecurityGroupIdsT>(value); }
92 template<typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
93 CreateDBProxyEndpointRequest& WithVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { SetVpcSecurityGroupIds(std::forward<VpcSecurityGroupIdsT>(value)); return *this;}
94 template<typename VpcSecurityGroupIdsT = Aws::String>
95 CreateDBProxyEndpointRequest& AddVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.emplace_back(std::forward<VpcSecurityGroupIdsT>(value)); return *this; }
97
99
105 inline DBProxyEndpointTargetRole GetTargetRole() const { return m_targetRole; }
106 inline bool TargetRoleHasBeenSet() const { return m_targetRoleHasBeenSet; }
107 inline void SetTargetRole(DBProxyEndpointTargetRole value) { m_targetRoleHasBeenSet = true; m_targetRole = value; }
110
112
113 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
114 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
115 template<typename TagsT = Aws::Vector<Tag>>
116 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
117 template<typename TagsT = Aws::Vector<Tag>>
118 CreateDBProxyEndpointRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
119 template<typename TagsT = Tag>
120 CreateDBProxyEndpointRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
122 private:
123
124 Aws::String m_dBProxyName;
125 bool m_dBProxyNameHasBeenSet = false;
126
127 Aws::String m_dBProxyEndpointName;
128 bool m_dBProxyEndpointNameHasBeenSet = false;
129
130 Aws::Vector<Aws::String> m_vpcSubnetIds;
131 bool m_vpcSubnetIdsHasBeenSet = false;
132
133 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
134 bool m_vpcSecurityGroupIdsHasBeenSet = false;
135
137 bool m_targetRoleHasBeenSet = false;
138
139 Aws::Vector<Tag> m_tags;
140 bool m_tagsHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace RDS
145} // namespace Aws
CreateDBProxyEndpointRequest & AddTags(TagsT &&value)
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateDBProxyEndpointRequest & WithDBProxyEndpointName(DBProxyEndpointNameT &&value)
const Aws::Vector< Aws::String > & GetVpcSecurityGroupIds() const
CreateDBProxyEndpointRequest & WithTargetRole(DBProxyEndpointTargetRole value)
CreateDBProxyEndpointRequest & WithVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
CreateDBProxyEndpointRequest & WithVpcSubnetIds(VpcSubnetIdsT &&value)
CreateDBProxyEndpointRequest & AddVpcSubnetIds(VpcSubnetIdsT &&value)
AWS_RDS_API Aws::String SerializePayload() const override
AWS_RDS_API CreateDBProxyEndpointRequest()=default
CreateDBProxyEndpointRequest & AddVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
CreateDBProxyEndpointRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetVpcSubnetIds() const
void SetDBProxyEndpointName(DBProxyEndpointNameT &&value)
void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
CreateDBProxyEndpointRequest & WithDBProxyName(DBProxyNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector