AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ModifyCacheParameterGroupRequest.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 ModifyCacheParameterGroupRequest() = 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 "ModifyCacheParameterGroup"; }
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 ModifyCacheParameterGroupRequest& WithCacheParameterGroupName(CacheParameterGroupNameT&& value) { SetCacheParameterGroupName(std::forward<CacheParameterGroupNameT>(value)); return *this;}
56
58
63 inline const Aws::Vector<ParameterNameValue>& GetParameterNameValues() const { return m_parameterNameValues; }
64 inline bool ParameterNameValuesHasBeenSet() const { return m_parameterNameValuesHasBeenSet; }
65 template<typename ParameterNameValuesT = Aws::Vector<ParameterNameValue>>
66 void SetParameterNameValues(ParameterNameValuesT&& value) { m_parameterNameValuesHasBeenSet = true; m_parameterNameValues = std::forward<ParameterNameValuesT>(value); }
67 template<typename ParameterNameValuesT = Aws::Vector<ParameterNameValue>>
68 ModifyCacheParameterGroupRequest& WithParameterNameValues(ParameterNameValuesT&& value) { SetParameterNameValues(std::forward<ParameterNameValuesT>(value)); return *this;}
69 template<typename ParameterNameValuesT = ParameterNameValue>
70 ModifyCacheParameterGroupRequest& AddParameterNameValues(ParameterNameValuesT&& value) { m_parameterNameValuesHasBeenSet = true; m_parameterNameValues.emplace_back(std::forward<ParameterNameValuesT>(value)); return *this; }
72 private:
73
74 Aws::String m_cacheParameterGroupName;
75 bool m_cacheParameterGroupNameHasBeenSet = false;
76
77 Aws::Vector<ParameterNameValue> m_parameterNameValues;
78 bool m_parameterNameValuesHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace ElastiCache
83} // namespace Aws
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
const Aws::Vector< ParameterNameValue > & GetParameterNameValues() const
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyCacheParameterGroupRequest & AddParameterNameValues(ParameterNameValuesT &&value)
AWS_ELASTICACHE_API ModifyCacheParameterGroupRequest()=default
ModifyCacheParameterGroupRequest & WithCacheParameterGroupName(CacheParameterGroupNameT &&value)
ModifyCacheParameterGroupRequest & WithParameterNameValues(ParameterNameValuesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector