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

Represents the input of a ResetCacheParameterGroup * operation.

See Also:

AWS * API Reference

*/ class ResetCacheParameterGroupRequest : public ElastiCacheRequest { public: AWS_ELASTICACHE_API ResetCacheParameterGroupRequest(); // 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 "ResetCacheParameterGroup"; } AWS_ELASTICACHE_API Aws::String SerializePayload() const override; protected: AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The name of the cache parameter group to reset.

*/ inline const Aws::String& GetCacheParameterGroupName() const{ return m_cacheParameterGroupName; } /** *

The name of the cache parameter group to reset.

*/ inline bool CacheParameterGroupNameHasBeenSet() const { return m_cacheParameterGroupNameHasBeenSet; } /** *

The name of the cache parameter group to reset.

*/ inline void SetCacheParameterGroupName(const Aws::String& value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName = value; } /** *

The name of the cache parameter group to reset.

*/ inline void SetCacheParameterGroupName(Aws::String&& value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName = std::move(value); } /** *

The name of the cache parameter group to reset.

*/ inline void SetCacheParameterGroupName(const char* value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName.assign(value); } /** *

The name of the cache parameter group to reset.

*/ inline ResetCacheParameterGroupRequest& WithCacheParameterGroupName(const Aws::String& value) { SetCacheParameterGroupName(value); return *this;} /** *

The name of the cache parameter group to reset.

*/ inline ResetCacheParameterGroupRequest& WithCacheParameterGroupName(Aws::String&& value) { SetCacheParameterGroupName(std::move(value)); return *this;} /** *

The name of the cache parameter group to reset.

*/ inline ResetCacheParameterGroupRequest& WithCacheParameterGroupName(const char* value) { SetCacheParameterGroupName(value); return *this;} /** *

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

Valid * values: true | false

*/ inline bool GetResetAllParameters() const{ return m_resetAllParameters; } /** *

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

Valid * values: true | false

*/ inline bool ResetAllParametersHasBeenSet() const { return m_resetAllParametersHasBeenSet; } /** *

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

Valid * values: true | false

*/ inline void SetResetAllParameters(bool value) { m_resetAllParametersHasBeenSet = true; m_resetAllParameters = value; } /** *

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

Valid * values: true | false

*/ inline ResetCacheParameterGroupRequest& WithResetAllParameters(bool value) { SetResetAllParameters(value); return *this;} /** *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

*/ inline ResetCacheParameterGroupRequest& AddParameterNameValues(ParameterNameValue&& value) { m_parameterNameValuesHasBeenSet = true; m_parameterNameValues.push_back(std::move(value)); return *this; } private: Aws::String m_cacheParameterGroupName; bool m_cacheParameterGroupNameHasBeenSet = false; bool m_resetAllParameters; bool m_resetAllParametersHasBeenSet = false; Aws::Vector m_parameterNameValues; bool m_parameterNameValuesHasBeenSet = false; }; } // namespace Model } // namespace ElastiCache } // namespace Aws