AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeReservedDBInstancesRequest.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:
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 "DescribeReservedDBInstances"; }
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& GetReservedDBInstanceId() const{ return m_reservedDBInstanceId; }
50 inline bool ReservedDBInstanceIdHasBeenSet() const { return m_reservedDBInstanceIdHasBeenSet; }
51 inline void SetReservedDBInstanceId(const Aws::String& value) { m_reservedDBInstanceIdHasBeenSet = true; m_reservedDBInstanceId = value; }
52 inline void SetReservedDBInstanceId(Aws::String&& value) { m_reservedDBInstanceIdHasBeenSet = true; m_reservedDBInstanceId = std::move(value); }
53 inline void SetReservedDBInstanceId(const char* value) { m_reservedDBInstanceIdHasBeenSet = true; m_reservedDBInstanceId.assign(value); }
58
60
64 inline const Aws::String& GetReservedDBInstancesOfferingId() const{ return m_reservedDBInstancesOfferingId; }
65 inline bool ReservedDBInstancesOfferingIdHasBeenSet() const { return m_reservedDBInstancesOfferingIdHasBeenSet; }
66 inline void SetReservedDBInstancesOfferingId(const Aws::String& value) { m_reservedDBInstancesOfferingIdHasBeenSet = true; m_reservedDBInstancesOfferingId = value; }
67 inline void SetReservedDBInstancesOfferingId(Aws::String&& value) { m_reservedDBInstancesOfferingIdHasBeenSet = true; m_reservedDBInstancesOfferingId = std::move(value); }
68 inline void SetReservedDBInstancesOfferingId(const char* value) { m_reservedDBInstancesOfferingIdHasBeenSet = true; m_reservedDBInstancesOfferingId.assign(value); }
73
75
79 inline const Aws::String& GetDBInstanceClass() const{ return m_dBInstanceClass; }
80 inline bool DBInstanceClassHasBeenSet() const { return m_dBInstanceClassHasBeenSet; }
81 inline void SetDBInstanceClass(const Aws::String& value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass = value; }
82 inline void SetDBInstanceClass(Aws::String&& value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass = std::move(value); }
83 inline void SetDBInstanceClass(const char* value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass.assign(value); }
85 inline DescribeReservedDBInstancesRequest& WithDBInstanceClass(Aws::String&& value) { SetDBInstanceClass(std::move(value)); return *this;}
86 inline DescribeReservedDBInstancesRequest& WithDBInstanceClass(const char* value) { SetDBInstanceClass(value); return *this;}
88
90
95 inline const Aws::String& GetDuration() const{ return m_duration; }
96 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
97 inline void SetDuration(const Aws::String& value) { m_durationHasBeenSet = true; m_duration = value; }
98 inline void SetDuration(Aws::String&& value) { m_durationHasBeenSet = true; m_duration = std::move(value); }
99 inline void SetDuration(const char* value) { m_durationHasBeenSet = true; m_duration.assign(value); }
100 inline DescribeReservedDBInstancesRequest& WithDuration(const Aws::String& value) { SetDuration(value); return *this;}
101 inline DescribeReservedDBInstancesRequest& WithDuration(Aws::String&& value) { SetDuration(std::move(value)); return *this;}
102 inline DescribeReservedDBInstancesRequest& WithDuration(const char* value) { SetDuration(value); return *this;}
104
106
110 inline const Aws::String& GetProductDescription() const{ return m_productDescription; }
111 inline bool ProductDescriptionHasBeenSet() const { return m_productDescriptionHasBeenSet; }
112 inline void SetProductDescription(const Aws::String& value) { m_productDescriptionHasBeenSet = true; m_productDescription = value; }
113 inline void SetProductDescription(Aws::String&& value) { m_productDescriptionHasBeenSet = true; m_productDescription = std::move(value); }
114 inline void SetProductDescription(const char* value) { m_productDescriptionHasBeenSet = true; m_productDescription.assign(value); }
117 inline DescribeReservedDBInstancesRequest& WithProductDescription(const char* value) { SetProductDescription(value); return *this;}
119
121
126 inline const Aws::String& GetOfferingType() const{ return m_offeringType; }
127 inline bool OfferingTypeHasBeenSet() const { return m_offeringTypeHasBeenSet; }
128 inline void SetOfferingType(const Aws::String& value) { m_offeringTypeHasBeenSet = true; m_offeringType = value; }
129 inline void SetOfferingType(Aws::String&& value) { m_offeringTypeHasBeenSet = true; m_offeringType = std::move(value); }
130 inline void SetOfferingType(const char* value) { m_offeringTypeHasBeenSet = true; m_offeringType.assign(value); }
132 inline DescribeReservedDBInstancesRequest& WithOfferingType(Aws::String&& value) { SetOfferingType(std::move(value)); return *this;}
133 inline DescribeReservedDBInstancesRequest& WithOfferingType(const char* value) { SetOfferingType(value); return *this;}
135
137
140 inline bool GetMultiAZ() const{ return m_multiAZ; }
141 inline bool MultiAZHasBeenSet() const { return m_multiAZHasBeenSet; }
142 inline void SetMultiAZ(bool value) { m_multiAZHasBeenSet = true; m_multiAZ = value; }
143 inline DescribeReservedDBInstancesRequest& WithMultiAZ(bool value) { SetMultiAZ(value); return *this;}
145
147
153 inline const Aws::String& GetLeaseId() const{ return m_leaseId; }
154 inline bool LeaseIdHasBeenSet() const { return m_leaseIdHasBeenSet; }
155 inline void SetLeaseId(const Aws::String& value) { m_leaseIdHasBeenSet = true; m_leaseId = value; }
156 inline void SetLeaseId(Aws::String&& value) { m_leaseIdHasBeenSet = true; m_leaseId = std::move(value); }
157 inline void SetLeaseId(const char* value) { m_leaseIdHasBeenSet = true; m_leaseId.assign(value); }
158 inline DescribeReservedDBInstancesRequest& WithLeaseId(const Aws::String& value) { SetLeaseId(value); return *this;}
159 inline DescribeReservedDBInstancesRequest& WithLeaseId(Aws::String&& value) { SetLeaseId(std::move(value)); return *this;}
160 inline DescribeReservedDBInstancesRequest& WithLeaseId(const char* value) { SetLeaseId(value); return *this;}
162
164
167 inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
168 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
169 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
170 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
172 inline DescribeReservedDBInstancesRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
173 inline DescribeReservedDBInstancesRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
174 inline DescribeReservedDBInstancesRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
176
178
184 inline int GetMaxRecords() const{ return m_maxRecords; }
185 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
186 inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
187 inline DescribeReservedDBInstancesRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
189
191
196 inline const Aws::String& GetMarker() const{ return m_marker; }
197 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
198 inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
199 inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
200 inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
201 inline DescribeReservedDBInstancesRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
202 inline DescribeReservedDBInstancesRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
203 inline DescribeReservedDBInstancesRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
205 private:
206
207 Aws::String m_reservedDBInstanceId;
208 bool m_reservedDBInstanceIdHasBeenSet = false;
209
210 Aws::String m_reservedDBInstancesOfferingId;
211 bool m_reservedDBInstancesOfferingIdHasBeenSet = false;
212
213 Aws::String m_dBInstanceClass;
214 bool m_dBInstanceClassHasBeenSet = false;
215
216 Aws::String m_duration;
217 bool m_durationHasBeenSet = false;
218
219 Aws::String m_productDescription;
220 bool m_productDescriptionHasBeenSet = false;
221
222 Aws::String m_offeringType;
223 bool m_offeringTypeHasBeenSet = false;
224
225 bool m_multiAZ;
226 bool m_multiAZHasBeenSet = false;
227
228 Aws::String m_leaseId;
229 bool m_leaseIdHasBeenSet = false;
230
231 Aws::Vector<Filter> m_filters;
232 bool m_filtersHasBeenSet = false;
233
234 int m_maxRecords;
235 bool m_maxRecordsHasBeenSet = false;
236
237 Aws::String m_marker;
238 bool m_markerHasBeenSet = false;
239 };
240
241} // namespace Model
242} // namespace RDS
243} // namespace Aws
DescribeReservedDBInstancesRequest & WithReservedDBInstanceId(const char *value)
DescribeReservedDBInstancesRequest & WithOfferingType(const Aws::String &value)
DescribeReservedDBInstancesRequest & WithReservedDBInstanceId(Aws::String &&value)
DescribeReservedDBInstancesRequest & WithLeaseId(const Aws::String &value)
DescribeReservedDBInstancesRequest & WithDBInstanceClass(const Aws::String &value)
DescribeReservedDBInstancesRequest & WithMarker(Aws::String &&value)
DescribeReservedDBInstancesRequest & WithDBInstanceClass(Aws::String &&value)
DescribeReservedDBInstancesRequest & WithReservedDBInstancesOfferingId(Aws::String &&value)
DescribeReservedDBInstancesRequest & WithFilters(const Aws::Vector< Filter > &value)
DescribeReservedDBInstancesRequest & WithDuration(const char *value)
DescribeReservedDBInstancesRequest & WithDuration(const Aws::String &value)
DescribeReservedDBInstancesRequest & WithFilters(Aws::Vector< Filter > &&value)
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeReservedDBInstancesRequest & WithProductDescription(const char *value)
DescribeReservedDBInstancesRequest & WithMultiAZ(bool value)
DescribeReservedDBInstancesRequest & WithDuration(Aws::String &&value)
DescribeReservedDBInstancesRequest & WithDBInstanceClass(const char *value)
DescribeReservedDBInstancesRequest & WithMaxRecords(int value)
DescribeReservedDBInstancesRequest & WithMarker(const Aws::String &value)
DescribeReservedDBInstancesRequest & WithReservedDBInstancesOfferingId(const char *value)
DescribeReservedDBInstancesRequest & WithOfferingType(const char *value)
DescribeReservedDBInstancesRequest & AddFilters(Filter &&value)
DescribeReservedDBInstancesRequest & WithOfferingType(Aws::String &&value)
DescribeReservedDBInstancesRequest & WithLeaseId(const char *value)
DescribeReservedDBInstancesRequest & WithProductDescription(const Aws::String &value)
AWS_RDS_API Aws::String SerializePayload() const override
DescribeReservedDBInstancesRequest & WithReservedDBInstanceId(const Aws::String &value)
DescribeReservedDBInstancesRequest & AddFilters(const Filter &value)
DescribeReservedDBInstancesRequest & WithLeaseId(Aws::String &&value)
DescribeReservedDBInstancesRequest & WithMarker(const char *value)
DescribeReservedDBInstancesRequest & WithReservedDBInstancesOfferingId(const Aws::String &value)
DescribeReservedDBInstancesRequest & WithProductDescription(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector