AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeOptionGroupsRequest.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/rds/RDSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/rds/model/Filter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace RDS
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_RDS_API DescribeOptionGroupsRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "DescribeOptionGroups"; }
36
37 AWS_RDS_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
49 inline const Aws::String& GetOptionGroupName() const { return m_optionGroupName; }
50 inline bool OptionGroupNameHasBeenSet() const { return m_optionGroupNameHasBeenSet; }
51 template<typename OptionGroupNameT = Aws::String>
52 void SetOptionGroupName(OptionGroupNameT&& value) { m_optionGroupNameHasBeenSet = true; m_optionGroupName = std::forward<OptionGroupNameT>(value); }
53 template<typename OptionGroupNameT = Aws::String>
54 DescribeOptionGroupsRequest& WithOptionGroupName(OptionGroupNameT&& value) { SetOptionGroupName(std::forward<OptionGroupNameT>(value)); return *this;}
56
58
61 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
62 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
63 template<typename FiltersT = Aws::Vector<Filter>>
64 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
65 template<typename FiltersT = Aws::Vector<Filter>>
66 DescribeOptionGroupsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
67 template<typename FiltersT = Filter>
68 DescribeOptionGroupsRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
70
72
77 inline const Aws::String& GetMarker() const { return m_marker; }
78 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
79 template<typename MarkerT = Aws::String>
80 void SetMarker(MarkerT&& value) { m_markerHasBeenSet = true; m_marker = std::forward<MarkerT>(value); }
81 template<typename MarkerT = Aws::String>
82 DescribeOptionGroupsRequest& WithMarker(MarkerT&& value) { SetMarker(std::forward<MarkerT>(value)); return *this;}
84
86
93 inline int GetMaxRecords() const { return m_maxRecords; }
94 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
95 inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
96 inline DescribeOptionGroupsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
98
100
112 inline const Aws::String& GetEngineName() const { return m_engineName; }
113 inline bool EngineNameHasBeenSet() const { return m_engineNameHasBeenSet; }
114 template<typename EngineNameT = Aws::String>
115 void SetEngineName(EngineNameT&& value) { m_engineNameHasBeenSet = true; m_engineName = std::forward<EngineNameT>(value); }
116 template<typename EngineNameT = Aws::String>
117 DescribeOptionGroupsRequest& WithEngineName(EngineNameT&& value) { SetEngineName(std::forward<EngineNameT>(value)); return *this;}
119
121
126 inline const Aws::String& GetMajorEngineVersion() const { return m_majorEngineVersion; }
127 inline bool MajorEngineVersionHasBeenSet() const { return m_majorEngineVersionHasBeenSet; }
128 template<typename MajorEngineVersionT = Aws::String>
129 void SetMajorEngineVersion(MajorEngineVersionT&& value) { m_majorEngineVersionHasBeenSet = true; m_majorEngineVersion = std::forward<MajorEngineVersionT>(value); }
130 template<typename MajorEngineVersionT = Aws::String>
131 DescribeOptionGroupsRequest& WithMajorEngineVersion(MajorEngineVersionT&& value) { SetMajorEngineVersion(std::forward<MajorEngineVersionT>(value)); return *this;}
133 private:
134
135 Aws::String m_optionGroupName;
136 bool m_optionGroupNameHasBeenSet = false;
137
138 Aws::Vector<Filter> m_filters;
139 bool m_filtersHasBeenSet = false;
140
141 Aws::String m_marker;
142 bool m_markerHasBeenSet = false;
143
144 int m_maxRecords{0};
145 bool m_maxRecordsHasBeenSet = false;
146
147 Aws::String m_engineName;
148 bool m_engineNameHasBeenSet = false;
149
150 Aws::String m_majorEngineVersion;
151 bool m_majorEngineVersionHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace RDS
156} // 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