AWS SDK for C++  1.8.71
AWS SDK for C++
DescribeEventCategoriesRequest.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 "DescribeEventCategories"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  protected:
41  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42 
43  public:
44 
50  inline const Aws::String& GetSourceType() const{ return m_sourceType; }
51 
57  inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
58 
64  inline void SetSourceType(const Aws::String& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
65 
71  inline void SetSourceType(Aws::String&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
72 
78  inline void SetSourceType(const char* value) { m_sourceTypeHasBeenSet = true; m_sourceType.assign(value); }
79 
85  inline DescribeEventCategoriesRequest& WithSourceType(const Aws::String& value) { SetSourceType(value); return *this;}
86 
92  inline DescribeEventCategoriesRequest& WithSourceType(Aws::String&& value) { SetSourceType(std::move(value)); return *this;}
93 
99  inline DescribeEventCategoriesRequest& WithSourceType(const char* value) { SetSourceType(value); return *this;}
100 
101 
105  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
106 
110  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
111 
115  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
116 
120  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
121 
125  inline DescribeEventCategoriesRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
126 
130  inline DescribeEventCategoriesRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
131 
135  inline DescribeEventCategoriesRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
136 
140  inline DescribeEventCategoriesRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
141 
142  private:
143 
144  Aws::String m_sourceType;
145  bool m_sourceTypeHasBeenSet;
146 
147  Aws::Vector<Filter> m_filters;
148  bool m_filtersHasBeenSet;
149  };
150 
151 } // namespace Model
152 } // namespace DocDB
153 } // namespace Aws
DescribeEventCategoriesRequest & WithSourceType(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
DescribeEventCategoriesRequest & AddFilters(Filter &&value)
DescribeEventCategoriesRequest & WithSourceType(const char *value)
DescribeEventCategoriesRequest & WithFilters(Aws::Vector< Filter > &&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
DescribeEventCategoriesRequest & AddFilters(const Filter &value)
DescribeEventCategoriesRequest & WithSourceType(Aws::String &&value)
DescribeEventCategoriesRequest & WithFilters(const Aws::Vector< Filter > &value)