/** * 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 Redshift { namespace Model { /** *

See Also:

AWS * API Reference

*/ class CreateClusterParameterGroupRequest : public RedshiftRequest { public: AWS_REDSHIFT_API CreateClusterParameterGroupRequest(); // 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 "CreateClusterParameterGroup"; } AWS_REDSHIFT_API Aws::String SerializePayload() const override; protected: AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The name of the cluster parameter group.

Constraints:

  • *

    Must be 1 to 255 alphanumeric characters or hyphens

  • First * character must be a letter.

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

  • Must be unique withing your * Amazon Web Services account.

This value is stored as a * lower-case string.

*/ inline const Aws::String& GetParameterGroupName() const{ return m_parameterGroupName; } /** *

The name of the cluster parameter group.

Constraints:

  • *

    Must be 1 to 255 alphanumeric characters or hyphens

  • First * character must be a letter.

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

  • Must be unique withing your * Amazon Web Services account.

This value is stored as a * lower-case string.

*/ inline bool ParameterGroupNameHasBeenSet() const { return m_parameterGroupNameHasBeenSet; } /** *

The name of the cluster parameter group.

Constraints:

  • *

    Must be 1 to 255 alphanumeric characters or hyphens

  • First * character must be a letter.

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

  • Must be unique withing your * Amazon Web Services account.

This value is stored as a * lower-case string.

*/ inline void SetParameterGroupName(const Aws::String& value) { m_parameterGroupNameHasBeenSet = true; m_parameterGroupName = value; } /** *

The name of the cluster parameter group.

Constraints:

  • *

    Must be 1 to 255 alphanumeric characters or hyphens

  • First * character must be a letter.

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

  • Must be unique withing your * Amazon Web Services account.

This value is stored as a * lower-case string.

*/ inline void SetParameterGroupName(Aws::String&& value) { m_parameterGroupNameHasBeenSet = true; m_parameterGroupName = std::move(value); } /** *

The name of the cluster parameter group.

Constraints:

  • *

    Must be 1 to 255 alphanumeric characters or hyphens

  • First * character must be a letter.

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

  • Must be unique withing your * Amazon Web Services account.

This value is stored as a * lower-case string.

*/ inline void SetParameterGroupName(const char* value) { m_parameterGroupNameHasBeenSet = true; m_parameterGroupName.assign(value); } /** *

The name of the cluster parameter group.

Constraints:

  • *

    Must be 1 to 255 alphanumeric characters or hyphens

  • First * character must be a letter.

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

  • Must be unique withing your * Amazon Web Services account.

This value is stored as a * lower-case string.

*/ inline CreateClusterParameterGroupRequest& WithParameterGroupName(const Aws::String& value) { SetParameterGroupName(value); return *this;} /** *

The name of the cluster parameter group.

Constraints:

  • *

    Must be 1 to 255 alphanumeric characters or hyphens

  • First * character must be a letter.

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

  • Must be unique withing your * Amazon Web Services account.

This value is stored as a * lower-case string.

*/ inline CreateClusterParameterGroupRequest& WithParameterGroupName(Aws::String&& value) { SetParameterGroupName(std::move(value)); return *this;} /** *

The name of the cluster parameter group.

Constraints:

  • *

    Must be 1 to 255 alphanumeric characters or hyphens

  • First * character must be a letter.

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

  • Must be unique withing your * Amazon Web Services account.

This value is stored as a * lower-case string.

*/ inline CreateClusterParameterGroupRequest& WithParameterGroupName(const char* value) { SetParameterGroupName(value); return *this;} /** *

The Amazon Redshift engine version to which the cluster parameter group * applies. The cluster engine version determines the set of parameters.

To * get a list of valid parameter group family names, you can call * DescribeClusterParameterGroups. By default, Amazon Redshift returns a * list of all the parameter groups that are owned by your Amazon Web Services * account, including the default parameter groups for each Amazon Redshift engine * version. The parameter group family names associated with the default parameter * groups provide you the valid values. For example, a valid family name is * "redshift-1.0".

*/ inline const Aws::String& GetParameterGroupFamily() const{ return m_parameterGroupFamily; } /** *

The Amazon Redshift engine version to which the cluster parameter group * applies. The cluster engine version determines the set of parameters.

To * get a list of valid parameter group family names, you can call * DescribeClusterParameterGroups. By default, Amazon Redshift returns a * list of all the parameter groups that are owned by your Amazon Web Services * account, including the default parameter groups for each Amazon Redshift engine * version. The parameter group family names associated with the default parameter * groups provide you the valid values. For example, a valid family name is * "redshift-1.0".

*/ inline bool ParameterGroupFamilyHasBeenSet() const { return m_parameterGroupFamilyHasBeenSet; } /** *

The Amazon Redshift engine version to which the cluster parameter group * applies. The cluster engine version determines the set of parameters.

To * get a list of valid parameter group family names, you can call * DescribeClusterParameterGroups. By default, Amazon Redshift returns a * list of all the parameter groups that are owned by your Amazon Web Services * account, including the default parameter groups for each Amazon Redshift engine * version. The parameter group family names associated with the default parameter * groups provide you the valid values. For example, a valid family name is * "redshift-1.0".

*/ inline void SetParameterGroupFamily(const Aws::String& value) { m_parameterGroupFamilyHasBeenSet = true; m_parameterGroupFamily = value; } /** *

The Amazon Redshift engine version to which the cluster parameter group * applies. The cluster engine version determines the set of parameters.

To * get a list of valid parameter group family names, you can call * DescribeClusterParameterGroups. By default, Amazon Redshift returns a * list of all the parameter groups that are owned by your Amazon Web Services * account, including the default parameter groups for each Amazon Redshift engine * version. The parameter group family names associated with the default parameter * groups provide you the valid values. For example, a valid family name is * "redshift-1.0".

*/ inline void SetParameterGroupFamily(Aws::String&& value) { m_parameterGroupFamilyHasBeenSet = true; m_parameterGroupFamily = std::move(value); } /** *

The Amazon Redshift engine version to which the cluster parameter group * applies. The cluster engine version determines the set of parameters.

To * get a list of valid parameter group family names, you can call * DescribeClusterParameterGroups. By default, Amazon Redshift returns a * list of all the parameter groups that are owned by your Amazon Web Services * account, including the default parameter groups for each Amazon Redshift engine * version. The parameter group family names associated with the default parameter * groups provide you the valid values. For example, a valid family name is * "redshift-1.0".

*/ inline void SetParameterGroupFamily(const char* value) { m_parameterGroupFamilyHasBeenSet = true; m_parameterGroupFamily.assign(value); } /** *

The Amazon Redshift engine version to which the cluster parameter group * applies. The cluster engine version determines the set of parameters.

To * get a list of valid parameter group family names, you can call * DescribeClusterParameterGroups. By default, Amazon Redshift returns a * list of all the parameter groups that are owned by your Amazon Web Services * account, including the default parameter groups for each Amazon Redshift engine * version. The parameter group family names associated with the default parameter * groups provide you the valid values. For example, a valid family name is * "redshift-1.0".

*/ inline CreateClusterParameterGroupRequest& WithParameterGroupFamily(const Aws::String& value) { SetParameterGroupFamily(value); return *this;} /** *

The Amazon Redshift engine version to which the cluster parameter group * applies. The cluster engine version determines the set of parameters.

To * get a list of valid parameter group family names, you can call * DescribeClusterParameterGroups. By default, Amazon Redshift returns a * list of all the parameter groups that are owned by your Amazon Web Services * account, including the default parameter groups for each Amazon Redshift engine * version. The parameter group family names associated with the default parameter * groups provide you the valid values. For example, a valid family name is * "redshift-1.0".

*/ inline CreateClusterParameterGroupRequest& WithParameterGroupFamily(Aws::String&& value) { SetParameterGroupFamily(std::move(value)); return *this;} /** *

The Amazon Redshift engine version to which the cluster parameter group * applies. The cluster engine version determines the set of parameters.

To * get a list of valid parameter group family names, you can call * DescribeClusterParameterGroups. By default, Amazon Redshift returns a * list of all the parameter groups that are owned by your Amazon Web Services * account, including the default parameter groups for each Amazon Redshift engine * version. The parameter group family names associated with the default parameter * groups provide you the valid values. For example, a valid family name is * "redshift-1.0".

*/ inline CreateClusterParameterGroupRequest& WithParameterGroupFamily(const char* value) { SetParameterGroupFamily(value); return *this;} /** *

A description of the parameter group.

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

A description of the parameter group.

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

A description of the parameter group.

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

A description of the parameter group.

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

A description of the parameter group.

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

A description of the parameter group.

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

A description of the parameter group.

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

A description of the parameter group.

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

A list of tag instances.

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

A list of tag instances.

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

A list of tag instances.

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

A list of tag instances.

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

A list of tag instances.

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

A list of tag instances.

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

A list of tag instances.

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

A list of tag instances.

*/ inline CreateClusterParameterGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_parameterGroupName; bool m_parameterGroupNameHasBeenSet = false; Aws::String m_parameterGroupFamily; bool m_parameterGroupFamilyHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws