AWS SDK for C++  1.8.71
AWS SDK for C++
ModifyCacheParameterGroupRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ElastiCache
17 {
18 namespace Model
19 {
20 
28  {
29  public:
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 "ModifyCacheParameterGroup"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  protected:
41  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42 
43  public:
44 
48  inline const Aws::String& GetCacheParameterGroupName() const{ return m_cacheParameterGroupName; }
49 
53  inline bool CacheParameterGroupNameHasBeenSet() const { return m_cacheParameterGroupNameHasBeenSet; }
54 
58  inline void SetCacheParameterGroupName(const Aws::String& value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName = value; }
59 
63  inline void SetCacheParameterGroupName(Aws::String&& value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName = std::move(value); }
64 
68  inline void SetCacheParameterGroupName(const char* value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName.assign(value); }
69 
73  inline ModifyCacheParameterGroupRequest& WithCacheParameterGroupName(const Aws::String& value) { SetCacheParameterGroupName(value); return *this;}
74 
78  inline ModifyCacheParameterGroupRequest& WithCacheParameterGroupName(Aws::String&& value) { SetCacheParameterGroupName(std::move(value)); return *this;}
79 
83  inline ModifyCacheParameterGroupRequest& WithCacheParameterGroupName(const char* value) { SetCacheParameterGroupName(value); return *this;}
84 
85 
91  inline const Aws::Vector<ParameterNameValue>& GetParameterNameValues() const{ return m_parameterNameValues; }
92 
98  inline bool ParameterNameValuesHasBeenSet() const { return m_parameterNameValuesHasBeenSet; }
99 
105  inline void SetParameterNameValues(const Aws::Vector<ParameterNameValue>& value) { m_parameterNameValuesHasBeenSet = true; m_parameterNameValues = value; }
106 
112  inline void SetParameterNameValues(Aws::Vector<ParameterNameValue>&& value) { m_parameterNameValuesHasBeenSet = true; m_parameterNameValues = std::move(value); }
113 
119  inline ModifyCacheParameterGroupRequest& WithParameterNameValues(const Aws::Vector<ParameterNameValue>& value) { SetParameterNameValues(value); return *this;}
120 
126  inline ModifyCacheParameterGroupRequest& WithParameterNameValues(Aws::Vector<ParameterNameValue>&& value) { SetParameterNameValues(std::move(value)); return *this;}
127 
133  inline ModifyCacheParameterGroupRequest& AddParameterNameValues(const ParameterNameValue& value) { m_parameterNameValuesHasBeenSet = true; m_parameterNameValues.push_back(value); return *this; }
134 
140  inline ModifyCacheParameterGroupRequest& AddParameterNameValues(ParameterNameValue&& value) { m_parameterNameValuesHasBeenSet = true; m_parameterNameValues.push_back(std::move(value)); return *this; }
141 
142  private:
143 
144  Aws::String m_cacheParameterGroupName;
145  bool m_cacheParameterGroupNameHasBeenSet;
146 
147  Aws::Vector<ParameterNameValue> m_parameterNameValues;
148  bool m_parameterNameValuesHasBeenSet;
149  };
150 
151 } // namespace Model
152 } // namespace ElastiCache
153 } // namespace Aws
ModifyCacheParameterGroupRequest & WithParameterNameValues(Aws::Vector< ParameterNameValue > &&value)
ModifyCacheParameterGroupRequest & WithParameterNameValues(const Aws::Vector< ParameterNameValue > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
ModifyCacheParameterGroupRequest & WithCacheParameterGroupName(Aws::String &&value)
ModifyCacheParameterGroupRequest & AddParameterNameValues(ParameterNameValue &&value)
ModifyCacheParameterGroupRequest & WithCacheParameterGroupName(const Aws::String &value)
ModifyCacheParameterGroupRequest & WithCacheParameterGroupName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetParameterNameValues(const Aws::Vector< ParameterNameValue > &value)
#define AWS_ELASTICACHE_API
const Aws::Vector< ParameterNameValue > & GetParameterNameValues() const
void SetParameterNameValues(Aws::Vector< ParameterNameValue > &&value)
ModifyCacheParameterGroupRequest & AddParameterNameValues(const ParameterNameValue &value)