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

*/ inline const Aws::String& GetTargetGroupName() const{ return m_targetGroupName; } /** *

The name of the target group to modify.

*/ inline bool TargetGroupNameHasBeenSet() const { return m_targetGroupNameHasBeenSet; } /** *

The name of the target group to modify.

*/ inline void SetTargetGroupName(const Aws::String& value) { m_targetGroupNameHasBeenSet = true; m_targetGroupName = value; } /** *

The name of the target group to modify.

*/ inline void SetTargetGroupName(Aws::String&& value) { m_targetGroupNameHasBeenSet = true; m_targetGroupName = std::move(value); } /** *

The name of the target group to modify.

*/ inline void SetTargetGroupName(const char* value) { m_targetGroupNameHasBeenSet = true; m_targetGroupName.assign(value); } /** *

The name of the target group to modify.

*/ inline ModifyDBProxyTargetGroupRequest& WithTargetGroupName(const Aws::String& value) { SetTargetGroupName(value); return *this;} /** *

The name of the target group to modify.

*/ inline ModifyDBProxyTargetGroupRequest& WithTargetGroupName(Aws::String&& value) { SetTargetGroupName(std::move(value)); return *this;} /** *

The name of the target group to modify.

*/ inline ModifyDBProxyTargetGroupRequest& WithTargetGroupName(const char* value) { SetTargetGroupName(value); return *this;} /** *

The name of the proxy.

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

The name of the proxy.

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

The name of the proxy.

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

The name of the proxy.

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

The name of the proxy.

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

The name of the proxy.

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

The name of the proxy.

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

The name of the proxy.

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

The settings that determine the size and behavior of the connection pool for * the target group.

*/ inline const ConnectionPoolConfiguration& GetConnectionPoolConfig() const{ return m_connectionPoolConfig; } /** *

The settings that determine the size and behavior of the connection pool for * the target group.

*/ inline bool ConnectionPoolConfigHasBeenSet() const { return m_connectionPoolConfigHasBeenSet; } /** *

The settings that determine the size and behavior of the connection pool for * the target group.

*/ inline void SetConnectionPoolConfig(const ConnectionPoolConfiguration& value) { m_connectionPoolConfigHasBeenSet = true; m_connectionPoolConfig = value; } /** *

The settings that determine the size and behavior of the connection pool for * the target group.

*/ inline void SetConnectionPoolConfig(ConnectionPoolConfiguration&& value) { m_connectionPoolConfigHasBeenSet = true; m_connectionPoolConfig = std::move(value); } /** *

The settings that determine the size and behavior of the connection pool for * the target group.

*/ inline ModifyDBProxyTargetGroupRequest& WithConnectionPoolConfig(const ConnectionPoolConfiguration& value) { SetConnectionPoolConfig(value); return *this;} /** *

The settings that determine the size and behavior of the connection pool for * the target group.

*/ inline ModifyDBProxyTargetGroupRequest& WithConnectionPoolConfig(ConnectionPoolConfiguration&& value) { SetConnectionPoolConfig(std::move(value)); return *this;} /** *

The new name for the modified DBProxyTarget. 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& GetNewName() const{ return m_newName; } /** *

The new name for the modified DBProxyTarget. 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 NewNameHasBeenSet() const { return m_newNameHasBeenSet; } /** *

The new name for the modified DBProxyTarget. 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 SetNewName(const Aws::String& value) { m_newNameHasBeenSet = true; m_newName = value; } /** *

The new name for the modified DBProxyTarget. 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 SetNewName(Aws::String&& value) { m_newNameHasBeenSet = true; m_newName = std::move(value); } /** *

The new name for the modified DBProxyTarget. 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 SetNewName(const char* value) { m_newNameHasBeenSet = true; m_newName.assign(value); } /** *

The new name for the modified DBProxyTarget. 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 ModifyDBProxyTargetGroupRequest& WithNewName(const Aws::String& value) { SetNewName(value); return *this;} /** *

The new name for the modified DBProxyTarget. 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 ModifyDBProxyTargetGroupRequest& WithNewName(Aws::String&& value) { SetNewName(std::move(value)); return *this;} /** *

The new name for the modified DBProxyTarget. 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 ModifyDBProxyTargetGroupRequest& WithNewName(const char* value) { SetNewName(value); return *this;} private: Aws::String m_targetGroupName; bool m_targetGroupNameHasBeenSet = false; Aws::String m_dBProxyName; bool m_dBProxyNameHasBeenSet = false; ConnectionPoolConfiguration m_connectionPoolConfig; bool m_connectionPoolConfigHasBeenSet = false; Aws::String m_newName; bool m_newNameHasBeenSet = false; }; } // namespace Model } // namespace RDS } // namespace Aws