/** * 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 Neptune { namespace Model { /** */ class CopyDBClusterParameterGroupRequest : public NeptuneRequest { public: AWS_NEPTUNE_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_NEPTUNE_API Aws::String SerializePayload() const override; protected: AWS_NEPTUNE_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 Amazon Resource Name (ARN).

Constraints:

    *
  • Must specify a valid DB cluster parameter group.

  • If * the source DB cluster parameter group is in the same Amazon Region as the copy, * specify a valid DB parameter group identifier, for example * my-db-cluster-param-group, or a valid ARN.

  • If the * source DB parameter group is in a different Amazon Region than the copy, specify * a valid DB cluster parameter group ARN, for example * arn:aws:rds:us-east-1:123456789012:cluster-pg:custom-cluster-group1.

    *
*/ 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 Amazon Resource Name (ARN).

Constraints:

    *
  • Must specify a valid DB cluster parameter group.

  • If * the source DB cluster parameter group is in the same Amazon Region as the copy, * specify a valid DB parameter group identifier, for example * my-db-cluster-param-group, or a valid ARN.

  • If the * source DB parameter group is in a different Amazon Region than the copy, specify * a valid DB cluster parameter group ARN, for example * arn:aws:rds:us-east-1:123456789012:cluster-pg:custom-cluster-group1.

    *
*/ 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 Amazon Resource Name (ARN).

Constraints:

    *
  • Must specify a valid DB cluster parameter group.

  • If * the source DB cluster parameter group is in the same Amazon Region as the copy, * specify a valid DB parameter group identifier, for example * my-db-cluster-param-group, or a valid ARN.

  • If the * source DB parameter group is in a different Amazon Region than the copy, specify * a valid DB cluster parameter group ARN, for example * arn:aws:rds:us-east-1:123456789012:cluster-pg:custom-cluster-group1.

    *
*/ 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 Amazon Resource Name (ARN).

Constraints:

    *
  • Must specify a valid DB cluster parameter group.

  • If * the source DB cluster parameter group is in the same Amazon Region as the copy, * specify a valid DB parameter group identifier, for example * my-db-cluster-param-group, or a valid ARN.

  • If the * source DB parameter group is in a different Amazon Region than the copy, specify * a valid DB cluster parameter group ARN, for example * arn:aws:rds:us-east-1:123456789012:cluster-pg:custom-cluster-group1.

    *
*/ 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 Amazon Resource Name (ARN).

Constraints:

    *
  • Must specify a valid DB cluster parameter group.

  • If * the source DB cluster parameter group is in the same Amazon Region as the copy, * specify a valid DB parameter group identifier, for example * my-db-cluster-param-group, or a valid ARN.

  • If the * source DB parameter group is in a different Amazon Region than the copy, specify * a valid DB cluster parameter group ARN, for example * arn:aws:rds:us-east-1:123456789012:cluster-pg:custom-cluster-group1.

    *
*/ 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 Amazon Resource Name (ARN).

Constraints:

    *
  • Must specify a valid DB cluster parameter group.

  • If * the source DB cluster parameter group is in the same Amazon Region as the copy, * specify a valid DB parameter group identifier, for example * my-db-cluster-param-group, or a valid ARN.

  • If the * source DB parameter group is in a different Amazon Region than the copy, specify * a valid DB cluster parameter group ARN, for example * arn:aws:rds:us-east-1:123456789012:cluster-pg:custom-cluster-group1.

    *
*/ 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 Amazon Resource Name (ARN).

Constraints:

    *
  • Must specify a valid DB cluster parameter group.

  • If * the source DB cluster parameter group is in the same Amazon Region as the copy, * specify a valid DB parameter group identifier, for example * my-db-cluster-param-group, or a valid ARN.

  • If the * source DB parameter group is in a different Amazon Region than the copy, specify * a valid DB cluster parameter group ARN, for example * arn:aws:rds:us-east-1:123456789012:cluster-pg:custom-cluster-group1.

    *
*/ 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 Amazon Resource Name (ARN).

Constraints:

    *
  • Must specify a valid DB cluster parameter group.

  • If * the source DB cluster parameter group is in the same Amazon Region as the copy, * specify a valid DB parameter group identifier, for example * my-db-cluster-param-group, or a valid ARN.

  • If the * source DB parameter group is in a different Amazon Region than the copy, specify * a valid DB cluster parameter group ARN, for example * arn:aws:rds:us-east-1:123456789012:cluster-pg:custom-cluster-group1.

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

The identifier for the copied DB cluster parameter group.

*

Constraints:

  • Cannot be null, empty, or blank

  • *

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

  • *

    First character must be a letter

  • Cannot 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:

  • Cannot be null, empty, or blank

  • *

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

  • *

    First character must be a letter

  • Cannot 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:

  • Cannot be null, empty, or blank

  • *

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

  • *

    First character must be a letter

  • Cannot 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:

  • Cannot be null, empty, or blank

  • *

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

  • *

    First character must be a letter

  • Cannot 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:

  • Cannot be null, empty, or blank

  • *

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

  • *

    First character must be a letter

  • Cannot 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:

  • Cannot be null, empty, or blank

  • *

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

  • *

    First character must be a letter

  • Cannot 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:

  • Cannot be null, empty, or blank

  • *

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

  • *

    First character must be a letter

  • Cannot 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:

  • Cannot be null, empty, or blank

  • *

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

  • *

    First character must be a letter

  • Cannot 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;} /** *

The tags to be assigned to the copied DB cluster parameter group.

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

The tags to be assigned to the copied DB cluster parameter group.

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

The tags to be assigned to the copied DB cluster parameter group.

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

The tags to be assigned to the copied DB cluster parameter group.

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

The tags to be assigned to the copied DB cluster parameter group.

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

The tags to be assigned to the copied DB cluster parameter group.

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

The tags to be assigned to the copied DB cluster parameter group.

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

The tags to be assigned to the copied DB cluster parameter group.

*/ 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 Neptune } // namespace Aws