206 lines
9.1 KiB
C
206 lines
9.1 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/elasticache/ElastiCache_EXPORTS.h>
|
|||
|
|
#include <aws/elasticache/ElastiCacheRequest.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|||
|
|
#include <aws/elasticache/model/ParameterNameValue.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace ElastiCache
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Represents the input of a <code>ResetCacheParameterGroup</code>
|
|||
|
|
* operation.</p><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ResetCacheParameterGroupMessage">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_ELASTICACHE_API ResetCacheParameterGroupRequest : public ElastiCacheRequest
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
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::String SerializePayload() const override;
|
|||
|
|
|
|||
|
|
protected:
|
|||
|
|
void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
|
|||
|
|
|
|||
|
|
public:
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the cache parameter group to reset.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetCacheParameterGroupName() const{ return m_cacheParameterGroupName; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the cache parameter group to reset.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool CacheParameterGroupNameHasBeenSet() const { return m_cacheParameterGroupNameHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the cache parameter group to reset.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetCacheParameterGroupName(const Aws::String& value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the cache parameter group to reset.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetCacheParameterGroupName(Aws::String&& value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the cache parameter group to reset.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetCacheParameterGroupName(const char* value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the cache parameter group to reset.</p>
|
|||
|
|
*/
|
|||
|
|
inline ResetCacheParameterGroupRequest& WithCacheParameterGroupName(const Aws::String& value) { SetCacheParameterGroupName(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the cache parameter group to reset.</p>
|
|||
|
|
*/
|
|||
|
|
inline ResetCacheParameterGroupRequest& WithCacheParameterGroupName(Aws::String&& value) { SetCacheParameterGroupName(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the cache parameter group to reset.</p>
|
|||
|
|
*/
|
|||
|
|
inline ResetCacheParameterGroupRequest& WithCacheParameterGroupName(const char* value) { SetCacheParameterGroupName(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>If <code>true</code>, all parameters in the cache parameter group are reset
|
|||
|
|
* to their default values. If <code>false</code>, only the parameters listed by
|
|||
|
|
* <code>ParameterNameValues</code> are reset to their default values.</p> <p>Valid
|
|||
|
|
* values: <code>true</code> | <code>false</code> </p>
|
|||
|
|
*/
|
|||
|
|
inline bool GetResetAllParameters() const{ return m_resetAllParameters; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>If <code>true</code>, all parameters in the cache parameter group are reset
|
|||
|
|
* to their default values. If <code>false</code>, only the parameters listed by
|
|||
|
|
* <code>ParameterNameValues</code> are reset to their default values.</p> <p>Valid
|
|||
|
|
* values: <code>true</code> | <code>false</code> </p>
|
|||
|
|
*/
|
|||
|
|
inline bool ResetAllParametersHasBeenSet() const { return m_resetAllParametersHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>If <code>true</code>, all parameters in the cache parameter group are reset
|
|||
|
|
* to their default values. If <code>false</code>, only the parameters listed by
|
|||
|
|
* <code>ParameterNameValues</code> are reset to their default values.</p> <p>Valid
|
|||
|
|
* values: <code>true</code> | <code>false</code> </p>
|
|||
|
|
*/
|
|||
|
|
inline void SetResetAllParameters(bool value) { m_resetAllParametersHasBeenSet = true; m_resetAllParameters = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>If <code>true</code>, all parameters in the cache parameter group are reset
|
|||
|
|
* to their default values. If <code>false</code>, only the parameters listed by
|
|||
|
|
* <code>ParameterNameValues</code> are reset to their default values.</p> <p>Valid
|
|||
|
|
* values: <code>true</code> | <code>false</code> </p>
|
|||
|
|
*/
|
|||
|
|
inline ResetCacheParameterGroupRequest& WithResetAllParameters(bool value) { SetResetAllParameters(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An array of parameter names to reset to their default values. If
|
|||
|
|
* <code>ResetAllParameters</code> is <code>true</code>, do not use
|
|||
|
|
* <code>ParameterNameValues</code>. If <code>ResetAllParameters</code> is
|
|||
|
|
* <code>false</code>, you must specify the name of at least one parameter to
|
|||
|
|
* reset.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Vector<ParameterNameValue>& GetParameterNameValues() const{ return m_parameterNameValues; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An array of parameter names to reset to their default values. If
|
|||
|
|
* <code>ResetAllParameters</code> is <code>true</code>, do not use
|
|||
|
|
* <code>ParameterNameValues</code>. If <code>ResetAllParameters</code> is
|
|||
|
|
* <code>false</code>, you must specify the name of at least one parameter to
|
|||
|
|
* reset.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool ParameterNameValuesHasBeenSet() const { return m_parameterNameValuesHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An array of parameter names to reset to their default values. If
|
|||
|
|
* <code>ResetAllParameters</code> is <code>true</code>, do not use
|
|||
|
|
* <code>ParameterNameValues</code>. If <code>ResetAllParameters</code> is
|
|||
|
|
* <code>false</code>, you must specify the name of at least one parameter to
|
|||
|
|
* reset.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetParameterNameValues(const Aws::Vector<ParameterNameValue>& value) { m_parameterNameValuesHasBeenSet = true; m_parameterNameValues = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An array of parameter names to reset to their default values. If
|
|||
|
|
* <code>ResetAllParameters</code> is <code>true</code>, do not use
|
|||
|
|
* <code>ParameterNameValues</code>. If <code>ResetAllParameters</code> is
|
|||
|
|
* <code>false</code>, you must specify the name of at least one parameter to
|
|||
|
|
* reset.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetParameterNameValues(Aws::Vector<ParameterNameValue>&& value) { m_parameterNameValuesHasBeenSet = true; m_parameterNameValues = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An array of parameter names to reset to their default values. If
|
|||
|
|
* <code>ResetAllParameters</code> is <code>true</code>, do not use
|
|||
|
|
* <code>ParameterNameValues</code>. If <code>ResetAllParameters</code> is
|
|||
|
|
* <code>false</code>, you must specify the name of at least one parameter to
|
|||
|
|
* reset.</p>
|
|||
|
|
*/
|
|||
|
|
inline ResetCacheParameterGroupRequest& WithParameterNameValues(const Aws::Vector<ParameterNameValue>& value) { SetParameterNameValues(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An array of parameter names to reset to their default values. If
|
|||
|
|
* <code>ResetAllParameters</code> is <code>true</code>, do not use
|
|||
|
|
* <code>ParameterNameValues</code>. If <code>ResetAllParameters</code> is
|
|||
|
|
* <code>false</code>, you must specify the name of at least one parameter to
|
|||
|
|
* reset.</p>
|
|||
|
|
*/
|
|||
|
|
inline ResetCacheParameterGroupRequest& WithParameterNameValues(Aws::Vector<ParameterNameValue>&& value) { SetParameterNameValues(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An array of parameter names to reset to their default values. If
|
|||
|
|
* <code>ResetAllParameters</code> is <code>true</code>, do not use
|
|||
|
|
* <code>ParameterNameValues</code>. If <code>ResetAllParameters</code> is
|
|||
|
|
* <code>false</code>, you must specify the name of at least one parameter to
|
|||
|
|
* reset.</p>
|
|||
|
|
*/
|
|||
|
|
inline ResetCacheParameterGroupRequest& AddParameterNameValues(const ParameterNameValue& value) { m_parameterNameValuesHasBeenSet = true; m_parameterNameValues.push_back(value); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An array of parameter names to reset to their default values. If
|
|||
|
|
* <code>ResetAllParameters</code> is <code>true</code>, do not use
|
|||
|
|
* <code>ParameterNameValues</code>. If <code>ResetAllParameters</code> is
|
|||
|
|
* <code>false</code>, you must specify the name of at least one parameter to
|
|||
|
|
* reset.</p>
|
|||
|
|
*/
|
|||
|
|
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;
|
|||
|
|
|
|||
|
|
bool m_resetAllParameters;
|
|||
|
|
bool m_resetAllParametersHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::Vector<ParameterNameValue> m_parameterNameValues;
|
|||
|
|
bool m_parameterNameValuesHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace ElastiCache
|
|||
|
|
} // namespace Aws
|