AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
CreateCacheParameterGroupRequest.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/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ElastiCache {
17namespace Model {
18
26 public:
27 AWS_ELASTICACHE_API CreateCacheParameterGroupRequest() = 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 "CreateCacheParameterGroup"; }
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
46 inline const Aws::String& GetCacheParameterGroupName() const { return m_cacheParameterGroupName; }
47 inline bool CacheParameterGroupNameHasBeenSet() const { return m_cacheParameterGroupNameHasBeenSet; }
48 template <typename CacheParameterGroupNameT = Aws::String>
49 void SetCacheParameterGroupName(CacheParameterGroupNameT&& value) {
50 m_cacheParameterGroupNameHasBeenSet = true;
51 m_cacheParameterGroupName = std::forward<CacheParameterGroupNameT>(value);
52 }
53 template <typename CacheParameterGroupNameT = Aws::String>
55 SetCacheParameterGroupName(std::forward<CacheParameterGroupNameT>(value));
56 return *this;
57 }
59
61
69 inline const Aws::String& GetCacheParameterGroupFamily() const { return m_cacheParameterGroupFamily; }
70 inline bool CacheParameterGroupFamilyHasBeenSet() const { return m_cacheParameterGroupFamilyHasBeenSet; }
71 template <typename CacheParameterGroupFamilyT = Aws::String>
72 void SetCacheParameterGroupFamily(CacheParameterGroupFamilyT&& value) {
73 m_cacheParameterGroupFamilyHasBeenSet = true;
74 m_cacheParameterGroupFamily = std::forward<CacheParameterGroupFamilyT>(value);
75 }
76 template <typename CacheParameterGroupFamilyT = Aws::String>
78 SetCacheParameterGroupFamily(std::forward<CacheParameterGroupFamilyT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetDescription() const { return m_description; }
88 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
89 template <typename DescriptionT = Aws::String>
90 void SetDescription(DescriptionT&& value) {
91 m_descriptionHasBeenSet = true;
92 m_description = std::forward<DescriptionT>(value);
93 }
94 template <typename DescriptionT = Aws::String>
96 SetDescription(std::forward<DescriptionT>(value));
97 return *this;
98 }
100
102
106 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
107 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
108 template <typename TagsT = Aws::Vector<Tag>>
109 void SetTags(TagsT&& value) {
110 m_tagsHasBeenSet = true;
111 m_tags = std::forward<TagsT>(value);
112 }
113 template <typename TagsT = Aws::Vector<Tag>>
115 SetTags(std::forward<TagsT>(value));
116 return *this;
117 }
118 template <typename TagsT = Tag>
120 m_tagsHasBeenSet = true;
121 m_tags.emplace_back(std::forward<TagsT>(value));
122 return *this;
123 }
125 private:
126 Aws::String m_cacheParameterGroupName;
127
128 Aws::String m_cacheParameterGroupFamily;
129
130 Aws::String m_description;
131
132 Aws::Vector<Tag> m_tags;
133 bool m_cacheParameterGroupNameHasBeenSet = false;
134 bool m_cacheParameterGroupFamilyHasBeenSet = false;
135 bool m_descriptionHasBeenSet = false;
136 bool m_tagsHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace ElastiCache
141} // namespace Aws
CreateCacheParameterGroupRequest & WithCacheParameterGroupName(CacheParameterGroupNameT &&value)
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_ELASTICACHE_API CreateCacheParameterGroupRequest()=default
CreateCacheParameterGroupRequest & WithDescription(DescriptionT &&value)
CreateCacheParameterGroupRequest & WithCacheParameterGroupFamily(CacheParameterGroupFamilyT &&value)
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