/** * 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 #include namespace Aws { namespace RDS { namespace Model { /** */ class CreateDBProxyRequest : public RDSRequest { public: AWS_RDS_API CreateDBProxyRequest(); // 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 "CreateDBProxy"; } AWS_RDS_API Aws::String SerializePayload() const override; protected: AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The identifier for the proxy. This name must be unique for all proxies owned * by your Amazon Web Services account in the specified Amazon Web Services Region. * An identifier must begin with a letter and must contain only ASCII letters, * digits, and hyphens; it can't end with a hyphen or contain two consecutive * hyphens.

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

The identifier for the proxy. This name must be unique for all proxies owned * by your Amazon Web Services account in the specified Amazon Web Services Region. * An identifier must begin with a letter and must contain only ASCII letters, * digits, and hyphens; it can't end with a hyphen or contain two consecutive * hyphens.

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

The identifier for the proxy. This name must be unique for all proxies owned * by your Amazon Web Services account in the specified Amazon Web Services Region. * An identifier must begin with a letter and must contain only ASCII letters, * digits, and hyphens; it can't end with a hyphen or contain two consecutive * hyphens.

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

The identifier for the proxy. This name must be unique for all proxies owned * by your Amazon Web Services account in the specified Amazon Web Services Region. * An identifier must begin with a letter and must contain only ASCII letters, * digits, and hyphens; it can't end with a hyphen or contain two consecutive * hyphens.

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

The identifier for the proxy. This name must be unique for all proxies owned * by your Amazon Web Services account in the specified Amazon Web Services Region. * An identifier must begin with a letter and must contain only ASCII letters, * digits, and hyphens; it can't end with a hyphen or contain two consecutive * hyphens.

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

The identifier for the proxy. This name must be unique for all proxies owned * by your Amazon Web Services account in the specified Amazon Web Services Region. * An identifier must begin with a letter and must contain only ASCII letters, * digits, and hyphens; it can't end with a hyphen or contain two consecutive * hyphens.

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

The identifier for the proxy. This name must be unique for all proxies owned * by your Amazon Web Services account in the specified Amazon Web Services Region. * An identifier must begin with a letter and must contain only ASCII letters, * digits, and hyphens; it can't end with a hyphen or contain two consecutive * hyphens.

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

The identifier for the proxy. This name must be unique for all proxies owned * by your Amazon Web Services account in the specified Amazon Web Services Region. * An identifier must begin with a letter and must contain only ASCII letters, * digits, and hyphens; it can't end with a hyphen or contain two consecutive * hyphens.

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

The kinds of databases that the proxy can connect to. This value determines * which database network protocol the proxy recognizes when it interprets network * traffic to and from the database. For Aurora MySQL, RDS for MariaDB, and RDS for * MySQL databases, specify MYSQL. For Aurora PostgreSQL and RDS for * PostgreSQL databases, specify POSTGRESQL. For RDS for Microsoft SQL * Server, specify SQLSERVER.

*/ inline const EngineFamily& GetEngineFamily() const{ return m_engineFamily; } /** *

The kinds of databases that the proxy can connect to. This value determines * which database network protocol the proxy recognizes when it interprets network * traffic to and from the database. For Aurora MySQL, RDS for MariaDB, and RDS for * MySQL databases, specify MYSQL. For Aurora PostgreSQL and RDS for * PostgreSQL databases, specify POSTGRESQL. For RDS for Microsoft SQL * Server, specify SQLSERVER.

*/ inline bool EngineFamilyHasBeenSet() const { return m_engineFamilyHasBeenSet; } /** *

The kinds of databases that the proxy can connect to. This value determines * which database network protocol the proxy recognizes when it interprets network * traffic to and from the database. For Aurora MySQL, RDS for MariaDB, and RDS for * MySQL databases, specify MYSQL. For Aurora PostgreSQL and RDS for * PostgreSQL databases, specify POSTGRESQL. For RDS for Microsoft SQL * Server, specify SQLSERVER.

*/ inline void SetEngineFamily(const EngineFamily& value) { m_engineFamilyHasBeenSet = true; m_engineFamily = value; } /** *

The kinds of databases that the proxy can connect to. This value determines * which database network protocol the proxy recognizes when it interprets network * traffic to and from the database. For Aurora MySQL, RDS for MariaDB, and RDS for * MySQL databases, specify MYSQL. For Aurora PostgreSQL and RDS for * PostgreSQL databases, specify POSTGRESQL. For RDS for Microsoft SQL * Server, specify SQLSERVER.

*/ inline void SetEngineFamily(EngineFamily&& value) { m_engineFamilyHasBeenSet = true; m_engineFamily = std::move(value); } /** *

The kinds of databases that the proxy can connect to. This value determines * which database network protocol the proxy recognizes when it interprets network * traffic to and from the database. For Aurora MySQL, RDS for MariaDB, and RDS for * MySQL databases, specify MYSQL. For Aurora PostgreSQL and RDS for * PostgreSQL databases, specify POSTGRESQL. For RDS for Microsoft SQL * Server, specify SQLSERVER.

*/ inline CreateDBProxyRequest& WithEngineFamily(const EngineFamily& value) { SetEngineFamily(value); return *this;} /** *

The kinds of databases that the proxy can connect to. This value determines * which database network protocol the proxy recognizes when it interprets network * traffic to and from the database. For Aurora MySQL, RDS for MariaDB, and RDS for * MySQL databases, specify MYSQL. For Aurora PostgreSQL and RDS for * PostgreSQL databases, specify POSTGRESQL. For RDS for Microsoft SQL * Server, specify SQLSERVER.

*/ inline CreateDBProxyRequest& WithEngineFamily(EngineFamily&& value) { SetEngineFamily(std::move(value)); return *this;} /** *

The authorization mechanism that the proxy uses.

*/ inline const Aws::Vector& GetAuth() const{ return m_auth; } /** *

The authorization mechanism that the proxy uses.

*/ inline bool AuthHasBeenSet() const { return m_authHasBeenSet; } /** *

The authorization mechanism that the proxy uses.

*/ inline void SetAuth(const Aws::Vector& value) { m_authHasBeenSet = true; m_auth = value; } /** *

The authorization mechanism that the proxy uses.

*/ inline void SetAuth(Aws::Vector&& value) { m_authHasBeenSet = true; m_auth = std::move(value); } /** *

The authorization mechanism that the proxy uses.

*/ inline CreateDBProxyRequest& WithAuth(const Aws::Vector& value) { SetAuth(value); return *this;} /** *

The authorization mechanism that the proxy uses.

*/ inline CreateDBProxyRequest& WithAuth(Aws::Vector&& value) { SetAuth(std::move(value)); return *this;} /** *

The authorization mechanism that the proxy uses.

*/ inline CreateDBProxyRequest& AddAuth(const UserAuthConfig& value) { m_authHasBeenSet = true; m_auth.push_back(value); return *this; } /** *

The authorization mechanism that the proxy uses.

*/ inline CreateDBProxyRequest& AddAuth(UserAuthConfig&& value) { m_authHasBeenSet = true; m_auth.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access * secrets in Amazon Web Services Secrets Manager.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access * secrets in Amazon Web Services Secrets Manager.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access * secrets in Amazon Web Services Secrets Manager.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access * secrets in Amazon Web Services Secrets Manager.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access * secrets in Amazon Web Services Secrets Manager.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access * secrets in Amazon Web Services Secrets Manager.

*/ inline CreateDBProxyRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access * secrets in Amazon Web Services Secrets Manager.

*/ inline CreateDBProxyRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access * secrets in Amazon Web Services Secrets Manager.

*/ inline CreateDBProxyRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

One or more VPC subnet IDs to associate with the new proxy.

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

One or more VPC subnet IDs to associate with the new proxy.

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

One or more VPC subnet IDs to associate with the new proxy.

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

One or more VPC subnet IDs to associate with the new proxy.

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

One or more VPC subnet IDs to associate with the new proxy.

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

One or more VPC subnet IDs to associate with the new proxy.

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

One or more VPC subnet IDs to associate with the new proxy.

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

One or more VPC subnet IDs to associate with the new proxy.

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

One or more VPC subnet IDs to associate with the new proxy.

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

One or more VPC security group IDs to associate with the new proxy.

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

One or more VPC security group IDs to associate with the new proxy.

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

One or more VPC security group IDs to associate with the new proxy.

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

One or more VPC security group IDs to associate with the new proxy.

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

One or more VPC security group IDs to associate with the new proxy.

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

One or more VPC security group IDs to associate with the new proxy.

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

One or more VPC security group IDs to associate with the new proxy.

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

One or more VPC security group IDs to associate with the new proxy.

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

One or more VPC security group IDs to associate with the new proxy.

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

A Boolean parameter that specifies whether Transport Layer Security (TLS) * encryption is required for connections to the proxy. By enabling this setting, * you can enforce encrypted TLS connections to the proxy.

*/ inline bool GetRequireTLS() const{ return m_requireTLS; } /** *

A Boolean parameter that specifies whether Transport Layer Security (TLS) * encryption is required for connections to the proxy. By enabling this setting, * you can enforce encrypted TLS connections to the proxy.

*/ inline bool RequireTLSHasBeenSet() const { return m_requireTLSHasBeenSet; } /** *

A Boolean parameter that specifies whether Transport Layer Security (TLS) * encryption is required for connections to the proxy. By enabling this setting, * you can enforce encrypted TLS connections to the proxy.

*/ inline void SetRequireTLS(bool value) { m_requireTLSHasBeenSet = true; m_requireTLS = value; } /** *

A Boolean parameter that specifies whether Transport Layer Security (TLS) * encryption is required for connections to the proxy. By enabling this setting, * you can enforce encrypted TLS connections to the proxy.

*/ inline CreateDBProxyRequest& WithRequireTLS(bool value) { SetRequireTLS(value); return *this;} /** *

The number of seconds that a connection to the proxy can be inactive before * the proxy disconnects it. You can set this value higher or lower than the * connection timeout limit for the associated database.

*/ inline int GetIdleClientTimeout() const{ return m_idleClientTimeout; } /** *

The number of seconds that a connection to the proxy can be inactive before * the proxy disconnects it. You can set this value higher or lower than the * connection timeout limit for the associated database.

*/ inline bool IdleClientTimeoutHasBeenSet() const { return m_idleClientTimeoutHasBeenSet; } /** *

The number of seconds that a connection to the proxy can be inactive before * the proxy disconnects it. You can set this value higher or lower than the * connection timeout limit for the associated database.

*/ inline void SetIdleClientTimeout(int value) { m_idleClientTimeoutHasBeenSet = true; m_idleClientTimeout = value; } /** *

The number of seconds that a connection to the proxy can be inactive before * the proxy disconnects it. You can set this value higher or lower than the * connection timeout limit for the associated database.

*/ inline CreateDBProxyRequest& WithIdleClientTimeout(int value) { SetIdleClientTimeout(value); return *this;} /** *

Whether the proxy includes detailed information about SQL statements in its * logs. This information helps you to debug issues involving SQL behavior or the * performance and scalability of the proxy connections. The debug information * includes the text of SQL statements that you submit through the proxy. Thus, * only enable this setting when needed for debugging, and only when you have * security measures in place to safeguard any sensitive information that appears * in the logs.

*/ inline bool GetDebugLogging() const{ return m_debugLogging; } /** *

Whether the proxy includes detailed information about SQL statements in its * logs. This information helps you to debug issues involving SQL behavior or the * performance and scalability of the proxy connections. The debug information * includes the text of SQL statements that you submit through the proxy. Thus, * only enable this setting when needed for debugging, and only when you have * security measures in place to safeguard any sensitive information that appears * in the logs.

*/ inline bool DebugLoggingHasBeenSet() const { return m_debugLoggingHasBeenSet; } /** *

Whether the proxy includes detailed information about SQL statements in its * logs. This information helps you to debug issues involving SQL behavior or the * performance and scalability of the proxy connections. The debug information * includes the text of SQL statements that you submit through the proxy. Thus, * only enable this setting when needed for debugging, and only when you have * security measures in place to safeguard any sensitive information that appears * in the logs.

*/ inline void SetDebugLogging(bool value) { m_debugLoggingHasBeenSet = true; m_debugLogging = value; } /** *

Whether the proxy includes detailed information about SQL statements in its * logs. This information helps you to debug issues involving SQL behavior or the * performance and scalability of the proxy connections. The debug information * includes the text of SQL statements that you submit through the proxy. Thus, * only enable this setting when needed for debugging, and only when you have * security measures in place to safeguard any sensitive information that appears * in the logs.

*/ inline CreateDBProxyRequest& WithDebugLogging(bool value) { SetDebugLogging(value); return *this;} /** *

An optional set of key-value pairs to associate arbitrary data of your * choosing with the proxy.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

An optional set of key-value pairs to associate arbitrary data of your * choosing with the proxy.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

An optional set of key-value pairs to associate arbitrary data of your * choosing with the proxy.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

An optional set of key-value pairs to associate arbitrary data of your * choosing with the proxy.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

An optional set of key-value pairs to associate arbitrary data of your * choosing with the proxy.

*/ inline CreateDBProxyRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

An optional set of key-value pairs to associate arbitrary data of your * choosing with the proxy.

*/ inline CreateDBProxyRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

An optional set of key-value pairs to associate arbitrary data of your * choosing with the proxy.

*/ inline CreateDBProxyRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

An optional set of key-value pairs to associate arbitrary data of your * choosing with the proxy.

*/ inline CreateDBProxyRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_dBProxyName; bool m_dBProxyNameHasBeenSet = false; EngineFamily m_engineFamily; bool m_engineFamilyHasBeenSet = false; Aws::Vector m_auth; bool m_authHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::Vector m_vpcSubnetIds; bool m_vpcSubnetIdsHasBeenSet = false; Aws::Vector m_vpcSecurityGroupIds; bool m_vpcSecurityGroupIdsHasBeenSet = false; bool m_requireTLS; bool m_requireTLSHasBeenSet = false; int m_idleClientTimeout; bool m_idleClientTimeoutHasBeenSet = false; bool m_debugLogging; bool m_debugLoggingHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace RDS } // namespace Aws