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

The name of the DB parameter group.

Constraints:

  • Must * be 1 to 255 letters, numbers, or hyphens.

  • First character must * be a letter

  • Cannot end with a hyphen or contain two * consecutive hyphens

This value is stored as a * lowercase string.

*/ inline const Aws::String& GetDBParameterGroupName() const{ return m_dBParameterGroupName; } /** *

The name of the DB parameter group.

Constraints:

  • Must * be 1 to 255 letters, numbers, or hyphens.

  • First character must * be a letter

  • Cannot end with a hyphen or contain two * consecutive hyphens

This value is stored as a * lowercase string.

*/ inline bool DBParameterGroupNameHasBeenSet() const { return m_dBParameterGroupNameHasBeenSet; } /** *

The name of the DB parameter group.

Constraints:

  • Must * be 1 to 255 letters, numbers, or hyphens.

  • First character must * be a letter

  • Cannot end with a hyphen or contain two * consecutive hyphens

This value is stored as a * lowercase string.

*/ inline void SetDBParameterGroupName(const Aws::String& value) { m_dBParameterGroupNameHasBeenSet = true; m_dBParameterGroupName = value; } /** *

The name of the DB parameter group.

Constraints:

  • Must * be 1 to 255 letters, numbers, or hyphens.

  • First character must * be a letter

  • Cannot end with a hyphen or contain two * consecutive hyphens

This value is stored as a * lowercase string.

*/ inline void SetDBParameterGroupName(Aws::String&& value) { m_dBParameterGroupNameHasBeenSet = true; m_dBParameterGroupName = std::move(value); } /** *

The name of the DB parameter group.

Constraints:

  • Must * be 1 to 255 letters, numbers, or hyphens.

  • First character must * be a letter

  • Cannot end with a hyphen or contain two * consecutive hyphens

This value is stored as a * lowercase string.

*/ inline void SetDBParameterGroupName(const char* value) { m_dBParameterGroupNameHasBeenSet = true; m_dBParameterGroupName.assign(value); } /** *

The name of the DB parameter group.

Constraints:

  • Must * be 1 to 255 letters, numbers, or hyphens.

  • First character must * be a letter

  • Cannot end with a hyphen or contain two * consecutive hyphens

This value is stored as a * lowercase string.

*/ inline CreateDBParameterGroupRequest& WithDBParameterGroupName(const Aws::String& value) { SetDBParameterGroupName(value); return *this;} /** *

The name of the DB parameter group.

Constraints:

  • Must * be 1 to 255 letters, numbers, or hyphens.

  • First character must * be a letter

  • Cannot end with a hyphen or contain two * consecutive hyphens

This value is stored as a * lowercase string.

*/ inline CreateDBParameterGroupRequest& WithDBParameterGroupName(Aws::String&& value) { SetDBParameterGroupName(std::move(value)); return *this;} /** *

The name of the DB parameter group.

Constraints:

  • Must * be 1 to 255 letters, numbers, or hyphens.

  • First character must * be a letter

  • Cannot end with a hyphen or contain two * consecutive hyphens

This value is stored as a * lowercase string.

*/ inline CreateDBParameterGroupRequest& WithDBParameterGroupName(const char* value) { SetDBParameterGroupName(value); return *this;} /** *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

The description for the DB parameter group.

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

The description for the DB parameter group.

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

The description for the DB parameter group.

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

The description for the DB parameter group.

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

The description for the DB parameter group.

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

The description for the DB parameter group.

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

The description for the DB parameter group.

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

The description for the DB parameter group.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

*/ inline CreateDBParameterGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_dBParameterGroupName; bool m_dBParameterGroupNameHasBeenSet = 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 Neptune } // namespace Aws