/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace RDS { namespace Model { /** */ class CreateDBProxyEndpointRequest : public RDSRequest { public: AWS_RDS_API CreateDBProxyEndpointRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateDBProxyEndpoint"; } AWS_RDS_API Aws::String SerializePayload() const override; protected: AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The name of the DB proxy associated with the DB proxy endpoint that you * create.

*/ inline const Aws::String& GetDBProxyName() const{ return m_dBProxyName; } /** *

The name of the DB proxy associated with the DB proxy endpoint that you * create.

*/ inline bool DBProxyNameHasBeenSet() const { return m_dBProxyNameHasBeenSet; } /** *

The name of the DB proxy associated with the DB proxy endpoint that you * create.

*/ inline void SetDBProxyName(const Aws::String& value) { m_dBProxyNameHasBeenSet = true; m_dBProxyName = value; } /** *

The name of the DB proxy associated with the DB proxy endpoint that you * create.

*/ inline void SetDBProxyName(Aws::String&& value) { m_dBProxyNameHasBeenSet = true; m_dBProxyName = std::move(value); } /** *

The name of the DB proxy associated with the DB proxy endpoint that you * create.

*/ inline void SetDBProxyName(const char* value) { m_dBProxyNameHasBeenSet = true; m_dBProxyName.assign(value); } /** *

The name of the DB proxy associated with the DB proxy endpoint that you * create.

*/ inline CreateDBProxyEndpointRequest& WithDBProxyName(const Aws::String& value) { SetDBProxyName(value); return *this;} /** *

The name of the DB proxy associated with the DB proxy endpoint that you * create.

*/ inline CreateDBProxyEndpointRequest& WithDBProxyName(Aws::String&& value) { SetDBProxyName(std::move(value)); return *this;} /** *

The name of the DB proxy associated with the DB proxy endpoint that you * create.

*/ inline CreateDBProxyEndpointRequest& WithDBProxyName(const char* value) { SetDBProxyName(value); return *this;} /** *

The name of the DB proxy endpoint to create.

*/ inline const Aws::String& GetDBProxyEndpointName() const{ return m_dBProxyEndpointName; } /** *

The name of the DB proxy endpoint to create.

*/ inline bool DBProxyEndpointNameHasBeenSet() const { return m_dBProxyEndpointNameHasBeenSet; } /** *

The name of the DB proxy endpoint to create.

*/ inline void SetDBProxyEndpointName(const Aws::String& value) { m_dBProxyEndpointNameHasBeenSet = true; m_dBProxyEndpointName = value; } /** *

The name of the DB proxy endpoint to create.

*/ inline void SetDBProxyEndpointName(Aws::String&& value) { m_dBProxyEndpointNameHasBeenSet = true; m_dBProxyEndpointName = std::move(value); } /** *

The name of the DB proxy endpoint to create.

*/ inline void SetDBProxyEndpointName(const char* value) { m_dBProxyEndpointNameHasBeenSet = true; m_dBProxyEndpointName.assign(value); } /** *

The name of the DB proxy endpoint to create.

*/ inline CreateDBProxyEndpointRequest& WithDBProxyEndpointName(const Aws::String& value) { SetDBProxyEndpointName(value); return *this;} /** *

The name of the DB proxy endpoint to create.

*/ inline CreateDBProxyEndpointRequest& WithDBProxyEndpointName(Aws::String&& value) { SetDBProxyEndpointName(std::move(value)); return *this;} /** *

The name of the DB proxy endpoint to create.

*/ inline CreateDBProxyEndpointRequest& WithDBProxyEndpointName(const char* value) { SetDBProxyEndpointName(value); return *this;} /** *

The VPC subnet IDs for the DB proxy endpoint that you create. You can specify * a different set of subnet IDs than for the original DB proxy.

*/ inline const Aws::Vector& GetVpcSubnetIds() const{ return m_vpcSubnetIds; } /** *

The VPC subnet IDs for the DB proxy endpoint that you create. You can specify * a different set of subnet IDs than for the original DB proxy.

*/ inline bool VpcSubnetIdsHasBeenSet() const { return m_vpcSubnetIdsHasBeenSet; } /** *

The VPC subnet IDs for the DB proxy endpoint that you create. You can specify * a different set of subnet IDs than for the original DB proxy.

*/ inline void SetVpcSubnetIds(const Aws::Vector& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds = value; } /** *

The VPC subnet IDs for the DB proxy endpoint that you create. You can specify * a different set of subnet IDs than for the original DB proxy.

*/ inline void SetVpcSubnetIds(Aws::Vector&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds = std::move(value); } /** *

The VPC subnet IDs for the DB proxy endpoint that you create. You can specify * a different set of subnet IDs than for the original DB proxy.

*/ inline CreateDBProxyEndpointRequest& WithVpcSubnetIds(const Aws::Vector& value) { SetVpcSubnetIds(value); return *this;} /** *

The VPC subnet IDs for the DB proxy endpoint that you create. You can specify * a different set of subnet IDs than for the original DB proxy.

*/ inline CreateDBProxyEndpointRequest& WithVpcSubnetIds(Aws::Vector&& value) { SetVpcSubnetIds(std::move(value)); return *this;} /** *

The VPC subnet IDs for the DB proxy endpoint that you create. You can specify * a different set of subnet IDs than for the original DB proxy.

*/ inline CreateDBProxyEndpointRequest& AddVpcSubnetIds(const Aws::String& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds.push_back(value); return *this; } /** *

The VPC subnet IDs for the DB proxy endpoint that you create. You can specify * a different set of subnet IDs than for the original DB proxy.

*/ inline CreateDBProxyEndpointRequest& AddVpcSubnetIds(Aws::String&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds.push_back(std::move(value)); return *this; } /** *

The VPC subnet IDs for the DB proxy endpoint that you create. You can specify * a different set of subnet IDs than for the original DB proxy.

*/ inline CreateDBProxyEndpointRequest& AddVpcSubnetIds(const char* value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds.push_back(value); return *this; } /** *

The VPC security group IDs for the DB proxy endpoint that you create. You can * specify a different set of security group IDs than for the original DB proxy. * The default is the default security group for the VPC.

*/ inline const Aws::Vector& GetVpcSecurityGroupIds() const{ return m_vpcSecurityGroupIds; } /** *

The VPC security group IDs for the DB proxy endpoint that you create. You can * specify a different set of security group IDs than for the original DB proxy. * The default is the default security group for the VPC.

*/ inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; } /** *

The VPC security group IDs for the DB proxy endpoint that you create. You can * specify a different set of security group IDs than for the original DB proxy. * The default is the default security group for the VPC.

*/ inline void SetVpcSecurityGroupIds(const Aws::Vector& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = value; } /** *

The VPC security group IDs for the DB proxy endpoint that you create. You can * specify a different set of security group IDs than for the original DB proxy. * The default is the default security group for the VPC.

*/ inline void SetVpcSecurityGroupIds(Aws::Vector&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::move(value); } /** *

The VPC security group IDs for the DB proxy endpoint that you create. You can * specify a different set of security group IDs than for the original DB proxy. * The default is the default security group for the VPC.

*/ inline CreateDBProxyEndpointRequest& WithVpcSecurityGroupIds(const Aws::Vector& value) { SetVpcSecurityGroupIds(value); return *this;} /** *

The VPC security group IDs for the DB proxy endpoint that you create. You can * specify a different set of security group IDs than for the original DB proxy. * The default is the default security group for the VPC.

*/ inline CreateDBProxyEndpointRequest& WithVpcSecurityGroupIds(Aws::Vector&& value) { SetVpcSecurityGroupIds(std::move(value)); return *this;} /** *

The VPC security group IDs for the DB proxy endpoint that you create. You can * specify a different set of security group IDs than for the original DB proxy. * The default is the default security group for the VPC.

*/ inline CreateDBProxyEndpointRequest& AddVpcSecurityGroupIds(const Aws::String& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; } /** *

The VPC security group IDs for the DB proxy endpoint that you create. You can * specify a different set of security group IDs than for the original DB proxy. * The default is the default security group for the VPC.

*/ inline CreateDBProxyEndpointRequest& AddVpcSecurityGroupIds(Aws::String&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(std::move(value)); return *this; } /** *

The VPC security group IDs for the DB proxy endpoint that you create. You can * specify a different set of security group IDs than for the original DB proxy. * The default is the default security group for the VPC.

*/ inline CreateDBProxyEndpointRequest& AddVpcSecurityGroupIds(const char* value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; } /** *

A value that indicates whether the DB proxy endpoint can be used for * read/write or read-only operations. The default is READ_WRITE. The * only role that proxies for RDS for Microsoft SQL Server support is * READ_WRITE.

*/ inline const DBProxyEndpointTargetRole& GetTargetRole() const{ return m_targetRole; } /** *

A value that indicates whether the DB proxy endpoint can be used for * read/write or read-only operations. The default is READ_WRITE. The * only role that proxies for RDS for Microsoft SQL Server support is * READ_WRITE.

*/ inline bool TargetRoleHasBeenSet() const { return m_targetRoleHasBeenSet; } /** *

A value that indicates whether the DB proxy endpoint can be used for * read/write or read-only operations. The default is READ_WRITE. The * only role that proxies for RDS for Microsoft SQL Server support is * READ_WRITE.

*/ inline void SetTargetRole(const DBProxyEndpointTargetRole& value) { m_targetRoleHasBeenSet = true; m_targetRole = value; } /** *

A value that indicates whether the DB proxy endpoint can be used for * read/write or read-only operations. The default is READ_WRITE. The * only role that proxies for RDS for Microsoft SQL Server support is * READ_WRITE.

*/ inline void SetTargetRole(DBProxyEndpointTargetRole&& value) { m_targetRoleHasBeenSet = true; m_targetRole = std::move(value); } /** *

A value that indicates whether the DB proxy endpoint can be used for * read/write or read-only operations. The default is READ_WRITE. The * only role that proxies for RDS for Microsoft SQL Server support is * READ_WRITE.

*/ inline CreateDBProxyEndpointRequest& WithTargetRole(const DBProxyEndpointTargetRole& value) { SetTargetRole(value); return *this;} /** *

A value that indicates whether the DB proxy endpoint can be used for * read/write or read-only operations. The default is READ_WRITE. The * only role that proxies for RDS for Microsoft SQL Server support is * READ_WRITE.

*/ inline CreateDBProxyEndpointRequest& WithTargetRole(DBProxyEndpointTargetRole&& value) { SetTargetRole(std::move(value)); return *this;} inline const Aws::Vector& GetTags() const{ return m_tags; } inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } inline CreateDBProxyEndpointRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} inline CreateDBProxyEndpointRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} inline CreateDBProxyEndpointRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } inline CreateDBProxyEndpointRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_dBProxyName; bool m_dBProxyNameHasBeenSet = false; Aws::String m_dBProxyEndpointName; bool m_dBProxyEndpointNameHasBeenSet = false; Aws::Vector m_vpcSubnetIds; bool m_vpcSubnetIdsHasBeenSet = false; Aws::Vector m_vpcSecurityGroupIds; bool m_vpcSecurityGroupIdsHasBeenSet = false; DBProxyEndpointTargetRole m_targetRole; bool m_targetRoleHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace RDS } // namespace Aws