/** * 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 { /** *

Describes a modify cluster parameter group operation.

See * Also:

AWS * API Reference

*/ class ModifyClusterParameterGroupRequest : public RedshiftRequest { public: AWS_REDSHIFT_API ModifyClusterParameterGroupRequest(); // 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 "ModifyClusterParameterGroup"; } 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 parameter group to be modified.

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

The name of the parameter group to be modified.

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

The name of the parameter group to be modified.

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

The name of the parameter group to be modified.

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

The name of the parameter group to be modified.

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

The name of the parameter group to be modified.

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

The name of the parameter group to be modified.

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

The name of the parameter group to be modified.

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

An array of parameters to be modified. A maximum of 20 parameters can be * modified in a single request.

For each parameter to be modified, you must * supply at least the parameter name and parameter value; other name-value pairs * of the parameter are optional.

For the workload management (WLM) * configuration, you must supply all the name-value pairs in the * wlm_json_configuration parameter.

*/ inline const Aws::Vector& GetParameters() const{ return m_parameters; } /** *

An array of parameters to be modified. A maximum of 20 parameters can be * modified in a single request.

For each parameter to be modified, you must * supply at least the parameter name and parameter value; other name-value pairs * of the parameter are optional.

For the workload management (WLM) * configuration, you must supply all the name-value pairs in the * wlm_json_configuration parameter.

*/ inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; } /** *

An array of parameters to be modified. A maximum of 20 parameters can be * modified in a single request.

For each parameter to be modified, you must * supply at least the parameter name and parameter value; other name-value pairs * of the parameter are optional.

For the workload management (WLM) * configuration, you must supply all the name-value pairs in the * wlm_json_configuration parameter.

*/ inline void SetParameters(const Aws::Vector& value) { m_parametersHasBeenSet = true; m_parameters = value; } /** *

An array of parameters to be modified. A maximum of 20 parameters can be * modified in a single request.

For each parameter to be modified, you must * supply at least the parameter name and parameter value; other name-value pairs * of the parameter are optional.

For the workload management (WLM) * configuration, you must supply all the name-value pairs in the * wlm_json_configuration parameter.

*/ inline void SetParameters(Aws::Vector&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); } /** *

An array of parameters to be modified. A maximum of 20 parameters can be * modified in a single request.

For each parameter to be modified, you must * supply at least the parameter name and parameter value; other name-value pairs * of the parameter are optional.

For the workload management (WLM) * configuration, you must supply all the name-value pairs in the * wlm_json_configuration parameter.

*/ inline ModifyClusterParameterGroupRequest& WithParameters(const Aws::Vector& value) { SetParameters(value); return *this;} /** *

An array of parameters to be modified. A maximum of 20 parameters can be * modified in a single request.

For each parameter to be modified, you must * supply at least the parameter name and parameter value; other name-value pairs * of the parameter are optional.

For the workload management (WLM) * configuration, you must supply all the name-value pairs in the * wlm_json_configuration parameter.

*/ inline ModifyClusterParameterGroupRequest& WithParameters(Aws::Vector&& value) { SetParameters(std::move(value)); return *this;} /** *

An array of parameters to be modified. A maximum of 20 parameters can be * modified in a single request.

For each parameter to be modified, you must * supply at least the parameter name and parameter value; other name-value pairs * of the parameter are optional.

For the workload management (WLM) * configuration, you must supply all the name-value pairs in the * wlm_json_configuration parameter.

*/ inline ModifyClusterParameterGroupRequest& AddParameters(const Parameter& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; } /** *

An array of parameters to be modified. A maximum of 20 parameters can be * modified in a single request.

For each parameter to be modified, you must * supply at least the parameter name and parameter value; other name-value pairs * of the parameter are optional.

For the workload management (WLM) * configuration, you must supply all the name-value pairs in the * wlm_json_configuration parameter.

*/ inline ModifyClusterParameterGroupRequest& AddParameters(Parameter&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(std::move(value)); return *this; } private: Aws::String m_parameterGroupName; bool m_parameterGroupNameHasBeenSet = false; Aws::Vector m_parameters; bool m_parametersHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws