AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeOptionGroupsRequest.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/Filter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace RDS {
17namespace Model {
18
25 public:
26 AWS_RDS_API DescribeOptionGroupsRequest() = 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 "DescribeOptionGroups"; }
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
45 inline const Aws::String& GetOptionGroupName() const { return m_optionGroupName; }
46 inline bool OptionGroupNameHasBeenSet() const { return m_optionGroupNameHasBeenSet; }
47 template <typename OptionGroupNameT = Aws::String>
48 void SetOptionGroupName(OptionGroupNameT&& value) {
49 m_optionGroupNameHasBeenSet = true;
50 m_optionGroupName = std::forward<OptionGroupNameT>(value);
51 }
52 template <typename OptionGroupNameT = Aws::String>
54 SetOptionGroupName(std::forward<OptionGroupNameT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
64 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
65 template <typename FiltersT = Aws::Vector<Filter>>
66 void SetFilters(FiltersT&& value) {
67 m_filtersHasBeenSet = true;
68 m_filters = std::forward<FiltersT>(value);
69 }
70 template <typename FiltersT = Aws::Vector<Filter>>
72 SetFilters(std::forward<FiltersT>(value));
73 return *this;
74 }
75 template <typename FiltersT = Filter>
77 m_filtersHasBeenSet = true;
78 m_filters.emplace_back(std::forward<FiltersT>(value));
79 return *this;
80 }
82
84
89 inline const Aws::String& GetMarker() const { return m_marker; }
90 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
91 template <typename MarkerT = Aws::String>
92 void SetMarker(MarkerT&& value) {
93 m_markerHasBeenSet = true;
94 m_marker = std::forward<MarkerT>(value);
95 }
96 template <typename MarkerT = Aws::String>
98 SetMarker(std::forward<MarkerT>(value));
99 return *this;
100 }
102
104
111 inline int GetMaxRecords() const { return m_maxRecords; }
112 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
113 inline void SetMaxRecords(int value) {
114 m_maxRecordsHasBeenSet = true;
115 m_maxRecords = value;
116 }
118 SetMaxRecords(value);
119 return *this;
120 }
122
124
136 inline const Aws::String& GetEngineName() const { return m_engineName; }
137 inline bool EngineNameHasBeenSet() const { return m_engineNameHasBeenSet; }
138 template <typename EngineNameT = Aws::String>
139 void SetEngineName(EngineNameT&& value) {
140 m_engineNameHasBeenSet = true;
141 m_engineName = std::forward<EngineNameT>(value);
142 }
143 template <typename EngineNameT = Aws::String>
145 SetEngineName(std::forward<EngineNameT>(value));
146 return *this;
147 }
149
151
156 inline const Aws::String& GetMajorEngineVersion() const { return m_majorEngineVersion; }
157 inline bool MajorEngineVersionHasBeenSet() const { return m_majorEngineVersionHasBeenSet; }
158 template <typename MajorEngineVersionT = Aws::String>
159 void SetMajorEngineVersion(MajorEngineVersionT&& value) {
160 m_majorEngineVersionHasBeenSet = true;
161 m_majorEngineVersion = std::forward<MajorEngineVersionT>(value);
162 }
163 template <typename MajorEngineVersionT = Aws::String>
165 SetMajorEngineVersion(std::forward<MajorEngineVersionT>(value));
166 return *this;
167 }
169 private:
170 Aws::String m_optionGroupName;
171
172 Aws::Vector<Filter> m_filters;
173
174 Aws::String m_marker;
175
176 int m_maxRecords{0};
177
178 Aws::String m_engineName;
179
180 Aws::String m_majorEngineVersion;
181 bool m_optionGroupNameHasBeenSet = false;
182 bool m_filtersHasBeenSet = false;
183 bool m_markerHasBeenSet = false;
184 bool m_maxRecordsHasBeenSet = false;
185 bool m_engineNameHasBeenSet = false;
186 bool m_majorEngineVersionHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace RDS
191} // namespace Aws
DescribeOptionGroupsRequest & WithEngineName(EngineNameT &&value)
DescribeOptionGroupsRequest & WithFilters(FiltersT &&value)
AWS_RDS_API DescribeOptionGroupsRequest()=default
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Filter > & GetFilters() const
DescribeOptionGroupsRequest & WithMarker(MarkerT &&value)
DescribeOptionGroupsRequest & AddFilters(FiltersT &&value)
DescribeOptionGroupsRequest & WithOptionGroupName(OptionGroupNameT &&value)
DescribeOptionGroupsRequest & WithMaxRecords(int value)
DescribeOptionGroupsRequest & WithMajorEngineVersion(MajorEngineVersionT &&value)
AWS_RDS_API Aws::String SerializePayload() const override
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector