AWS SDK for C++  1.9.104
AWS SDK for C++
DescribeEventCategoriesRequest.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 "DescribeEventCategories"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
50  inline const Aws::String& GetSourceType() const{ return m_sourceType; }
51 
58  inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
59 
66  inline void SetSourceType(const Aws::String& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
67 
74  inline void SetSourceType(Aws::String&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
75 
82  inline void SetSourceType(const char* value) { m_sourceTypeHasBeenSet = true; m_sourceType.assign(value); }
83 
90  inline DescribeEventCategoriesRequest& WithSourceType(const Aws::String& value) { SetSourceType(value); return *this;}
91 
98  inline DescribeEventCategoriesRequest& WithSourceType(Aws::String&& value) { SetSourceType(std::move(value)); return *this;}
99 
106  inline DescribeEventCategoriesRequest& WithSourceType(const char* value) { SetSourceType(value); return *this;}
107 
108 
112  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
113 
117  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
118 
122  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
123 
127  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
128 
132  inline DescribeEventCategoriesRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
133 
137  inline DescribeEventCategoriesRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
138 
142  inline DescribeEventCategoriesRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
143 
147  inline DescribeEventCategoriesRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
148 
149  private:
150 
151  Aws::String m_sourceType;
152  bool m_sourceTypeHasBeenSet;
153 
154  Aws::Vector<Filter> m_filters;
155  bool m_filtersHasBeenSet;
156  };
157 
158 } // namespace Model
159 } // namespace RDS
160 } // namespace Aws
Aws::RDS::Model::DescribeEventCategoriesRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeEventCategoriesRequest.h:127
Aws::Http::URI
Definition: URI.h:32
Aws::RDS::Model::DescribeEventCategoriesRequest::WithSourceType
DescribeEventCategoriesRequest & WithSourceType(Aws::String &&value)
Definition: DescribeEventCategoriesRequest.h:98
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::DescribeEventCategoriesRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeEventCategoriesRequest.h:122
Aws::RDS::Model::DescribeEventCategoriesRequest::SetSourceType
void SetSourceType(const char *value)
Definition: DescribeEventCategoriesRequest.h:82
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::RDS::Model::DescribeEventCategoriesRequest::WithSourceType
DescribeEventCategoriesRequest & WithSourceType(const Aws::String &value)
Definition: DescribeEventCategoriesRequest.h:90
Aws::RDS::Model::DescribeEventCategoriesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::RDS::Model::DescribeEventCategoriesRequest
Definition: DescribeEventCategoriesRequest.h:27
RDS_EXPORTS.h
Aws::RDS::Model::DescribeEventCategoriesRequest::SetSourceType
void SetSourceType(const Aws::String &value)
Definition: DescribeEventCategoriesRequest.h:66
Aws::RDS::Model::DescribeEventCategoriesRequest::WithSourceType
DescribeEventCategoriesRequest & WithSourceType(const char *value)
Definition: DescribeEventCategoriesRequest.h:106
Aws::RDS::Model::Filter
Definition: Filter.h:43
Aws::RDS::Model::DescribeEventCategoriesRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeEventCategoriesRequest.h:112
Aws::RDS::Model::DescribeEventCategoriesRequest::GetSourceType
const Aws::String & GetSourceType() const
Definition: DescribeEventCategoriesRequest.h:50
Aws::RDS::Model::DescribeEventCategoriesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::RDS::Model::DescribeEventCategoriesRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeEventCategoriesRequest.h:117
Aws::RDS::Model::DescribeEventCategoriesRequest::AddFilters
DescribeEventCategoriesRequest & AddFilters(const Filter &value)
Definition: DescribeEventCategoriesRequest.h:142
AWSString.h
Filter.h
Aws::RDS::Model::DescribeEventCategoriesRequest::WithFilters
DescribeEventCategoriesRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeEventCategoriesRequest.h:132
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::DescribeEventCategoriesRequest::WithFilters
DescribeEventCategoriesRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeEventCategoriesRequest.h:137
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::DescribeEventCategoriesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeEventCategoriesRequest.h:35
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
RDSRequest.h
Aws::RDS::Model::DescribeEventCategoriesRequest::DescribeEventCategoriesRequest
DescribeEventCategoriesRequest()
Aws::RDS::Model::DescribeEventCategoriesRequest::AddFilters
DescribeEventCategoriesRequest & AddFilters(Filter &&value)
Definition: DescribeEventCategoriesRequest.h:147
Aws::RDS::Model::DescribeEventCategoriesRequest::SourceTypeHasBeenSet
bool SourceTypeHasBeenSet() const
Definition: DescribeEventCategoriesRequest.h:58
Aws::RDS::RDSRequest
Definition: RDSRequest.h:17
Aws::RDS::Model::DescribeEventCategoriesRequest::SetSourceType
void SetSourceType(Aws::String &&value)
Definition: DescribeEventCategoriesRequest.h:74