/** * 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 MemoryDB { namespace Model { /** */ class UpdateParameterGroupRequest : public MemoryDBRequest { public: AWS_MEMORYDB_API UpdateParameterGroupRequest(); // 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 "UpdateParameterGroup"; } AWS_MEMORYDB_API Aws::String SerializePayload() const override; AWS_MEMORYDB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the parameter group to update.

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

The name of the parameter group to update.

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

The name of the parameter group to update.

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

The name of the parameter group to update.

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

The name of the parameter group to update.

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

The name of the parameter group to update.

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

The name of the parameter group to update.

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

The name of the parameter group to update.

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

An array of parameter names and values for the parameter update. You must * supply at least one parameter name and value; subsequent arguments are optional. * A maximum of 20 parameters may be updated per request.

*/ inline const Aws::Vector& GetParameterNameValues() const{ return m_parameterNameValues; } /** *

An array of parameter names and values for the parameter update. You must * supply at least one parameter name and value; subsequent arguments are optional. * A maximum of 20 parameters may be updated per request.

*/ inline bool ParameterNameValuesHasBeenSet() const { return m_parameterNameValuesHasBeenSet; } /** *

An array of parameter names and values for the parameter update. You must * supply at least one parameter name and value; subsequent arguments are optional. * A maximum of 20 parameters may be updated per request.

*/ inline void SetParameterNameValues(const Aws::Vector& value) { m_parameterNameValuesHasBeenSet = true; m_parameterNameValues = value; } /** *

An array of parameter names and values for the parameter update. You must * supply at least one parameter name and value; subsequent arguments are optional. * A maximum of 20 parameters may be updated per request.

*/ inline void SetParameterNameValues(Aws::Vector&& value) { m_parameterNameValuesHasBeenSet = true; m_parameterNameValues = std::move(value); } /** *

An array of parameter names and values for the parameter update. You must * supply at least one parameter name and value; subsequent arguments are optional. * A maximum of 20 parameters may be updated per request.

*/ inline UpdateParameterGroupRequest& WithParameterNameValues(const Aws::Vector& value) { SetParameterNameValues(value); return *this;} /** *

An array of parameter names and values for the parameter update. You must * supply at least one parameter name and value; subsequent arguments are optional. * A maximum of 20 parameters may be updated per request.

*/ inline UpdateParameterGroupRequest& WithParameterNameValues(Aws::Vector&& value) { SetParameterNameValues(std::move(value)); return *this;} /** *

An array of parameter names and values for the parameter update. You must * supply at least one parameter name and value; subsequent arguments are optional. * A maximum of 20 parameters may be updated per request.

*/ inline UpdateParameterGroupRequest& AddParameterNameValues(const ParameterNameValue& value) { m_parameterNameValuesHasBeenSet = true; m_parameterNameValues.push_back(value); return *this; } /** *

An array of parameter names and values for the parameter update. You must * supply at least one parameter name and value; subsequent arguments are optional. * A maximum of 20 parameters may be updated per request.

*/ inline UpdateParameterGroupRequest& AddParameterNameValues(ParameterNameValue&& value) { m_parameterNameValuesHasBeenSet = true; m_parameterNameValues.push_back(std::move(value)); return *this; } private: Aws::String m_parameterGroupName; bool m_parameterGroupNameHasBeenSet = false; Aws::Vector m_parameterNameValues; bool m_parameterNameValuesHasBeenSet = false; }; } // namespace Model } // namespace MemoryDB } // namespace Aws