/** * 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 CopyDBParameterGroupRequest : public NeptuneRequest { public: AWS_NEPTUNE_API CopyDBParameterGroupRequest(); // 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 "CopyDBParameterGroup"; } AWS_NEPTUNE_API Aws::String SerializePayload() const override; protected: AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

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

Constraints:

    *
  • Must specify a valid DB parameter group.

  • Must specify * a valid DB parameter group identifier, for example * my-db-param-group, or a valid ARN.

*/ inline const Aws::String& GetSourceDBParameterGroupIdentifier() const{ return m_sourceDBParameterGroupIdentifier; } /** *

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

Constraints:

    *
  • Must specify a valid DB parameter group.

  • Must specify * a valid DB parameter group identifier, for example * my-db-param-group, or a valid ARN.

*/ inline bool SourceDBParameterGroupIdentifierHasBeenSet() const { return m_sourceDBParameterGroupIdentifierHasBeenSet; } /** *

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

Constraints:

    *
  • Must specify a valid DB parameter group.

  • Must specify * a valid DB parameter group identifier, for example * my-db-param-group, or a valid ARN.

*/ inline void SetSourceDBParameterGroupIdentifier(const Aws::String& value) { m_sourceDBParameterGroupIdentifierHasBeenSet = true; m_sourceDBParameterGroupIdentifier = value; } /** *

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

Constraints:

    *
  • Must specify a valid DB parameter group.

  • Must specify * a valid DB parameter group identifier, for example * my-db-param-group, or a valid ARN.

*/ inline void SetSourceDBParameterGroupIdentifier(Aws::String&& value) { m_sourceDBParameterGroupIdentifierHasBeenSet = true; m_sourceDBParameterGroupIdentifier = std::move(value); } /** *

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

Constraints:

    *
  • Must specify a valid DB parameter group.

  • Must specify * a valid DB parameter group identifier, for example * my-db-param-group, or a valid ARN.

*/ inline void SetSourceDBParameterGroupIdentifier(const char* value) { m_sourceDBParameterGroupIdentifierHasBeenSet = true; m_sourceDBParameterGroupIdentifier.assign(value); } /** *

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

Constraints:

    *
  • Must specify a valid DB parameter group.

  • Must specify * a valid DB parameter group identifier, for example * my-db-param-group, or a valid ARN.

*/ inline CopyDBParameterGroupRequest& WithSourceDBParameterGroupIdentifier(const Aws::String& value) { SetSourceDBParameterGroupIdentifier(value); return *this;} /** *

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

Constraints:

    *
  • Must specify a valid DB parameter group.

  • Must specify * a valid DB parameter group identifier, for example * my-db-param-group, or a valid ARN.

*/ inline CopyDBParameterGroupRequest& WithSourceDBParameterGroupIdentifier(Aws::String&& value) { SetSourceDBParameterGroupIdentifier(std::move(value)); return *this;} /** *

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

Constraints:

    *
  • Must specify a valid DB parameter group.

  • Must specify * a valid DB parameter group identifier, for example * my-db-param-group, or a valid ARN.

*/ inline CopyDBParameterGroupRequest& WithSourceDBParameterGroupIdentifier(const char* value) { SetSourceDBParameterGroupIdentifier(value); return *this;} /** *

The identifier for the copied DB 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-db-parameter-group

*/ inline const Aws::String& GetTargetDBParameterGroupIdentifier() const{ return m_targetDBParameterGroupIdentifier; } /** *

The identifier for the copied DB 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-db-parameter-group

*/ inline bool TargetDBParameterGroupIdentifierHasBeenSet() const { return m_targetDBParameterGroupIdentifierHasBeenSet; } /** *

The identifier for the copied DB 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-db-parameter-group

*/ inline void SetTargetDBParameterGroupIdentifier(const Aws::String& value) { m_targetDBParameterGroupIdentifierHasBeenSet = true; m_targetDBParameterGroupIdentifier = value; } /** *

The identifier for the copied DB 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-db-parameter-group

*/ inline void SetTargetDBParameterGroupIdentifier(Aws::String&& value) { m_targetDBParameterGroupIdentifierHasBeenSet = true; m_targetDBParameterGroupIdentifier = std::move(value); } /** *

The identifier for the copied DB 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-db-parameter-group

*/ inline void SetTargetDBParameterGroupIdentifier(const char* value) { m_targetDBParameterGroupIdentifierHasBeenSet = true; m_targetDBParameterGroupIdentifier.assign(value); } /** *

The identifier for the copied DB 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-db-parameter-group

*/ inline CopyDBParameterGroupRequest& WithTargetDBParameterGroupIdentifier(const Aws::String& value) { SetTargetDBParameterGroupIdentifier(value); return *this;} /** *

The identifier for the copied DB 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-db-parameter-group

*/ inline CopyDBParameterGroupRequest& WithTargetDBParameterGroupIdentifier(Aws::String&& value) { SetTargetDBParameterGroupIdentifier(std::move(value)); return *this;} /** *

The identifier for the copied DB 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-db-parameter-group

*/ inline CopyDBParameterGroupRequest& WithTargetDBParameterGroupIdentifier(const char* value) { SetTargetDBParameterGroupIdentifier(value); return *this;} /** *

A description for the copied DB parameter group.

*/ inline const Aws::String& GetTargetDBParameterGroupDescription() const{ return m_targetDBParameterGroupDescription; } /** *

A description for the copied DB parameter group.

*/ inline bool TargetDBParameterGroupDescriptionHasBeenSet() const { return m_targetDBParameterGroupDescriptionHasBeenSet; } /** *

A description for the copied DB parameter group.

*/ inline void SetTargetDBParameterGroupDescription(const Aws::String& value) { m_targetDBParameterGroupDescriptionHasBeenSet = true; m_targetDBParameterGroupDescription = value; } /** *

A description for the copied DB parameter group.

*/ inline void SetTargetDBParameterGroupDescription(Aws::String&& value) { m_targetDBParameterGroupDescriptionHasBeenSet = true; m_targetDBParameterGroupDescription = std::move(value); } /** *

A description for the copied DB parameter group.

*/ inline void SetTargetDBParameterGroupDescription(const char* value) { m_targetDBParameterGroupDescriptionHasBeenSet = true; m_targetDBParameterGroupDescription.assign(value); } /** *

A description for the copied DB parameter group.

*/ inline CopyDBParameterGroupRequest& WithTargetDBParameterGroupDescription(const Aws::String& value) { SetTargetDBParameterGroupDescription(value); return *this;} /** *

A description for the copied DB parameter group.

*/ inline CopyDBParameterGroupRequest& WithTargetDBParameterGroupDescription(Aws::String&& value) { SetTargetDBParameterGroupDescription(std::move(value)); return *this;} /** *

A description for the copied DB parameter group.

*/ inline CopyDBParameterGroupRequest& WithTargetDBParameterGroupDescription(const char* value) { SetTargetDBParameterGroupDescription(value); return *this;} /** *

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

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

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

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

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

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

The tags to be assigned to the copied DB 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 parameter group.

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

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

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

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

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

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

*/ inline CopyDBParameterGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_sourceDBParameterGroupIdentifier; bool m_sourceDBParameterGroupIdentifierHasBeenSet = false; Aws::String m_targetDBParameterGroupIdentifier; bool m_targetDBParameterGroupIdentifierHasBeenSet = false; Aws::String m_targetDBParameterGroupDescription; bool m_targetDBParameterGroupDescriptionHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Neptune } // namespace Aws