AWS SDK for C++  1.8.71
AWS SDK for C++
DescribeDBSecurityGroupsRequest.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 "DescribeDBSecurityGroups"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
47  inline const Aws::String& GetDBSecurityGroupName() const{ return m_dBSecurityGroupName; }
48 
52  inline bool DBSecurityGroupNameHasBeenSet() const { return m_dBSecurityGroupNameHasBeenSet; }
53 
57  inline void SetDBSecurityGroupName(const Aws::String& value) { m_dBSecurityGroupNameHasBeenSet = true; m_dBSecurityGroupName = value; }
58 
62  inline void SetDBSecurityGroupName(Aws::String&& value) { m_dBSecurityGroupNameHasBeenSet = true; m_dBSecurityGroupName = std::move(value); }
63 
67  inline void SetDBSecurityGroupName(const char* value) { m_dBSecurityGroupNameHasBeenSet = true; m_dBSecurityGroupName.assign(value); }
68 
72  inline DescribeDBSecurityGroupsRequest& WithDBSecurityGroupName(const Aws::String& value) { SetDBSecurityGroupName(value); return *this;}
73 
77  inline DescribeDBSecurityGroupsRequest& WithDBSecurityGroupName(Aws::String&& value) { SetDBSecurityGroupName(std::move(value)); return *this;}
78 
82  inline DescribeDBSecurityGroupsRequest& WithDBSecurityGroupName(const char* value) { SetDBSecurityGroupName(value); return *this;}
83 
84 
88  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
89 
93  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
94 
98  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
99 
103  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
104 
108  inline DescribeDBSecurityGroupsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
109 
113  inline DescribeDBSecurityGroupsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
114 
118  inline DescribeDBSecurityGroupsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
119 
123  inline DescribeDBSecurityGroupsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
124 
125 
133  inline int GetMaxRecords() const{ return m_maxRecords; }
134 
142  inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
143 
151  inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
152 
160  inline DescribeDBSecurityGroupsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
161 
162 
169  inline const Aws::String& GetMarker() const{ return m_marker; }
170 
177  inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
178 
185  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
186 
193  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
194 
201  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
202 
209  inline DescribeDBSecurityGroupsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
210 
217  inline DescribeDBSecurityGroupsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
218 
225  inline DescribeDBSecurityGroupsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
226 
227  private:
228 
229  Aws::String m_dBSecurityGroupName;
230  bool m_dBSecurityGroupNameHasBeenSet;
231 
232  Aws::Vector<Filter> m_filters;
233  bool m_filtersHasBeenSet;
234 
235  int m_maxRecords;
236  bool m_maxRecordsHasBeenSet;
237 
238  Aws::String m_marker;
239  bool m_markerHasBeenSet;
240  };
241 
242 } // namespace Model
243 } // namespace RDS
244 } // namespace Aws
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
DescribeDBSecurityGroupsRequest & AddFilters(const Filter &value)
DescribeDBSecurityGroupsRequest & WithMaxRecords(int value)
DescribeDBSecurityGroupsRequest & WithDBSecurityGroupName(const char *value)
DescribeDBSecurityGroupsRequest & WithMarker(const char *value)
DescribeDBSecurityGroupsRequest & WithDBSecurityGroupName(Aws::String &&value)
DescribeDBSecurityGroupsRequest & WithDBSecurityGroupName(const Aws::String &value)
DescribeDBSecurityGroupsRequest & WithFilters(Aws::Vector< Filter > &&value)
DescribeDBSecurityGroupsRequest & WithMarker(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeDBSecurityGroupsRequest & WithFilters(const Aws::Vector< Filter > &value)
DescribeDBSecurityGroupsRequest & AddFilters(Filter &&value)
DescribeDBSecurityGroupsRequest & WithMarker(const Aws::String &value)