AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreateParameterGroupRequest.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/memorydb/MemoryDBRequest.h>
10#include <aws/memorydb/MemoryDB_EXPORTS.h>
11#include <aws/memorydb/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace MemoryDB {
17namespace Model {
18
22 public:
23 AWS_MEMORYDB_API CreateParameterGroupRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateParameterGroup"; }
30
31 AWS_MEMORYDB_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetParameterGroupName() const { return m_parameterGroupName; }
40 inline bool ParameterGroupNameHasBeenSet() const { return m_parameterGroupNameHasBeenSet; }
41 template <typename ParameterGroupNameT = Aws::String>
42 void SetParameterGroupName(ParameterGroupNameT&& value) {
43 m_parameterGroupNameHasBeenSet = true;
44 m_parameterGroupName = std::forward<ParameterGroupNameT>(value);
45 }
46 template <typename ParameterGroupNameT = Aws::String>
48 SetParameterGroupName(std::forward<ParameterGroupNameT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetFamily() const { return m_family; }
59 inline bool FamilyHasBeenSet() const { return m_familyHasBeenSet; }
60 template <typename FamilyT = Aws::String>
61 void SetFamily(FamilyT&& value) {
62 m_familyHasBeenSet = true;
63 m_family = std::forward<FamilyT>(value);
64 }
65 template <typename FamilyT = Aws::String>
67 SetFamily(std::forward<FamilyT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template <typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) {
80 m_descriptionHasBeenSet = true;
81 m_description = std::forward<DescriptionT>(value);
82 }
83 template <typename DescriptionT = Aws::String>
85 SetDescription(std::forward<DescriptionT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
96 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
97 template <typename TagsT = Aws::Vector<Tag>>
98 void SetTags(TagsT&& value) {
99 m_tagsHasBeenSet = true;
100 m_tags = std::forward<TagsT>(value);
101 }
102 template <typename TagsT = Aws::Vector<Tag>>
104 SetTags(std::forward<TagsT>(value));
105 return *this;
106 }
107 template <typename TagsT = Tag>
109 m_tagsHasBeenSet = true;
110 m_tags.emplace_back(std::forward<TagsT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_parameterGroupName;
116
117 Aws::String m_family;
118
119 Aws::String m_description;
120
121 Aws::Vector<Tag> m_tags;
122 bool m_parameterGroupNameHasBeenSet = false;
123 bool m_familyHasBeenSet = false;
124 bool m_descriptionHasBeenSet = false;
125 bool m_tagsHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace MemoryDB
130} // namespace Aws
AWS_MEMORYDB_API Aws::String SerializePayload() const override
CreateParameterGroupRequest & WithFamily(FamilyT &&value)
virtual const char * GetServiceRequestName() const override
CreateParameterGroupRequest & WithParameterGroupName(ParameterGroupNameT &&value)
CreateParameterGroupRequest & AddTags(TagsT &&value)
CreateParameterGroupRequest & WithTags(TagsT &&value)
CreateParameterGroupRequest & WithDescription(DescriptionT &&value)
AWS_MEMORYDB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_MEMORYDB_API CreateParameterGroupRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector