AWS SDK for C++  1.8.71
AWS SDK for C++
DescribeReservedDBInstancesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
8 #include <aws/rds/RDSRequest.h>
11 #include <aws/rds/model/Filter.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace RDS
17 {
18 namespace 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::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
48  inline const Aws::String& GetReservedDBInstanceId() const{ return m_reservedDBInstanceId; }
49 
54  inline bool ReservedDBInstanceIdHasBeenSet() const { return m_reservedDBInstanceIdHasBeenSet; }
55 
60  inline void SetReservedDBInstanceId(const Aws::String& value) { m_reservedDBInstanceIdHasBeenSet = true; m_reservedDBInstanceId = value; }
61 
66  inline void SetReservedDBInstanceId(Aws::String&& value) { m_reservedDBInstanceIdHasBeenSet = true; m_reservedDBInstanceId = std::move(value); }
67 
72  inline void SetReservedDBInstanceId(const char* value) { m_reservedDBInstanceIdHasBeenSet = true; m_reservedDBInstanceId.assign(value); }
73 
78  inline DescribeReservedDBInstancesRequest& WithReservedDBInstanceId(const Aws::String& value) { SetReservedDBInstanceId(value); return *this;}
79 
84  inline DescribeReservedDBInstancesRequest& WithReservedDBInstanceId(Aws::String&& value) { SetReservedDBInstanceId(std::move(value)); return *this;}
85 
90  inline DescribeReservedDBInstancesRequest& WithReservedDBInstanceId(const char* value) { SetReservedDBInstanceId(value); return *this;}
91 
92 
97  inline const Aws::String& GetReservedDBInstancesOfferingId() const{ return m_reservedDBInstancesOfferingId; }
98 
103  inline bool ReservedDBInstancesOfferingIdHasBeenSet() const { return m_reservedDBInstancesOfferingIdHasBeenSet; }
104 
109  inline void SetReservedDBInstancesOfferingId(const Aws::String& value) { m_reservedDBInstancesOfferingIdHasBeenSet = true; m_reservedDBInstancesOfferingId = value; }
110 
115  inline void SetReservedDBInstancesOfferingId(Aws::String&& value) { m_reservedDBInstancesOfferingIdHasBeenSet = true; m_reservedDBInstancesOfferingId = std::move(value); }
116 
121  inline void SetReservedDBInstancesOfferingId(const char* value) { m_reservedDBInstancesOfferingIdHasBeenSet = true; m_reservedDBInstancesOfferingId.assign(value); }
122 
127  inline DescribeReservedDBInstancesRequest& WithReservedDBInstancesOfferingId(const Aws::String& value) { SetReservedDBInstancesOfferingId(value); return *this;}
128 
133  inline DescribeReservedDBInstancesRequest& WithReservedDBInstancesOfferingId(Aws::String&& value) { SetReservedDBInstancesOfferingId(std::move(value)); return *this;}
134 
139  inline DescribeReservedDBInstancesRequest& WithReservedDBInstancesOfferingId(const char* value) { SetReservedDBInstancesOfferingId(value); return *this;}
140 
141 
146  inline const Aws::String& GetDBInstanceClass() const{ return m_dBInstanceClass; }
147 
152  inline bool DBInstanceClassHasBeenSet() const { return m_dBInstanceClassHasBeenSet; }
153 
158  inline void SetDBInstanceClass(const Aws::String& value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass = value; }
159 
164  inline void SetDBInstanceClass(Aws::String&& value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass = std::move(value); }
165 
170  inline void SetDBInstanceClass(const char* value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass.assign(value); }
171 
176  inline DescribeReservedDBInstancesRequest& WithDBInstanceClass(const Aws::String& value) { SetDBInstanceClass(value); return *this;}
177 
182  inline DescribeReservedDBInstancesRequest& WithDBInstanceClass(Aws::String&& value) { SetDBInstanceClass(std::move(value)); return *this;}
183 
188  inline DescribeReservedDBInstancesRequest& WithDBInstanceClass(const char* value) { SetDBInstanceClass(value); return *this;}
189 
190 
196  inline const Aws::String& GetDuration() const{ return m_duration; }
197 
203  inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
204 
210  inline void SetDuration(const Aws::String& value) { m_durationHasBeenSet = true; m_duration = value; }
211 
217  inline void SetDuration(Aws::String&& value) { m_durationHasBeenSet = true; m_duration = std::move(value); }
218 
224  inline void SetDuration(const char* value) { m_durationHasBeenSet = true; m_duration.assign(value); }
225 
231  inline DescribeReservedDBInstancesRequest& WithDuration(const Aws::String& value) { SetDuration(value); return *this;}
232 
238  inline DescribeReservedDBInstancesRequest& WithDuration(Aws::String&& value) { SetDuration(std::move(value)); return *this;}
239 
245  inline DescribeReservedDBInstancesRequest& WithDuration(const char* value) { SetDuration(value); return *this;}
246 
247 
252  inline const Aws::String& GetProductDescription() const{ return m_productDescription; }
253 
258  inline bool ProductDescriptionHasBeenSet() const { return m_productDescriptionHasBeenSet; }
259 
264  inline void SetProductDescription(const Aws::String& value) { m_productDescriptionHasBeenSet = true; m_productDescription = value; }
265 
270  inline void SetProductDescription(Aws::String&& value) { m_productDescriptionHasBeenSet = true; m_productDescription = std::move(value); }
271 
276  inline void SetProductDescription(const char* value) { m_productDescriptionHasBeenSet = true; m_productDescription.assign(value); }
277 
282  inline DescribeReservedDBInstancesRequest& WithProductDescription(const Aws::String& value) { SetProductDescription(value); return *this;}
283 
288  inline DescribeReservedDBInstancesRequest& WithProductDescription(Aws::String&& value) { SetProductDescription(std::move(value)); return *this;}
289 
294  inline DescribeReservedDBInstancesRequest& WithProductDescription(const char* value) { SetProductDescription(value); return *this;}
295 
296 
302  inline const Aws::String& GetOfferingType() const{ return m_offeringType; }
303 
309  inline bool OfferingTypeHasBeenSet() const { return m_offeringTypeHasBeenSet; }
310 
316  inline void SetOfferingType(const Aws::String& value) { m_offeringTypeHasBeenSet = true; m_offeringType = value; }
317 
323  inline void SetOfferingType(Aws::String&& value) { m_offeringTypeHasBeenSet = true; m_offeringType = std::move(value); }
324 
330  inline void SetOfferingType(const char* value) { m_offeringTypeHasBeenSet = true; m_offeringType.assign(value); }
331 
337  inline DescribeReservedDBInstancesRequest& WithOfferingType(const Aws::String& value) { SetOfferingType(value); return *this;}
338 
344  inline DescribeReservedDBInstancesRequest& WithOfferingType(Aws::String&& value) { SetOfferingType(std::move(value)); return *this;}
345 
351  inline DescribeReservedDBInstancesRequest& WithOfferingType(const char* value) { SetOfferingType(value); return *this;}
352 
353 
358  inline bool GetMultiAZ() const{ return m_multiAZ; }
359 
364  inline bool MultiAZHasBeenSet() const { return m_multiAZHasBeenSet; }
365 
370  inline void SetMultiAZ(bool value) { m_multiAZHasBeenSet = true; m_multiAZ = value; }
371 
376  inline DescribeReservedDBInstancesRequest& WithMultiAZ(bool value) { SetMultiAZ(value); return *this;}
377 
378 
384  inline const Aws::String& GetLeaseId() const{ return m_leaseId; }
385 
391  inline bool LeaseIdHasBeenSet() const { return m_leaseIdHasBeenSet; }
392 
398  inline void SetLeaseId(const Aws::String& value) { m_leaseIdHasBeenSet = true; m_leaseId = value; }
399 
405  inline void SetLeaseId(Aws::String&& value) { m_leaseIdHasBeenSet = true; m_leaseId = std::move(value); }
406 
412  inline void SetLeaseId(const char* value) { m_leaseIdHasBeenSet = true; m_leaseId.assign(value); }
413 
419  inline DescribeReservedDBInstancesRequest& WithLeaseId(const Aws::String& value) { SetLeaseId(value); return *this;}
420 
426  inline DescribeReservedDBInstancesRequest& WithLeaseId(Aws::String&& value) { SetLeaseId(std::move(value)); return *this;}
427 
433  inline DescribeReservedDBInstancesRequest& WithLeaseId(const char* value) { SetLeaseId(value); return *this;}
434 
435 
439  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
440 
444  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
445 
449  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
450 
454  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
455 
459  inline DescribeReservedDBInstancesRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
460 
464  inline DescribeReservedDBInstancesRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
465 
469  inline DescribeReservedDBInstancesRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
470 
474  inline DescribeReservedDBInstancesRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
475 
476 
483  inline int GetMaxRecords() const{ return m_maxRecords; }
484 
491  inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
492 
499  inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
500 
507  inline DescribeReservedDBInstancesRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
508 
509 
515  inline const Aws::String& GetMarker() const{ return m_marker; }
516 
522  inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
523 
529  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
530 
536  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
537 
543  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
544 
550  inline DescribeReservedDBInstancesRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
551 
557  inline DescribeReservedDBInstancesRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
558 
564  inline DescribeReservedDBInstancesRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
565 
566  private:
567 
568  Aws::String m_reservedDBInstanceId;
569  bool m_reservedDBInstanceIdHasBeenSet;
570 
571  Aws::String m_reservedDBInstancesOfferingId;
572  bool m_reservedDBInstancesOfferingIdHasBeenSet;
573 
574  Aws::String m_dBInstanceClass;
575  bool m_dBInstanceClassHasBeenSet;
576 
577  Aws::String m_duration;
578  bool m_durationHasBeenSet;
579 
580  Aws::String m_productDescription;
581  bool m_productDescriptionHasBeenSet;
582 
583  Aws::String m_offeringType;
584  bool m_offeringTypeHasBeenSet;
585 
586  bool m_multiAZ;
587  bool m_multiAZHasBeenSet;
588 
589  Aws::String m_leaseId;
590  bool m_leaseIdHasBeenSet;
591 
592  Aws::Vector<Filter> m_filters;
593  bool m_filtersHasBeenSet;
594 
595  int m_maxRecords;
596  bool m_maxRecordsHasBeenSet;
597 
598  Aws::String m_marker;
599  bool m_markerHasBeenSet;
600  };
601 
602 } // namespace Model
603 } // namespace RDS
604 } // namespace Aws
DescribeReservedDBInstancesRequest & WithReservedDBInstancesOfferingId(Aws::String &&value)
DescribeReservedDBInstancesRequest & WithDuration(Aws::String &&value)
DescribeReservedDBInstancesRequest & WithDBInstanceClass(const char *value)
DescribeReservedDBInstancesRequest & WithLeaseId(const char *value)
DescribeReservedDBInstancesRequest & WithMaxRecords(int value)
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
DescribeReservedDBInstancesRequest & WithProductDescription(const Aws::String &value)
DescribeReservedDBInstancesRequest & WithReservedDBInstanceId(const Aws::String &value)
DescribeReservedDBInstancesRequest & WithReservedDBInstanceId(Aws::String &&value)
DescribeReservedDBInstancesRequest & WithLeaseId(Aws::String &&value)
DescribeReservedDBInstancesRequest & WithReservedDBInstanceId(const char *value)
DescribeReservedDBInstancesRequest & WithReservedDBInstancesOfferingId(const Aws::String &value)
DescribeReservedDBInstancesRequest & WithMarker(const Aws::String &value)
DescribeReservedDBInstancesRequest & WithDuration(const Aws::String &value)
DescribeReservedDBInstancesRequest & WithOfferingType(const char *value)
DescribeReservedDBInstancesRequest & WithMarker(const char *value)
DescribeReservedDBInstancesRequest & WithOfferingType(Aws::String &&value)
DescribeReservedDBInstancesRequest & WithDBInstanceClass(Aws::String &&value)
DescribeReservedDBInstancesRequest & WithMarker(Aws::String &&value)
DescribeReservedDBInstancesRequest & WithFilters(Aws::Vector< Filter > &&value)
DescribeReservedDBInstancesRequest & WithLeaseId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeReservedDBInstancesRequest & WithReservedDBInstancesOfferingId(const char *value)
DescribeReservedDBInstancesRequest & AddFilters(Filter &&value)
DescribeReservedDBInstancesRequest & WithDBInstanceClass(const Aws::String &value)
DescribeReservedDBInstancesRequest & WithDuration(const char *value)
DescribeReservedDBInstancesRequest & WithFilters(const Aws::Vector< Filter > &value)
DescribeReservedDBInstancesRequest & WithProductDescription(Aws::String &&value)
DescribeReservedDBInstancesRequest & WithOfferingType(const Aws::String &value)
DescribeReservedDBInstancesRequest & WithProductDescription(const char *value)
DescribeReservedDBInstancesRequest & AddFilters(const Filter &value)
DescribeReservedDBInstancesRequest & WithMultiAZ(bool value)