AWS SDK for C++  1.8.71
AWS SDK for C++
DescribeDBInstancesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/docdb/model/Filter.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace DocDB
17 {
18 namespace Model
19 {
20 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "DescribeDBInstances"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  protected:
41  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42 
43  public:
44 
51  inline const Aws::String& GetDBInstanceIdentifier() const{ return m_dBInstanceIdentifier; }
52 
59  inline bool DBInstanceIdentifierHasBeenSet() const { return m_dBInstanceIdentifierHasBeenSet; }
60 
67  inline void SetDBInstanceIdentifier(const Aws::String& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = value; }
68 
75  inline void SetDBInstanceIdentifier(Aws::String&& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = std::move(value); }
76 
83  inline void SetDBInstanceIdentifier(const char* value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier.assign(value); }
84 
91  inline DescribeDBInstancesRequest& WithDBInstanceIdentifier(const Aws::String& value) { SetDBInstanceIdentifier(value); return *this;}
92 
99  inline DescribeDBInstancesRequest& WithDBInstanceIdentifier(Aws::String&& value) { SetDBInstanceIdentifier(std::move(value)); return *this;}
100 
107  inline DescribeDBInstancesRequest& WithDBInstanceIdentifier(const char* value) { SetDBInstanceIdentifier(value); return *this;}
108 
109 
120  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
121 
132  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
133 
144  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
145 
156  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
157 
168  inline DescribeDBInstancesRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
169 
180  inline DescribeDBInstancesRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
181 
192  inline DescribeDBInstancesRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
193 
204  inline DescribeDBInstancesRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
205 
206 
213  inline int GetMaxRecords() const{ return m_maxRecords; }
214 
221  inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
222 
229  inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
230 
237  inline DescribeDBInstancesRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
238 
239 
245  inline const Aws::String& GetMarker() const{ return m_marker; }
246 
252  inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
253 
259  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
260 
266  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
267 
273  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
274 
280  inline DescribeDBInstancesRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
281 
287  inline DescribeDBInstancesRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
288 
294  inline DescribeDBInstancesRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
295 
296  private:
297 
298  Aws::String m_dBInstanceIdentifier;
299  bool m_dBInstanceIdentifierHasBeenSet;
300 
301  Aws::Vector<Filter> m_filters;
302  bool m_filtersHasBeenSet;
303 
304  int m_maxRecords;
305  bool m_maxRecordsHasBeenSet;
306 
307  Aws::String m_marker;
308  bool m_markerHasBeenSet;
309  };
310 
311 } // namespace Model
312 } // namespace DocDB
313 } // namespace Aws
void SetFilters(const Aws::Vector< Filter > &value)
DescribeDBInstancesRequest & WithMarker(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
DescribeDBInstancesRequest & WithDBInstanceIdentifier(const char *value)
DescribeDBInstancesRequest & AddFilters(const Filter &value)
virtual const char * GetServiceRequestName() const override
DescribeDBInstancesRequest & AddFilters(Filter &&value)
DescribeDBInstancesRequest & WithDBInstanceIdentifier(const Aws::String &value)
#define AWS_DOCDB_API
Definition: DocDB_EXPORTS.h:28
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeDBInstancesRequest & WithMaxRecords(int value)
DescribeDBInstancesRequest & WithFilters(const Aws::Vector< Filter > &value)
DescribeDBInstancesRequest & WithMarker(Aws::String &&value)
const Aws::Vector< Filter > & GetFilters() const
DescribeDBInstancesRequest & WithDBInstanceIdentifier(Aws::String &&value)
DescribeDBInstancesRequest & WithFilters(Aws::Vector< Filter > &&value)
DescribeDBInstancesRequest & WithMarker(const Aws::String &value)