AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ResetCacheParameterGroupRequest.h
1
6#pragma once
7#include <aws/elasticache/ElastiCache_EXPORTS.h>
8#include <aws/elasticache/ElastiCacheRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticache/model/ParameterNameValue.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ElastiCache
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_ELASTICACHE_API ResetCacheParameterGroupRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "ResetCacheParameterGroup"; }
37
38 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
46
49 inline const Aws::String& GetCacheParameterGroupName() const { return m_cacheParameterGroupName; }
50 inline bool CacheParameterGroupNameHasBeenSet() const { return m_cacheParameterGroupNameHasBeenSet; }
51 template<typename CacheParameterGroupNameT = Aws::String>
52 void SetCacheParameterGroupName(CacheParameterGroupNameT&& value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName = std::forward<CacheParameterGroupNameT>(value); }
53 template<typename CacheParameterGroupNameT = Aws::String>
54 ResetCacheParameterGroupRequest& WithCacheParameterGroupName(CacheParameterGroupNameT&& value) { SetCacheParameterGroupName(std::forward<CacheParameterGroupNameT>(value)); return *this;}
56
58
64 inline bool GetResetAllParameters() const { return m_resetAllParameters; }
65 inline bool ResetAllParametersHasBeenSet() const { return m_resetAllParametersHasBeenSet; }
66 inline void SetResetAllParameters(bool value) { m_resetAllParametersHasBeenSet = true; m_resetAllParameters = value; }
69
71
78 inline const Aws::Vector<ParameterNameValue>& GetParameterNameValues() const { return m_parameterNameValues; }
79 inline bool ParameterNameValuesHasBeenSet() const { return m_parameterNameValuesHasBeenSet; }
80 template<typename ParameterNameValuesT = Aws::Vector<ParameterNameValue>>
81 void SetParameterNameValues(ParameterNameValuesT&& value) { m_parameterNameValuesHasBeenSet = true; m_parameterNameValues = std::forward<ParameterNameValuesT>(value); }
82 template<typename ParameterNameValuesT = Aws::Vector<ParameterNameValue>>
83 ResetCacheParameterGroupRequest& WithParameterNameValues(ParameterNameValuesT&& value) { SetParameterNameValues(std::forward<ParameterNameValuesT>(value)); return *this;}
84 template<typename ParameterNameValuesT = ParameterNameValue>
85 ResetCacheParameterGroupRequest& AddParameterNameValues(ParameterNameValuesT&& value) { m_parameterNameValuesHasBeenSet = true; m_parameterNameValues.emplace_back(std::forward<ParameterNameValuesT>(value)); return *this; }
87 private:
88
89 Aws::String m_cacheParameterGroupName;
90 bool m_cacheParameterGroupNameHasBeenSet = false;
91
92 bool m_resetAllParameters{false};
93 bool m_resetAllParametersHasBeenSet = false;
94
95 Aws::Vector<ParameterNameValue> m_parameterNameValues;
96 bool m_parameterNameValuesHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace ElastiCache
101} // namespace Aws
const Aws::Vector< ParameterNameValue > & GetParameterNameValues() const
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ResetCacheParameterGroupRequest & AddParameterNameValues(ParameterNameValuesT &&value)
ResetCacheParameterGroupRequest & WithResetAllParameters(bool value)
ResetCacheParameterGroupRequest & WithParameterNameValues(ParameterNameValuesT &&value)
ResetCacheParameterGroupRequest & WithCacheParameterGroupName(CacheParameterGroupNameT &&value)
AWS_ELASTICACHE_API ResetCacheParameterGroupRequest()=default
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector