/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace MemoryDB { namespace Model { /** */ class ResetParameterGroupRequest : public MemoryDBRequest { public: AWS_MEMORYDB_API ResetParameterGroupRequest(); // 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 "ResetParameterGroup"; } AWS_MEMORYDB_API Aws::String SerializePayload() const override; AWS_MEMORYDB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the parameter group to reset.

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

The name of the parameter group to reset.

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

The name of the parameter group to reset.

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

The name of the parameter group to reset.

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

The name of the parameter group to reset.

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

The name of the parameter group to reset.

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

The name of the parameter group to reset.

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

The name of the parameter group to reset.

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

If true, all parameters in the parameter group are reset to their default * values. If false, only the parameters listed by ParameterNames are reset to * their default values.

*/ inline bool GetAllParameters() const{ return m_allParameters; } /** *

If true, all parameters in the parameter group are reset to their default * values. If false, only the parameters listed by ParameterNames are reset to * their default values.

*/ inline bool AllParametersHasBeenSet() const { return m_allParametersHasBeenSet; } /** *

If true, all parameters in the parameter group are reset to their default * values. If false, only the parameters listed by ParameterNames are reset to * their default values.

*/ inline void SetAllParameters(bool value) { m_allParametersHasBeenSet = true; m_allParameters = value; } /** *

If true, all parameters in the parameter group are reset to their default * values. If false, only the parameters listed by ParameterNames are reset to * their default values.

*/ inline ResetParameterGroupRequest& WithAllParameters(bool value) { SetAllParameters(value); return *this;} /** *

An array of parameter names to reset to their default values. If * AllParameters is true, do not use ParameterNames. If AllParameters is false, you * must specify the name of at least one parameter to reset.

*/ inline const Aws::Vector& GetParameterNames() const{ return m_parameterNames; } /** *

An array of parameter names to reset to their default values. If * AllParameters is true, do not use ParameterNames. If AllParameters is false, you * must specify the name of at least one parameter to reset.

*/ inline bool ParameterNamesHasBeenSet() const { return m_parameterNamesHasBeenSet; } /** *

An array of parameter names to reset to their default values. If * AllParameters is true, do not use ParameterNames. If AllParameters is false, you * must specify the name of at least one parameter to reset.

*/ inline void SetParameterNames(const Aws::Vector& value) { m_parameterNamesHasBeenSet = true; m_parameterNames = value; } /** *

An array of parameter names to reset to their default values. If * AllParameters is true, do not use ParameterNames. If AllParameters is false, you * must specify the name of at least one parameter to reset.

*/ inline void SetParameterNames(Aws::Vector&& value) { m_parameterNamesHasBeenSet = true; m_parameterNames = std::move(value); } /** *

An array of parameter names to reset to their default values. If * AllParameters is true, do not use ParameterNames. If AllParameters is false, you * must specify the name of at least one parameter to reset.

*/ inline ResetParameterGroupRequest& WithParameterNames(const Aws::Vector& value) { SetParameterNames(value); return *this;} /** *

An array of parameter names to reset to their default values. If * AllParameters is true, do not use ParameterNames. If AllParameters is false, you * must specify the name of at least one parameter to reset.

*/ inline ResetParameterGroupRequest& WithParameterNames(Aws::Vector&& value) { SetParameterNames(std::move(value)); return *this;} /** *

An array of parameter names to reset to their default values. If * AllParameters is true, do not use ParameterNames. If AllParameters is false, you * must specify the name of at least one parameter to reset.

*/ inline ResetParameterGroupRequest& AddParameterNames(const Aws::String& value) { m_parameterNamesHasBeenSet = true; m_parameterNames.push_back(value); return *this; } /** *

An array of parameter names to reset to their default values. If * AllParameters is true, do not use ParameterNames. If AllParameters is false, you * must specify the name of at least one parameter to reset.

*/ inline ResetParameterGroupRequest& AddParameterNames(Aws::String&& value) { m_parameterNamesHasBeenSet = true; m_parameterNames.push_back(std::move(value)); return *this; } /** *

An array of parameter names to reset to their default values. If * AllParameters is true, do not use ParameterNames. If AllParameters is false, you * must specify the name of at least one parameter to reset.

*/ inline ResetParameterGroupRequest& AddParameterNames(const char* value) { m_parameterNamesHasBeenSet = true; m_parameterNames.push_back(value); return *this; } private: Aws::String m_parameterGroupName; bool m_parameterGroupNameHasBeenSet = false; bool m_allParameters; bool m_allParametersHasBeenSet = false; Aws::Vector m_parameterNames; bool m_parameterNamesHasBeenSet = false; }; } // namespace Model } // namespace MemoryDB } // namespace Aws