AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
DescribeUsersRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/memorydb/MemoryDBRequest.h>
10#include <aws/memorydb/MemoryDB_EXPORTS.h>
11#include <aws/memorydb/model/Filter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace MemoryDB {
17namespace Model {
18
22 public:
23 AWS_MEMORYDB_API DescribeUsersRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DescribeUsers"; }
30
31 AWS_MEMORYDB_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetUserName() const { return m_userName; }
40 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
41 template <typename UserNameT = Aws::String>
42 void SetUserName(UserNameT&& value) {
43 m_userNameHasBeenSet = true;
44 m_userName = std::forward<UserNameT>(value);
45 }
46 template <typename UserNameT = Aws::String>
47 DescribeUsersRequest& WithUserName(UserNameT&& value) {
48 SetUserName(std::forward<UserNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
58 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
59 template <typename FiltersT = Aws::Vector<Filter>>
60 void SetFilters(FiltersT&& value) {
61 m_filtersHasBeenSet = true;
62 m_filters = std::forward<FiltersT>(value);
63 }
64 template <typename FiltersT = Aws::Vector<Filter>>
65 DescribeUsersRequest& WithFilters(FiltersT&& value) {
66 SetFilters(std::forward<FiltersT>(value));
67 return *this;
68 }
69 template <typename FiltersT = Filter>
70 DescribeUsersRequest& AddFilters(FiltersT&& value) {
71 m_filtersHasBeenSet = true;
72 m_filters.emplace_back(std::forward<FiltersT>(value));
73 return *this;
74 }
76
78
83 inline int GetMaxResults() const { return m_maxResults; }
84 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
85 inline void SetMaxResults(int value) {
86 m_maxResultsHasBeenSet = true;
87 m_maxResults = value;
88 }
90 SetMaxResults(value);
91 return *this;
92 }
94
96
103 inline const Aws::String& GetNextToken() const { return m_nextToken; }
104 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
105 template <typename NextTokenT = Aws::String>
106 void SetNextToken(NextTokenT&& value) {
107 m_nextTokenHasBeenSet = true;
108 m_nextToken = std::forward<NextTokenT>(value);
109 }
110 template <typename NextTokenT = Aws::String>
111 DescribeUsersRequest& WithNextToken(NextTokenT&& value) {
112 SetNextToken(std::forward<NextTokenT>(value));
113 return *this;
114 }
116 private:
117 Aws::String m_userName;
118
119 Aws::Vector<Filter> m_filters;
120
121 int m_maxResults{0};
122
123 Aws::String m_nextToken;
124 bool m_userNameHasBeenSet = false;
125 bool m_filtersHasBeenSet = false;
126 bool m_maxResultsHasBeenSet = false;
127 bool m_nextTokenHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace MemoryDB
132} // namespace Aws
AWS_MEMORYDB_API Aws::String SerializePayload() const override
DescribeUsersRequest & WithFilters(FiltersT &&value)
DescribeUsersRequest & WithNextToken(NextTokenT &&value)
DescribeUsersRequest & WithUserName(UserNameT &&value)
const Aws::Vector< Filter > & GetFilters() const
AWS_MEMORYDB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_MEMORYDB_API DescribeUsersRequest()=default
virtual const char * GetServiceRequestName() const override
DescribeUsersRequest & AddFilters(FiltersT &&value)
DescribeUsersRequest & WithMaxResults(int value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector