AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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
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
68 inline const Aws::String& GetCacheParameterGroupFamily() const { return m_cacheParameterGroupFamily; }
69 inline bool CacheParameterGroupFamilyHasBeenSet() const { return m_cacheParameterGroupFamilyHasBeenSet; }
70 template <typename CacheParameterGroupFamilyT = Aws::String>
71 void SetCacheParameterGroupFamily(CacheParameterGroupFamilyT&& value) {
72 m_cacheParameterGroupFamilyHasBeenSet = true;
73 m_cacheParameterGroupFamily = std::forward<CacheParameterGroupFamilyT>(value);
74 }
75 template <typename CacheParameterGroupFamilyT = Aws::String>
77 SetCacheParameterGroupFamily(std::forward<CacheParameterGroupFamilyT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetDescription() const { return m_description; }
87 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
88 template <typename DescriptionT = Aws::String>
89 void SetDescription(DescriptionT&& value) {
90 m_descriptionHasBeenSet = true;
91 m_description = std::forward<DescriptionT>(value);
92 }
93 template <typename DescriptionT = Aws::String>
95 SetDescription(std::forward<DescriptionT>(value));
96 return *this;
97 }
99
101
105 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
106 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
107 template <typename TagsT = Aws::Vector<Tag>>
108 void SetTags(TagsT&& value) {
109 m_tagsHasBeenSet = true;
110 m_tags = std::forward<TagsT>(value);
111 }
112 template <typename TagsT = Aws::Vector<Tag>>
114 SetTags(std::forward<TagsT>(value));
115 return *this;
116 }
117 template <typename TagsT = Tag>
119 m_tagsHasBeenSet = true;
120 m_tags.emplace_back(std::forward<TagsT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_cacheParameterGroupName;
126
127 Aws::String m_cacheParameterGroupFamily;
128
129 Aws::String m_description;
130
131 Aws::Vector<Tag> m_tags;
132 bool m_cacheParameterGroupNameHasBeenSet = false;
133 bool m_cacheParameterGroupFamilyHasBeenSet = false;
134 bool m_descriptionHasBeenSet = false;
135 bool m_tagsHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace ElastiCache
140} // 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