/** * 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 RegisterDBProxyTargetsRequest : public RDSRequest { public: AWS_RDS_API RegisterDBProxyTargetsRequest(); // 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 "RegisterDBProxyTargets"; } AWS_RDS_API Aws::String SerializePayload() const override; protected: AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The identifier of the DBProxy that is associated with the * DBProxyTargetGroup.

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

The identifier of the DBProxy that is associated with the * DBProxyTargetGroup.

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

The identifier of the DBProxy that is associated with the * DBProxyTargetGroup.

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

The identifier of the DBProxy that is associated with the * DBProxyTargetGroup.

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

The identifier of the DBProxy that is associated with the * DBProxyTargetGroup.

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

The identifier of the DBProxy that is associated with the * DBProxyTargetGroup.

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

The identifier of the DBProxy that is associated with the * DBProxyTargetGroup.

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

The identifier of the DBProxy that is associated with the * DBProxyTargetGroup.

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

The identifier of the DBProxyTargetGroup.

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

The identifier of the DBProxyTargetGroup.

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

The identifier of the DBProxyTargetGroup.

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

The identifier of the DBProxyTargetGroup.

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

The identifier of the DBProxyTargetGroup.

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

The identifier of the DBProxyTargetGroup.

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

The identifier of the DBProxyTargetGroup.

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

The identifier of the DBProxyTargetGroup.

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

One or more DB instance identifiers.

*/ inline const Aws::Vector& GetDBInstanceIdentifiers() const{ return m_dBInstanceIdentifiers; } /** *

One or more DB instance identifiers.

*/ inline bool DBInstanceIdentifiersHasBeenSet() const { return m_dBInstanceIdentifiersHasBeenSet; } /** *

One or more DB instance identifiers.

*/ inline void SetDBInstanceIdentifiers(const Aws::Vector& value) { m_dBInstanceIdentifiersHasBeenSet = true; m_dBInstanceIdentifiers = value; } /** *

One or more DB instance identifiers.

*/ inline void SetDBInstanceIdentifiers(Aws::Vector&& value) { m_dBInstanceIdentifiersHasBeenSet = true; m_dBInstanceIdentifiers = std::move(value); } /** *

One or more DB instance identifiers.

*/ inline RegisterDBProxyTargetsRequest& WithDBInstanceIdentifiers(const Aws::Vector& value) { SetDBInstanceIdentifiers(value); return *this;} /** *

One or more DB instance identifiers.

*/ inline RegisterDBProxyTargetsRequest& WithDBInstanceIdentifiers(Aws::Vector&& value) { SetDBInstanceIdentifiers(std::move(value)); return *this;} /** *

One or more DB instance identifiers.

*/ inline RegisterDBProxyTargetsRequest& AddDBInstanceIdentifiers(const Aws::String& value) { m_dBInstanceIdentifiersHasBeenSet = true; m_dBInstanceIdentifiers.push_back(value); return *this; } /** *

One or more DB instance identifiers.

*/ inline RegisterDBProxyTargetsRequest& AddDBInstanceIdentifiers(Aws::String&& value) { m_dBInstanceIdentifiersHasBeenSet = true; m_dBInstanceIdentifiers.push_back(std::move(value)); return *this; } /** *

One or more DB instance identifiers.

*/ inline RegisterDBProxyTargetsRequest& AddDBInstanceIdentifiers(const char* value) { m_dBInstanceIdentifiersHasBeenSet = true; m_dBInstanceIdentifiers.push_back(value); return *this; } /** *

One or more DB cluster identifiers.

*/ inline const Aws::Vector& GetDBClusterIdentifiers() const{ return m_dBClusterIdentifiers; } /** *

One or more DB cluster identifiers.

*/ inline bool DBClusterIdentifiersHasBeenSet() const { return m_dBClusterIdentifiersHasBeenSet; } /** *

One or more DB cluster identifiers.

*/ inline void SetDBClusterIdentifiers(const Aws::Vector& value) { m_dBClusterIdentifiersHasBeenSet = true; m_dBClusterIdentifiers = value; } /** *

One or more DB cluster identifiers.

*/ inline void SetDBClusterIdentifiers(Aws::Vector&& value) { m_dBClusterIdentifiersHasBeenSet = true; m_dBClusterIdentifiers = std::move(value); } /** *

One or more DB cluster identifiers.

*/ inline RegisterDBProxyTargetsRequest& WithDBClusterIdentifiers(const Aws::Vector& value) { SetDBClusterIdentifiers(value); return *this;} /** *

One or more DB cluster identifiers.

*/ inline RegisterDBProxyTargetsRequest& WithDBClusterIdentifiers(Aws::Vector&& value) { SetDBClusterIdentifiers(std::move(value)); return *this;} /** *

One or more DB cluster identifiers.

*/ inline RegisterDBProxyTargetsRequest& AddDBClusterIdentifiers(const Aws::String& value) { m_dBClusterIdentifiersHasBeenSet = true; m_dBClusterIdentifiers.push_back(value); return *this; } /** *

One or more DB cluster identifiers.

*/ inline RegisterDBProxyTargetsRequest& AddDBClusterIdentifiers(Aws::String&& value) { m_dBClusterIdentifiersHasBeenSet = true; m_dBClusterIdentifiers.push_back(std::move(value)); return *this; } /** *

One or more DB cluster identifiers.

*/ inline RegisterDBProxyTargetsRequest& AddDBClusterIdentifiers(const char* value) { m_dBClusterIdentifiersHasBeenSet = true; m_dBClusterIdentifiers.push_back(value); return *this; } private: Aws::String m_dBProxyName; bool m_dBProxyNameHasBeenSet = false; Aws::String m_targetGroupName; bool m_targetGroupNameHasBeenSet = false; Aws::Vector m_dBInstanceIdentifiers; bool m_dBInstanceIdentifiersHasBeenSet = false; Aws::Vector m_dBClusterIdentifiers; bool m_dBClusterIdentifiersHasBeenSet = false; }; } // namespace Model } // namespace RDS } // namespace Aws