/** * 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 { /** *

See Also:

AWS * API Reference

*/ class CreateDBClusterParameterGroupRequest : public RDSRequest { public: AWS_RDS_API CreateDBClusterParameterGroupRequest(); // 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 "CreateDBClusterParameterGroup"; } 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 cluster parameter group.

Constraints:

  • *

    Must not match the name of an existing DB cluster parameter group.

  • *

This value is stored as a lowercase string.

*/ inline const Aws::String& GetDBClusterParameterGroupName() const{ return m_dBClusterParameterGroupName; } /** *

The name of the DB cluster parameter group.

Constraints:

  • *

    Must not match the name of an existing DB cluster parameter group.

  • *

This value is stored as a lowercase string.

*/ inline bool DBClusterParameterGroupNameHasBeenSet() const { return m_dBClusterParameterGroupNameHasBeenSet; } /** *

The name of the DB cluster parameter group.

Constraints:

  • *

    Must not match the name of an existing DB cluster parameter group.

  • *

This value is stored as a lowercase string.

*/ inline void SetDBClusterParameterGroupName(const Aws::String& value) { m_dBClusterParameterGroupNameHasBeenSet = true; m_dBClusterParameterGroupName = value; } /** *

The name of the DB cluster parameter group.

Constraints:

  • *

    Must not match the name of an existing DB cluster parameter group.

  • *

This value is stored as a lowercase string.

*/ inline void SetDBClusterParameterGroupName(Aws::String&& value) { m_dBClusterParameterGroupNameHasBeenSet = true; m_dBClusterParameterGroupName = std::move(value); } /** *

The name of the DB cluster parameter group.

Constraints:

  • *

    Must not match the name of an existing DB cluster parameter group.

  • *

This value is stored as a lowercase string.

*/ inline void SetDBClusterParameterGroupName(const char* value) { m_dBClusterParameterGroupNameHasBeenSet = true; m_dBClusterParameterGroupName.assign(value); } /** *

The name of the DB cluster parameter group.

Constraints:

  • *

    Must not match the name of an existing DB cluster parameter group.

  • *

This value is stored as a lowercase string.

*/ inline CreateDBClusterParameterGroupRequest& WithDBClusterParameterGroupName(const Aws::String& value) { SetDBClusterParameterGroupName(value); return *this;} /** *

The name of the DB cluster parameter group.

Constraints:

  • *

    Must not match the name of an existing DB cluster parameter group.

  • *

This value is stored as a lowercase string.

*/ inline CreateDBClusterParameterGroupRequest& WithDBClusterParameterGroupName(Aws::String&& value) { SetDBClusterParameterGroupName(std::move(value)); return *this;} /** *

The name of the DB cluster parameter group.

Constraints:

  • *

    Must not match the name of an existing DB cluster parameter group.

  • *

This value is stored as a lowercase string.

*/ inline CreateDBClusterParameterGroupRequest& WithDBClusterParameterGroupName(const char* value) { SetDBClusterParameterGroupName(value); return *this;} /** *

The DB cluster parameter group family name. A DB cluster parameter group can * be associated with one and only one DB cluster parameter group family, and can * be applied only to a DB cluster running a database engine and engine version * compatible with that DB cluster parameter group family.

Aurora * MySQL

Example: aurora-mysql5.7, * aurora-mysql8.0

Aurora PostgreSQL

Example: * aurora-postgresql14

RDS for MySQL

Example: * mysql8.0

RDS for PostgreSQL

Example: * postgres12

To list all of the available parameter group * families for a DB engine, use the following command:

aws rds * describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily" * --engine <engine>

For example, to list all of the available * parameter group families for the Aurora PostgreSQL DB engine, use the following * command:

aws rds describe-db-engine-versions --query * "DBEngineVersions[].DBParameterGroupFamily" --engine aurora-postgresql *

The output contains duplicates.

The following are * the valid DB engine values:

  • aurora-mysql

    *
  • aurora-postgresql

  • * mysql

  • postgres

*/ inline const Aws::String& GetDBParameterGroupFamily() const{ return m_dBParameterGroupFamily; } /** *

The DB cluster parameter group family name. A DB cluster parameter group can * be associated with one and only one DB cluster parameter group family, and can * be applied only to a DB cluster running a database engine and engine version * compatible with that DB cluster parameter group family.

Aurora * MySQL

Example: aurora-mysql5.7, * aurora-mysql8.0

Aurora PostgreSQL

Example: * aurora-postgresql14

RDS for MySQL

Example: * mysql8.0

RDS for PostgreSQL

Example: * postgres12

To list all of the available parameter group * families for a DB engine, use the following command:

aws rds * describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily" * --engine <engine>

For example, to list all of the available * parameter group families for the Aurora PostgreSQL DB engine, use the following * command:

aws rds describe-db-engine-versions --query * "DBEngineVersions[].DBParameterGroupFamily" --engine aurora-postgresql *

The output contains duplicates.

The following are * the valid DB engine values:

  • aurora-mysql

    *
  • aurora-postgresql

  • * mysql

  • postgres

*/ inline bool DBParameterGroupFamilyHasBeenSet() const { return m_dBParameterGroupFamilyHasBeenSet; } /** *

The DB cluster parameter group family name. A DB cluster parameter group can * be associated with one and only one DB cluster parameter group family, and can * be applied only to a DB cluster running a database engine and engine version * compatible with that DB cluster parameter group family.

Aurora * MySQL

Example: aurora-mysql5.7, * aurora-mysql8.0

Aurora PostgreSQL

Example: * aurora-postgresql14

RDS for MySQL

Example: * mysql8.0

RDS for PostgreSQL

Example: * postgres12

To list all of the available parameter group * families for a DB engine, use the following command:

aws rds * describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily" * --engine <engine>

For example, to list all of the available * parameter group families for the Aurora PostgreSQL DB engine, use the following * command:

aws rds describe-db-engine-versions --query * "DBEngineVersions[].DBParameterGroupFamily" --engine aurora-postgresql *

The output contains duplicates.

The following are * the valid DB engine values:

  • aurora-mysql

    *
  • aurora-postgresql

  • * mysql

  • postgres

*/ inline void SetDBParameterGroupFamily(const Aws::String& value) { m_dBParameterGroupFamilyHasBeenSet = true; m_dBParameterGroupFamily = value; } /** *

The DB cluster parameter group family name. A DB cluster parameter group can * be associated with one and only one DB cluster parameter group family, and can * be applied only to a DB cluster running a database engine and engine version * compatible with that DB cluster parameter group family.

Aurora * MySQL

Example: aurora-mysql5.7, * aurora-mysql8.0

Aurora PostgreSQL

Example: * aurora-postgresql14

RDS for MySQL

Example: * mysql8.0

RDS for PostgreSQL

Example: * postgres12

To list all of the available parameter group * families for a DB engine, use the following command:

aws rds * describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily" * --engine <engine>

For example, to list all of the available * parameter group families for the Aurora PostgreSQL DB engine, use the following * command:

aws rds describe-db-engine-versions --query * "DBEngineVersions[].DBParameterGroupFamily" --engine aurora-postgresql *

The output contains duplicates.

The following are * the valid DB engine values:

  • aurora-mysql

    *
  • aurora-postgresql

  • * mysql

  • postgres

*/ inline void SetDBParameterGroupFamily(Aws::String&& value) { m_dBParameterGroupFamilyHasBeenSet = true; m_dBParameterGroupFamily = std::move(value); } /** *

The DB cluster parameter group family name. A DB cluster parameter group can * be associated with one and only one DB cluster parameter group family, and can * be applied only to a DB cluster running a database engine and engine version * compatible with that DB cluster parameter group family.

Aurora * MySQL

Example: aurora-mysql5.7, * aurora-mysql8.0

Aurora PostgreSQL

Example: * aurora-postgresql14

RDS for MySQL

Example: * mysql8.0

RDS for PostgreSQL

Example: * postgres12

To list all of the available parameter group * families for a DB engine, use the following command:

aws rds * describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily" * --engine <engine>

For example, to list all of the available * parameter group families for the Aurora PostgreSQL DB engine, use the following * command:

aws rds describe-db-engine-versions --query * "DBEngineVersions[].DBParameterGroupFamily" --engine aurora-postgresql *

The output contains duplicates.

The following are * the valid DB engine values:

  • aurora-mysql

    *
  • aurora-postgresql

  • * mysql

  • postgres

*/ inline void SetDBParameterGroupFamily(const char* value) { m_dBParameterGroupFamilyHasBeenSet = true; m_dBParameterGroupFamily.assign(value); } /** *

The DB cluster parameter group family name. A DB cluster parameter group can * be associated with one and only one DB cluster parameter group family, and can * be applied only to a DB cluster running a database engine and engine version * compatible with that DB cluster parameter group family.

Aurora * MySQL

Example: aurora-mysql5.7, * aurora-mysql8.0

Aurora PostgreSQL

Example: * aurora-postgresql14

RDS for MySQL

Example: * mysql8.0

RDS for PostgreSQL

Example: * postgres12

To list all of the available parameter group * families for a DB engine, use the following command:

aws rds * describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily" * --engine <engine>

For example, to list all of the available * parameter group families for the Aurora PostgreSQL DB engine, use the following * command:

aws rds describe-db-engine-versions --query * "DBEngineVersions[].DBParameterGroupFamily" --engine aurora-postgresql *

The output contains duplicates.

The following are * the valid DB engine values:

  • aurora-mysql

    *
  • aurora-postgresql

  • * mysql

  • postgres

*/ inline CreateDBClusterParameterGroupRequest& WithDBParameterGroupFamily(const Aws::String& value) { SetDBParameterGroupFamily(value); return *this;} /** *

The DB cluster parameter group family name. A DB cluster parameter group can * be associated with one and only one DB cluster parameter group family, and can * be applied only to a DB cluster running a database engine and engine version * compatible with that DB cluster parameter group family.

Aurora * MySQL

Example: aurora-mysql5.7, * aurora-mysql8.0

Aurora PostgreSQL

Example: * aurora-postgresql14

RDS for MySQL

Example: * mysql8.0

RDS for PostgreSQL

Example: * postgres12

To list all of the available parameter group * families for a DB engine, use the following command:

aws rds * describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily" * --engine <engine>

For example, to list all of the available * parameter group families for the Aurora PostgreSQL DB engine, use the following * command:

aws rds describe-db-engine-versions --query * "DBEngineVersions[].DBParameterGroupFamily" --engine aurora-postgresql *

The output contains duplicates.

The following are * the valid DB engine values:

  • aurora-mysql

    *
  • aurora-postgresql

  • * mysql

  • postgres

*/ inline CreateDBClusterParameterGroupRequest& WithDBParameterGroupFamily(Aws::String&& value) { SetDBParameterGroupFamily(std::move(value)); return *this;} /** *

The DB cluster parameter group family name. A DB cluster parameter group can * be associated with one and only one DB cluster parameter group family, and can * be applied only to a DB cluster running a database engine and engine version * compatible with that DB cluster parameter group family.

Aurora * MySQL

Example: aurora-mysql5.7, * aurora-mysql8.0

Aurora PostgreSQL

Example: * aurora-postgresql14

RDS for MySQL

Example: * mysql8.0

RDS for PostgreSQL

Example: * postgres12

To list all of the available parameter group * families for a DB engine, use the following command:

aws rds * describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily" * --engine <engine>

For example, to list all of the available * parameter group families for the Aurora PostgreSQL DB engine, use the following * command:

aws rds describe-db-engine-versions --query * "DBEngineVersions[].DBParameterGroupFamily" --engine aurora-postgresql *

The output contains duplicates.

The following are * the valid DB engine values:

  • aurora-mysql

    *
  • aurora-postgresql

  • * mysql

  • postgres

*/ inline CreateDBClusterParameterGroupRequest& WithDBParameterGroupFamily(const char* value) { SetDBParameterGroupFamily(value); return *this;} /** *

The description for the DB cluster parameter group.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description for the DB cluster parameter group.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description for the DB cluster parameter group.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description for the DB cluster parameter group.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description for the DB cluster parameter group.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description for the DB cluster parameter group.

*/ inline CreateDBClusterParameterGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description for the DB cluster parameter group.

*/ inline CreateDBClusterParameterGroupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description for the DB cluster parameter group.

*/ inline CreateDBClusterParameterGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

Tags to assign to the DB cluster parameter group.

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

Tags to assign to the DB cluster parameter group.

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

Tags to assign to the DB cluster parameter group.

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

Tags to assign to the DB cluster parameter group.

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

Tags to assign to the DB cluster parameter group.

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

Tags to assign to the DB cluster parameter group.

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

Tags to assign to the DB cluster parameter group.

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

Tags to assign to the DB cluster parameter group.

*/ inline CreateDBClusterParameterGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_dBClusterParameterGroupName; bool m_dBClusterParameterGroupNameHasBeenSet = false; Aws::String m_dBParameterGroupFamily; bool m_dBParameterGroupFamilyHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace RDS } // namespace Aws