AWS SDK for C++

AWS SDK for C++ Version 1.11.847

Loading...
Searching...
No Matches
CreateOptionGroupRequest.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/rds/RDSRequest.h>
10#include <aws/rds/RDS_EXPORTS.h>
11#include <aws/rds/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace RDS {
17namespace Model {
18
25 public:
26 AWS_RDS_API CreateOptionGroupRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateOptionGroup"; }
33
34 AWS_RDS_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
38
39 public:
41
48 inline const Aws::String& GetOptionGroupName() const { return m_optionGroupName; }
49 inline bool OptionGroupNameHasBeenSet() const { return m_optionGroupNameHasBeenSet; }
50 template <typename OptionGroupNameT = Aws::String>
51 void SetOptionGroupName(OptionGroupNameT&& value) {
52 m_optionGroupNameHasBeenSet = true;
53 m_optionGroupName = std::forward<OptionGroupNameT>(value);
54 }
55 template <typename OptionGroupNameT = Aws::String>
56 CreateOptionGroupRequest& WithOptionGroupName(OptionGroupNameT&& value) {
57 SetOptionGroupName(std::forward<OptionGroupNameT>(value));
58 return *this;
59 }
61
63
75 inline const Aws::String& GetEngineName() const { return m_engineName; }
76 inline bool EngineNameHasBeenSet() const { return m_engineNameHasBeenSet; }
77 template <typename EngineNameT = Aws::String>
78 void SetEngineName(EngineNameT&& value) {
79 m_engineNameHasBeenSet = true;
80 m_engineName = std::forward<EngineNameT>(value);
81 }
82 template <typename EngineNameT = Aws::String>
84 SetEngineName(std::forward<EngineNameT>(value));
85 return *this;
86 }
88
90
94 inline const Aws::String& GetMajorEngineVersion() const { return m_majorEngineVersion; }
95 inline bool MajorEngineVersionHasBeenSet() const { return m_majorEngineVersionHasBeenSet; }
96 template <typename MajorEngineVersionT = Aws::String>
97 void SetMajorEngineVersion(MajorEngineVersionT&& value) {
98 m_majorEngineVersionHasBeenSet = true;
99 m_majorEngineVersion = std::forward<MajorEngineVersionT>(value);
100 }
101 template <typename MajorEngineVersionT = Aws::String>
102 CreateOptionGroupRequest& WithMajorEngineVersion(MajorEngineVersionT&& value) {
103 SetMajorEngineVersion(std::forward<MajorEngineVersionT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetOptionGroupDescription() const { return m_optionGroupDescription; }
113 inline bool OptionGroupDescriptionHasBeenSet() const { return m_optionGroupDescriptionHasBeenSet; }
114 template <typename OptionGroupDescriptionT = Aws::String>
115 void SetOptionGroupDescription(OptionGroupDescriptionT&& value) {
116 m_optionGroupDescriptionHasBeenSet = true;
117 m_optionGroupDescription = std::forward<OptionGroupDescriptionT>(value);
118 }
119 template <typename OptionGroupDescriptionT = Aws::String>
120 CreateOptionGroupRequest& WithOptionGroupDescription(OptionGroupDescriptionT&& value) {
121 SetOptionGroupDescription(std::forward<OptionGroupDescriptionT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
131 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
132 template <typename TagsT = Aws::Vector<Tag>>
133 void SetTags(TagsT&& value) {
134 m_tagsHasBeenSet = true;
135 m_tags = std::forward<TagsT>(value);
136 }
137 template <typename TagsT = Aws::Vector<Tag>>
139 SetTags(std::forward<TagsT>(value));
140 return *this;
141 }
142 template <typename TagsT = Tag>
144 m_tagsHasBeenSet = true;
145 m_tags.emplace_back(std::forward<TagsT>(value));
146 return *this;
147 }
149 private:
150 Aws::String m_optionGroupName;
151
152 Aws::String m_engineName;
153
154 Aws::String m_majorEngineVersion;
155
156 Aws::String m_optionGroupDescription;
157
158 Aws::Vector<Tag> m_tags;
159 bool m_optionGroupNameHasBeenSet = false;
160 bool m_engineNameHasBeenSet = false;
161 bool m_majorEngineVersionHasBeenSet = false;
162 bool m_optionGroupDescriptionHasBeenSet = false;
163 bool m_tagsHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace RDS
168} // namespace Aws
CreateOptionGroupRequest & WithEngineName(EngineNameT &&value)
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateOptionGroupRequest & WithTags(TagsT &&value)
void SetOptionGroupName(OptionGroupNameT &&value)
CreateOptionGroupRequest & AddTags(TagsT &&value)
CreateOptionGroupRequest & WithOptionGroupName(OptionGroupNameT &&value)
CreateOptionGroupRequest & WithMajorEngineVersion(MajorEngineVersionT &&value)
AWS_RDS_API Aws::String SerializePayload() const override
CreateOptionGroupRequest & WithOptionGroupDescription(OptionGroupDescriptionT &&value)
void SetMajorEngineVersion(MajorEngineVersionT &&value)
void SetOptionGroupDescription(OptionGroupDescriptionT &&value)
AWS_RDS_API CreateOptionGroupRequest()=default
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector