AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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
74 inline const Aws::String& GetEngineName() const { return m_engineName; }
75 inline bool EngineNameHasBeenSet() const { return m_engineNameHasBeenSet; }
76 template <typename EngineNameT = Aws::String>
77 void SetEngineName(EngineNameT&& value) {
78 m_engineNameHasBeenSet = true;
79 m_engineName = std::forward<EngineNameT>(value);
80 }
81 template <typename EngineNameT = Aws::String>
83 SetEngineName(std::forward<EngineNameT>(value));
84 return *this;
85 }
87
89
93 inline const Aws::String& GetMajorEngineVersion() const { return m_majorEngineVersion; }
94 inline bool MajorEngineVersionHasBeenSet() const { return m_majorEngineVersionHasBeenSet; }
95 template <typename MajorEngineVersionT = Aws::String>
96 void SetMajorEngineVersion(MajorEngineVersionT&& value) {
97 m_majorEngineVersionHasBeenSet = true;
98 m_majorEngineVersion = std::forward<MajorEngineVersionT>(value);
99 }
100 template <typename MajorEngineVersionT = Aws::String>
101 CreateOptionGroupRequest& WithMajorEngineVersion(MajorEngineVersionT&& value) {
102 SetMajorEngineVersion(std::forward<MajorEngineVersionT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetOptionGroupDescription() const { return m_optionGroupDescription; }
112 inline bool OptionGroupDescriptionHasBeenSet() const { return m_optionGroupDescriptionHasBeenSet; }
113 template <typename OptionGroupDescriptionT = Aws::String>
114 void SetOptionGroupDescription(OptionGroupDescriptionT&& value) {
115 m_optionGroupDescriptionHasBeenSet = true;
116 m_optionGroupDescription = std::forward<OptionGroupDescriptionT>(value);
117 }
118 template <typename OptionGroupDescriptionT = Aws::String>
119 CreateOptionGroupRequest& WithOptionGroupDescription(OptionGroupDescriptionT&& value) {
120 SetOptionGroupDescription(std::forward<OptionGroupDescriptionT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
130 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
131 template <typename TagsT = Aws::Vector<Tag>>
132 void SetTags(TagsT&& value) {
133 m_tagsHasBeenSet = true;
134 m_tags = std::forward<TagsT>(value);
135 }
136 template <typename TagsT = Aws::Vector<Tag>>
138 SetTags(std::forward<TagsT>(value));
139 return *this;
140 }
141 template <typename TagsT = Tag>
143 m_tagsHasBeenSet = true;
144 m_tags.emplace_back(std::forward<TagsT>(value));
145 return *this;
146 }
148 private:
149 Aws::String m_optionGroupName;
150
151 Aws::String m_engineName;
152
153 Aws::String m_majorEngineVersion;
154
155 Aws::String m_optionGroupDescription;
156
157 Aws::Vector<Tag> m_tags;
158 bool m_optionGroupNameHasBeenSet = false;
159 bool m_engineNameHasBeenSet = false;
160 bool m_majorEngineVersionHasBeenSet = false;
161 bool m_optionGroupDescriptionHasBeenSet = false;
162 bool m_tagsHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace RDS
167} // 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