AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
ListUsersResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/mq/MQ_EXPORTS.h>
11#include <aws/mq/model/UserSummary.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace MQ {
25namespace Model {
27 public:
28 AWS_MQ_API ListUsersResult() = default;
31
33
36 inline const Aws::String& GetBrokerId() const { return m_brokerId; }
37 template <typename BrokerIdT = Aws::String>
38 void SetBrokerId(BrokerIdT&& value) {
39 m_brokerIdHasBeenSet = true;
40 m_brokerId = std::forward<BrokerIdT>(value);
41 }
42 template <typename BrokerIdT = Aws::String>
43 ListUsersResult& WithBrokerId(BrokerIdT&& value) {
44 SetBrokerId(std::forward<BrokerIdT>(value));
45 return *this;
46 }
48
50
54 inline int GetMaxResults() const { return m_maxResults; }
55 inline void SetMaxResults(int value) {
56 m_maxResultsHasBeenSet = true;
57 m_maxResults = value;
58 }
59 inline ListUsersResult& WithMaxResults(int value) {
60 SetMaxResults(value);
61 return *this;
62 }
64
66
70 inline const Aws::String& GetNextToken() const { return m_nextToken; }
71 template <typename NextTokenT = Aws::String>
72 void SetNextToken(NextTokenT&& value) {
73 m_nextTokenHasBeenSet = true;
74 m_nextToken = std::forward<NextTokenT>(value);
75 }
76 template <typename NextTokenT = Aws::String>
77 ListUsersResult& WithNextToken(NextTokenT&& value) {
78 SetNextToken(std::forward<NextTokenT>(value));
79 return *this;
80 }
82
84
88 inline const Aws::Vector<UserSummary>& GetUsers() const { return m_users; }
89 template <typename UsersT = Aws::Vector<UserSummary>>
90 void SetUsers(UsersT&& value) {
91 m_usersHasBeenSet = true;
92 m_users = std::forward<UsersT>(value);
93 }
94 template <typename UsersT = Aws::Vector<UserSummary>>
95 ListUsersResult& WithUsers(UsersT&& value) {
96 SetUsers(std::forward<UsersT>(value));
97 return *this;
98 }
99 template <typename UsersT = UserSummary>
100 ListUsersResult& AddUsers(UsersT&& value) {
101 m_usersHasBeenSet = true;
102 m_users.emplace_back(std::forward<UsersT>(value));
103 return *this;
104 }
106
108
109 inline const Aws::String& GetRequestId() const { return m_requestId; }
110 template <typename RequestIdT = Aws::String>
111 void SetRequestId(RequestIdT&& value) {
112 m_requestIdHasBeenSet = true;
113 m_requestId = std::forward<RequestIdT>(value);
114 }
115 template <typename RequestIdT = Aws::String>
116 ListUsersResult& WithRequestId(RequestIdT&& value) {
117 SetRequestId(std::forward<RequestIdT>(value));
118 return *this;
119 }
121 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
122
123 private:
124 Aws::String m_brokerId;
125
126 int m_maxResults{0};
127
128 Aws::String m_nextToken;
129
131
132 Aws::String m_requestId;
133 Aws::Http::HttpResponseCode m_HttpResponseCode;
134 bool m_brokerIdHasBeenSet = false;
135 bool m_maxResultsHasBeenSet = false;
136 bool m_nextTokenHasBeenSet = false;
137 bool m_usersHasBeenSet = false;
138 bool m_requestIdHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace MQ
143} // namespace Aws
ListUsersResult & WithUsers(UsersT &&value)
ListUsersResult & WithNextToken(NextTokenT &&value)
ListUsersResult & WithBrokerId(BrokerIdT &&value)
void SetRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
ListUsersResult & AddUsers(UsersT &&value)
const Aws::String & GetRequestId() const
AWS_MQ_API ListUsersResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetBrokerId() const
void SetBrokerId(BrokerIdT &&value)
const Aws::Vector< UserSummary > & GetUsers() const
AWS_MQ_API ListUsersResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetNextToken(NextTokenT &&value)
AWS_MQ_API ListUsersResult()=default
ListUsersResult & WithRequestId(RequestIdT &&value)
ListUsersResult & WithMaxResults(int value)
const Aws::String & GetNextToken() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue