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

The identifier or Amazon Resource Name (ARN) for the source DB cluster * parameter group. For information about creating an ARN, see * Constructing an ARN for Amazon RDS in the Amazon Aurora User * Guide.

Constraints:

  • Must specify a valid DB cluster * parameter group.

*/ inline const Aws::String& GetSourceDBClusterParameterGroupIdentifier() const{ return m_sourceDBClusterParameterGroupIdentifier; } /** *

The identifier or Amazon Resource Name (ARN) for the source DB cluster * parameter group. For information about creating an ARN, see * Constructing an ARN for Amazon RDS in the Amazon Aurora User * Guide.

Constraints:

  • Must specify a valid DB cluster * parameter group.

*/ inline bool SourceDBClusterParameterGroupIdentifierHasBeenSet() const { return m_sourceDBClusterParameterGroupIdentifierHasBeenSet; } /** *

The identifier or Amazon Resource Name (ARN) for the source DB cluster * parameter group. For information about creating an ARN, see * Constructing an ARN for Amazon RDS in the Amazon Aurora User * Guide.

Constraints:

  • Must specify a valid DB cluster * parameter group.

*/ inline void SetSourceDBClusterParameterGroupIdentifier(const Aws::String& value) { m_sourceDBClusterParameterGroupIdentifierHasBeenSet = true; m_sourceDBClusterParameterGroupIdentifier = value; } /** *

The identifier or Amazon Resource Name (ARN) for the source DB cluster * parameter group. For information about creating an ARN, see * Constructing an ARN for Amazon RDS in the Amazon Aurora User * Guide.

Constraints:

  • Must specify a valid DB cluster * parameter group.

*/ inline void SetSourceDBClusterParameterGroupIdentifier(Aws::String&& value) { m_sourceDBClusterParameterGroupIdentifierHasBeenSet = true; m_sourceDBClusterParameterGroupIdentifier = std::move(value); } /** *

The identifier or Amazon Resource Name (ARN) for the source DB cluster * parameter group. For information about creating an ARN, see * Constructing an ARN for Amazon RDS in the Amazon Aurora User * Guide.

Constraints:

  • Must specify a valid DB cluster * parameter group.

*/ inline void SetSourceDBClusterParameterGroupIdentifier(const char* value) { m_sourceDBClusterParameterGroupIdentifierHasBeenSet = true; m_sourceDBClusterParameterGroupIdentifier.assign(value); } /** *

The identifier or Amazon Resource Name (ARN) for the source DB cluster * parameter group. For information about creating an ARN, see * Constructing an ARN for Amazon RDS in the Amazon Aurora User * Guide.

Constraints:

  • Must specify a valid DB cluster * parameter group.

*/ inline CopyDBClusterParameterGroupRequest& WithSourceDBClusterParameterGroupIdentifier(const Aws::String& value) { SetSourceDBClusterParameterGroupIdentifier(value); return *this;} /** *

The identifier or Amazon Resource Name (ARN) for the source DB cluster * parameter group. For information about creating an ARN, see * Constructing an ARN for Amazon RDS in the Amazon Aurora User * Guide.

Constraints:

  • Must specify a valid DB cluster * parameter group.

*/ inline CopyDBClusterParameterGroupRequest& WithSourceDBClusterParameterGroupIdentifier(Aws::String&& value) { SetSourceDBClusterParameterGroupIdentifier(std::move(value)); return *this;} /** *

The identifier or Amazon Resource Name (ARN) for the source DB cluster * parameter group. For information about creating an ARN, see * Constructing an ARN for Amazon RDS in the Amazon Aurora User * Guide.

Constraints:

  • Must specify a valid DB cluster * parameter group.

*/ inline CopyDBClusterParameterGroupRequest& WithSourceDBClusterParameterGroupIdentifier(const char* value) { SetSourceDBClusterParameterGroupIdentifier(value); return *this;} /** *

The identifier for the copied DB cluster parameter group.

*

Constraints:

  • Can't be null, empty, or blank

  • *

    Must contain from 1 to 255 letters, numbers, or hyphens

  • *

    First character must be a letter

  • Can't end with a hyphen or * contain two consecutive hyphens

Example: * my-cluster-param-group1

*/ inline const Aws::String& GetTargetDBClusterParameterGroupIdentifier() const{ return m_targetDBClusterParameterGroupIdentifier; } /** *

The identifier for the copied DB cluster parameter group.

*

Constraints:

  • Can't be null, empty, or blank

  • *

    Must contain from 1 to 255 letters, numbers, or hyphens

  • *

    First character must be a letter

  • Can't end with a hyphen or * contain two consecutive hyphens

Example: * my-cluster-param-group1

*/ inline bool TargetDBClusterParameterGroupIdentifierHasBeenSet() const { return m_targetDBClusterParameterGroupIdentifierHasBeenSet; } /** *

The identifier for the copied DB cluster parameter group.

*

Constraints:

  • Can't be null, empty, or blank

  • *

    Must contain from 1 to 255 letters, numbers, or hyphens

  • *

    First character must be a letter

  • Can't end with a hyphen or * contain two consecutive hyphens

Example: * my-cluster-param-group1

*/ inline void SetTargetDBClusterParameterGroupIdentifier(const Aws::String& value) { m_targetDBClusterParameterGroupIdentifierHasBeenSet = true; m_targetDBClusterParameterGroupIdentifier = value; } /** *

The identifier for the copied DB cluster parameter group.

*

Constraints:

  • Can't be null, empty, or blank

  • *

    Must contain from 1 to 255 letters, numbers, or hyphens

  • *

    First character must be a letter

  • Can't end with a hyphen or * contain two consecutive hyphens

Example: * my-cluster-param-group1

*/ inline void SetTargetDBClusterParameterGroupIdentifier(Aws::String&& value) { m_targetDBClusterParameterGroupIdentifierHasBeenSet = true; m_targetDBClusterParameterGroupIdentifier = std::move(value); } /** *

The identifier for the copied DB cluster parameter group.

*

Constraints:

  • Can't be null, empty, or blank

  • *

    Must contain from 1 to 255 letters, numbers, or hyphens

  • *

    First character must be a letter

  • Can't end with a hyphen or * contain two consecutive hyphens

Example: * my-cluster-param-group1

*/ inline void SetTargetDBClusterParameterGroupIdentifier(const char* value) { m_targetDBClusterParameterGroupIdentifierHasBeenSet = true; m_targetDBClusterParameterGroupIdentifier.assign(value); } /** *

The identifier for the copied DB cluster parameter group.

*

Constraints:

  • Can't be null, empty, or blank

  • *

    Must contain from 1 to 255 letters, numbers, or hyphens

  • *

    First character must be a letter

  • Can't end with a hyphen or * contain two consecutive hyphens

Example: * my-cluster-param-group1

*/ inline CopyDBClusterParameterGroupRequest& WithTargetDBClusterParameterGroupIdentifier(const Aws::String& value) { SetTargetDBClusterParameterGroupIdentifier(value); return *this;} /** *

The identifier for the copied DB cluster parameter group.

*

Constraints:

  • Can't be null, empty, or blank

  • *

    Must contain from 1 to 255 letters, numbers, or hyphens

  • *

    First character must be a letter

  • Can't end with a hyphen or * contain two consecutive hyphens

Example: * my-cluster-param-group1

*/ inline CopyDBClusterParameterGroupRequest& WithTargetDBClusterParameterGroupIdentifier(Aws::String&& value) { SetTargetDBClusterParameterGroupIdentifier(std::move(value)); return *this;} /** *

The identifier for the copied DB cluster parameter group.

*

Constraints:

  • Can't be null, empty, or blank

  • *

    Must contain from 1 to 255 letters, numbers, or hyphens

  • *

    First character must be a letter

  • Can't end with a hyphen or * contain two consecutive hyphens

Example: * my-cluster-param-group1

*/ inline CopyDBClusterParameterGroupRequest& WithTargetDBClusterParameterGroupIdentifier(const char* value) { SetTargetDBClusterParameterGroupIdentifier(value); return *this;} /** *

A description for the copied DB cluster parameter group.

*/ inline const Aws::String& GetTargetDBClusterParameterGroupDescription() const{ return m_targetDBClusterParameterGroupDescription; } /** *

A description for the copied DB cluster parameter group.

*/ inline bool TargetDBClusterParameterGroupDescriptionHasBeenSet() const { return m_targetDBClusterParameterGroupDescriptionHasBeenSet; } /** *

A description for the copied DB cluster parameter group.

*/ inline void SetTargetDBClusterParameterGroupDescription(const Aws::String& value) { m_targetDBClusterParameterGroupDescriptionHasBeenSet = true; m_targetDBClusterParameterGroupDescription = value; } /** *

A description for the copied DB cluster parameter group.

*/ inline void SetTargetDBClusterParameterGroupDescription(Aws::String&& value) { m_targetDBClusterParameterGroupDescriptionHasBeenSet = true; m_targetDBClusterParameterGroupDescription = std::move(value); } /** *

A description for the copied DB cluster parameter group.

*/ inline void SetTargetDBClusterParameterGroupDescription(const char* value) { m_targetDBClusterParameterGroupDescriptionHasBeenSet = true; m_targetDBClusterParameterGroupDescription.assign(value); } /** *

A description for the copied DB cluster parameter group.

*/ inline CopyDBClusterParameterGroupRequest& WithTargetDBClusterParameterGroupDescription(const Aws::String& value) { SetTargetDBClusterParameterGroupDescription(value); return *this;} /** *

A description for the copied DB cluster parameter group.

*/ inline CopyDBClusterParameterGroupRequest& WithTargetDBClusterParameterGroupDescription(Aws::String&& value) { SetTargetDBClusterParameterGroupDescription(std::move(value)); return *this;} /** *

A description for the copied DB cluster parameter group.

*/ inline CopyDBClusterParameterGroupRequest& WithTargetDBClusterParameterGroupDescription(const char* value) { SetTargetDBClusterParameterGroupDescription(value); return *this;} inline const Aws::Vector& GetTags() const{ return m_tags; } inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } inline CopyDBClusterParameterGroupRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} inline CopyDBClusterParameterGroupRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} inline CopyDBClusterParameterGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } inline CopyDBClusterParameterGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_sourceDBClusterParameterGroupIdentifier; bool m_sourceDBClusterParameterGroupIdentifierHasBeenSet = false; Aws::String m_targetDBClusterParameterGroupIdentifier; bool m_targetDBClusterParameterGroupIdentifierHasBeenSet = false; Aws::String m_targetDBClusterParameterGroupDescription; bool m_targetDBClusterParameterGroupDescriptionHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace RDS } // namespace Aws