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

The identifier for the source option group.

Constraints:

  • *

    Must specify a valid option group.

*/ inline const Aws::String& GetSourceOptionGroupIdentifier() const{ return m_sourceOptionGroupIdentifier; } /** *

The identifier for the source option group.

Constraints:

  • *

    Must specify a valid option group.

*/ inline bool SourceOptionGroupIdentifierHasBeenSet() const { return m_sourceOptionGroupIdentifierHasBeenSet; } /** *

The identifier for the source option group.

Constraints:

  • *

    Must specify a valid option group.

*/ inline void SetSourceOptionGroupIdentifier(const Aws::String& value) { m_sourceOptionGroupIdentifierHasBeenSet = true; m_sourceOptionGroupIdentifier = value; } /** *

The identifier for the source option group.

Constraints:

  • *

    Must specify a valid option group.

*/ inline void SetSourceOptionGroupIdentifier(Aws::String&& value) { m_sourceOptionGroupIdentifierHasBeenSet = true; m_sourceOptionGroupIdentifier = std::move(value); } /** *

The identifier for the source option group.

Constraints:

  • *

    Must specify a valid option group.

*/ inline void SetSourceOptionGroupIdentifier(const char* value) { m_sourceOptionGroupIdentifierHasBeenSet = true; m_sourceOptionGroupIdentifier.assign(value); } /** *

The identifier for the source option group.

Constraints:

  • *

    Must specify a valid option group.

*/ inline CopyOptionGroupRequest& WithSourceOptionGroupIdentifier(const Aws::String& value) { SetSourceOptionGroupIdentifier(value); return *this;} /** *

The identifier for the source option group.

Constraints:

  • *

    Must specify a valid option group.

*/ inline CopyOptionGroupRequest& WithSourceOptionGroupIdentifier(Aws::String&& value) { SetSourceOptionGroupIdentifier(std::move(value)); return *this;} /** *

The identifier for the source option group.

Constraints:

  • *

    Must specify a valid option group.

*/ inline CopyOptionGroupRequest& WithSourceOptionGroupIdentifier(const char* value) { SetSourceOptionGroupIdentifier(value); return *this;} /** *

The identifier for the copied option 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-option-group

*/ inline const Aws::String& GetTargetOptionGroupIdentifier() const{ return m_targetOptionGroupIdentifier; } /** *

The identifier for the copied option 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-option-group

*/ inline bool TargetOptionGroupIdentifierHasBeenSet() const { return m_targetOptionGroupIdentifierHasBeenSet; } /** *

The identifier for the copied option 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-option-group

*/ inline void SetTargetOptionGroupIdentifier(const Aws::String& value) { m_targetOptionGroupIdentifierHasBeenSet = true; m_targetOptionGroupIdentifier = value; } /** *

The identifier for the copied option 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-option-group

*/ inline void SetTargetOptionGroupIdentifier(Aws::String&& value) { m_targetOptionGroupIdentifierHasBeenSet = true; m_targetOptionGroupIdentifier = std::move(value); } /** *

The identifier for the copied option 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-option-group

*/ inline void SetTargetOptionGroupIdentifier(const char* value) { m_targetOptionGroupIdentifierHasBeenSet = true; m_targetOptionGroupIdentifier.assign(value); } /** *

The identifier for the copied option 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-option-group

*/ inline CopyOptionGroupRequest& WithTargetOptionGroupIdentifier(const Aws::String& value) { SetTargetOptionGroupIdentifier(value); return *this;} /** *

The identifier for the copied option 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-option-group

*/ inline CopyOptionGroupRequest& WithTargetOptionGroupIdentifier(Aws::String&& value) { SetTargetOptionGroupIdentifier(std::move(value)); return *this;} /** *

The identifier for the copied option 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-option-group

*/ inline CopyOptionGroupRequest& WithTargetOptionGroupIdentifier(const char* value) { SetTargetOptionGroupIdentifier(value); return *this;} /** *

The description for the copied option group.

*/ inline const Aws::String& GetTargetOptionGroupDescription() const{ return m_targetOptionGroupDescription; } /** *

The description for the copied option group.

*/ inline bool TargetOptionGroupDescriptionHasBeenSet() const { return m_targetOptionGroupDescriptionHasBeenSet; } /** *

The description for the copied option group.

*/ inline void SetTargetOptionGroupDescription(const Aws::String& value) { m_targetOptionGroupDescriptionHasBeenSet = true; m_targetOptionGroupDescription = value; } /** *

The description for the copied option group.

*/ inline void SetTargetOptionGroupDescription(Aws::String&& value) { m_targetOptionGroupDescriptionHasBeenSet = true; m_targetOptionGroupDescription = std::move(value); } /** *

The description for the copied option group.

*/ inline void SetTargetOptionGroupDescription(const char* value) { m_targetOptionGroupDescriptionHasBeenSet = true; m_targetOptionGroupDescription.assign(value); } /** *

The description for the copied option group.

*/ inline CopyOptionGroupRequest& WithTargetOptionGroupDescription(const Aws::String& value) { SetTargetOptionGroupDescription(value); return *this;} /** *

The description for the copied option group.

*/ inline CopyOptionGroupRequest& WithTargetOptionGroupDescription(Aws::String&& value) { SetTargetOptionGroupDescription(std::move(value)); return *this;} /** *

The description for the copied option group.

*/ inline CopyOptionGroupRequest& WithTargetOptionGroupDescription(const char* value) { SetTargetOptionGroupDescription(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 CopyOptionGroupRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} inline CopyOptionGroupRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} inline CopyOptionGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } inline CopyOptionGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_sourceOptionGroupIdentifier; bool m_sourceOptionGroupIdentifierHasBeenSet = false; Aws::String m_targetOptionGroupIdentifier; bool m_targetOptionGroupIdentifierHasBeenSet = false; Aws::String m_targetOptionGroupDescription; bool m_targetOptionGroupDescriptionHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace RDS } // namespace Aws