AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ResetCacheParameterGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/elasticache/ElastiCacheRequest.h>
10#include <aws/elasticache/ElastiCache_EXPORTS.h>
11#include <aws/elasticache/model/ParameterNameValue.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ElastiCache {
17namespace Model {
18
26 public:
27 AWS_ELASTICACHE_API ResetCacheParameterGroupRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ResetCacheParameterGroup"; }
34
35 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
39
40 public:
42
45 inline const Aws::String& GetCacheParameterGroupName() const { return m_cacheParameterGroupName; }
46 inline bool CacheParameterGroupNameHasBeenSet() const { return m_cacheParameterGroupNameHasBeenSet; }
47 template <typename CacheParameterGroupNameT = Aws::String>
48 void SetCacheParameterGroupName(CacheParameterGroupNameT&& value) {
49 m_cacheParameterGroupNameHasBeenSet = true;
50 m_cacheParameterGroupName = std::forward<CacheParameterGroupNameT>(value);
51 }
52 template <typename CacheParameterGroupNameT = Aws::String>
54 SetCacheParameterGroupName(std::forward<CacheParameterGroupNameT>(value));
55 return *this;
56 }
58
60
66 inline bool GetResetAllParameters() const { return m_resetAllParameters; }
67 inline bool ResetAllParametersHasBeenSet() const { return m_resetAllParametersHasBeenSet; }
68 inline void SetResetAllParameters(bool value) {
69 m_resetAllParametersHasBeenSet = true;
70 m_resetAllParameters = value;
71 }
74 return *this;
75 }
77
79
86 inline const Aws::Vector<ParameterNameValue>& GetParameterNameValues() const { return m_parameterNameValues; }
87 inline bool ParameterNameValuesHasBeenSet() const { return m_parameterNameValuesHasBeenSet; }
88 template <typename ParameterNameValuesT = Aws::Vector<ParameterNameValue>>
89 void SetParameterNameValues(ParameterNameValuesT&& value) {
90 m_parameterNameValuesHasBeenSet = true;
91 m_parameterNameValues = std::forward<ParameterNameValuesT>(value);
92 }
93 template <typename ParameterNameValuesT = Aws::Vector<ParameterNameValue>>
95 SetParameterNameValues(std::forward<ParameterNameValuesT>(value));
96 return *this;
97 }
98 template <typename ParameterNameValuesT = ParameterNameValue>
100 m_parameterNameValuesHasBeenSet = true;
101 m_parameterNameValues.emplace_back(std::forward<ParameterNameValuesT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_cacheParameterGroupName;
107
108 bool m_resetAllParameters{false};
109
110 Aws::Vector<ParameterNameValue> m_parameterNameValues;
111 bool m_cacheParameterGroupNameHasBeenSet = false;
112 bool m_resetAllParametersHasBeenSet = false;
113 bool m_parameterNameValuesHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace ElastiCache
118} // 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