AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ListUsersRequest.h
1
6#pragma once
7#include <aws/chime/Chime_EXPORTS.h>
8#include <aws/chime/ChimeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/chime/model/UserType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace Chime
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_CHIME_API ListUsersRequest() = default;
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 "ListUsers"; }
36
37 AWS_CHIME_API Aws::String SerializePayload() const override;
38
39 AWS_CHIME_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41
43
46 inline const Aws::String& GetAccountId() const { return m_accountId; }
47 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
48 template<typename AccountIdT = Aws::String>
49 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
50 template<typename AccountIdT = Aws::String>
51 ListUsersRequest& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetUserEmail() const { return m_userEmail; }
59 inline bool UserEmailHasBeenSet() const { return m_userEmailHasBeenSet; }
60 template<typename UserEmailT = Aws::String>
61 void SetUserEmail(UserEmailT&& value) { m_userEmailHasBeenSet = true; m_userEmail = std::forward<UserEmailT>(value); }
62 template<typename UserEmailT = Aws::String>
63 ListUsersRequest& WithUserEmail(UserEmailT&& value) { SetUserEmail(std::forward<UserEmailT>(value)); return *this;}
65
67
70 inline UserType GetUserType() const { return m_userType; }
71 inline bool UserTypeHasBeenSet() const { return m_userTypeHasBeenSet; }
72 inline void SetUserType(UserType value) { m_userTypeHasBeenSet = true; m_userType = value; }
73 inline ListUsersRequest& WithUserType(UserType value) { SetUserType(value); return *this;}
75
77
81 inline int GetMaxResults() const { return m_maxResults; }
82 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
83 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
84 inline ListUsersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
86
88
91 inline const Aws::String& GetNextToken() const { return m_nextToken; }
92 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
93 template<typename NextTokenT = Aws::String>
94 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
95 template<typename NextTokenT = Aws::String>
96 ListUsersRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
98 private:
99
100 Aws::String m_accountId;
101 bool m_accountIdHasBeenSet = false;
102
103 Aws::String m_userEmail;
104 bool m_userEmailHasBeenSet = false;
105
106 UserType m_userType{UserType::NOT_SET};
107 bool m_userTypeHasBeenSet = false;
108
109 int m_maxResults{0};
110 bool m_maxResultsHasBeenSet = false;
111
112 Aws::String m_nextToken;
113 bool m_nextTokenHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace Chime
118} // namespace Aws
ListUsersRequest & WithAccountId(AccountIdT &&value)
void SetAccountId(AccountIdT &&value)
ListUsersRequest & WithNextToken(NextTokenT &&value)
const Aws::String & GetUserEmail() const
ListUsersRequest & WithUserEmail(UserEmailT &&value)
virtual const char * GetServiceRequestName() const override
ListUsersRequest & WithUserType(UserType value)
AWS_CHIME_API Aws::String SerializePayload() const override
AWS_CHIME_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
const Aws::String & GetAccountId() const
AWS_CHIME_API ListUsersRequest()=default
const Aws::String & GetNextToken() const
ListUsersRequest & WithMaxResults(int value)
void SetUserEmail(UserEmailT &&value)
void SetNextToken(NextTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String