/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace RDS { namespace Model { /** */ class ModifyDBProxyRequest : public RDSRequest { public: AWS_RDS_API ModifyDBProxyRequest(); // 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 "ModifyDBProxy"; } 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 DBProxy to modify.

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

The identifier for the DBProxy to modify.

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

The identifier for the DBProxy to modify.

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

The identifier for the DBProxy to modify.

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

The identifier for the DBProxy to modify.

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

The identifier for the DBProxy to modify.

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

The identifier for the DBProxy to modify.

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

The identifier for the DBProxy to modify.

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

The new identifier for the DBProxy. 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& GetNewDBProxyName() const{ return m_newDBProxyName; } /** *

The new identifier for the DBProxy. 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 NewDBProxyNameHasBeenSet() const { return m_newDBProxyNameHasBeenSet; } /** *

The new identifier for the DBProxy. 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 SetNewDBProxyName(const Aws::String& value) { m_newDBProxyNameHasBeenSet = true; m_newDBProxyName = value; } /** *

The new identifier for the DBProxy. 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 SetNewDBProxyName(Aws::String&& value) { m_newDBProxyNameHasBeenSet = true; m_newDBProxyName = std::move(value); } /** *

The new identifier for the DBProxy. 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 SetNewDBProxyName(const char* value) { m_newDBProxyNameHasBeenSet = true; m_newDBProxyName.assign(value); } /** *

The new identifier for the DBProxy. 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 ModifyDBProxyRequest& WithNewDBProxyName(const Aws::String& value) { SetNewDBProxyName(value); return *this;} /** *

The new identifier for the DBProxy. 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 ModifyDBProxyRequest& WithNewDBProxyName(Aws::String&& value) { SetNewDBProxyName(std::move(value)); return *this;} /** *

The new identifier for the DBProxy. 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 ModifyDBProxyRequest& WithNewDBProxyName(const char* value) { SetNewDBProxyName(value); return *this;} /** *

The new authentication settings for the DBProxy.

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

The new authentication settings for the DBProxy.

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

The new authentication settings for the DBProxy.

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

The new authentication settings for the DBProxy.

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

The new authentication settings for the DBProxy.

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

The new authentication settings for the DBProxy.

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

The new authentication settings for the DBProxy.

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

The new authentication settings for the DBProxy.

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

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, even if the associated database doesn't use TLS.

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

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, even if the associated database doesn't use TLS.

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

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, even if the associated database doesn't use TLS.

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

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, even if the associated database doesn't use TLS.

*/ inline ModifyDBProxyRequest& 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 ModifyDBProxyRequest& 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 ModifyDBProxyRequest& WithDebugLogging(bool value) { SetDebugLogging(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 ModifyDBProxyRequest& 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 ModifyDBProxyRequest& 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 ModifyDBProxyRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

The new list of security groups for the DBProxy.

*/ inline const Aws::Vector& GetSecurityGroups() const{ return m_securityGroups; } /** *

The new list of security groups for the DBProxy.

*/ inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; } /** *

The new list of security groups for the DBProxy.

*/ inline void SetSecurityGroups(const Aws::Vector& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; } /** *

The new list of security groups for the DBProxy.

*/ inline void SetSecurityGroups(Aws::Vector&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); } /** *

The new list of security groups for the DBProxy.

*/ inline ModifyDBProxyRequest& WithSecurityGroups(const Aws::Vector& value) { SetSecurityGroups(value); return *this;} /** *

The new list of security groups for the DBProxy.

*/ inline ModifyDBProxyRequest& WithSecurityGroups(Aws::Vector&& value) { SetSecurityGroups(std::move(value)); return *this;} /** *

The new list of security groups for the DBProxy.

*/ inline ModifyDBProxyRequest& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } /** *

The new list of security groups for the DBProxy.

*/ inline ModifyDBProxyRequest& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; } /** *

The new list of security groups for the DBProxy.

*/ inline ModifyDBProxyRequest& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } private: Aws::String m_dBProxyName; bool m_dBProxyNameHasBeenSet = false; Aws::String m_newDBProxyName; bool m_newDBProxyNameHasBeenSet = false; Aws::Vector m_auth; bool m_authHasBeenSet = false; bool m_requireTLS; bool m_requireTLSHasBeenSet = false; int m_idleClientTimeout; bool m_idleClientTimeoutHasBeenSet = false; bool m_debugLogging; bool m_debugLoggingHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::Vector m_securityGroups; bool m_securityGroupsHasBeenSet = false; }; } // namespace Model } // namespace RDS } // namespace Aws