AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DescribeUserResult.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/UserPendingChanges.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 DescribeUserResult() = 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 DescribeUserResult& WithBrokerId(BrokerIdT&& value) {
44 SetBrokerId(std::forward<BrokerIdT>(value));
45 return *this;
46 }
48
50
53 inline bool GetConsoleAccess() const { return m_consoleAccess; }
54 inline void SetConsoleAccess(bool value) {
55 m_consoleAccessHasBeenSet = true;
56 m_consoleAccess = value;
57 }
59 SetConsoleAccess(value);
60 return *this;
61 }
63
65
70 inline const Aws::Vector<Aws::String>& GetGroups() const { return m_groups; }
71 template <typename GroupsT = Aws::Vector<Aws::String>>
72 void SetGroups(GroupsT&& value) {
73 m_groupsHasBeenSet = true;
74 m_groups = std::forward<GroupsT>(value);
75 }
76 template <typename GroupsT = Aws::Vector<Aws::String>>
77 DescribeUserResult& WithGroups(GroupsT&& value) {
78 SetGroups(std::forward<GroupsT>(value));
79 return *this;
80 }
81 template <typename GroupsT = Aws::String>
82 DescribeUserResult& AddGroups(GroupsT&& value) {
83 m_groupsHasBeenSet = true;
84 m_groups.emplace_back(std::forward<GroupsT>(value));
85 return *this;
86 }
88
90
93 inline const UserPendingChanges& GetPending() const { return m_pending; }
94 template <typename PendingT = UserPendingChanges>
95 void SetPending(PendingT&& value) {
96 m_pendingHasBeenSet = true;
97 m_pending = std::forward<PendingT>(value);
98 }
99 template <typename PendingT = UserPendingChanges>
100 DescribeUserResult& WithPending(PendingT&& value) {
101 SetPending(std::forward<PendingT>(value));
102 return *this;
103 }
105
107
112 inline const Aws::String& GetUsername() const { return m_username; }
113 template <typename UsernameT = Aws::String>
114 void SetUsername(UsernameT&& value) {
115 m_usernameHasBeenSet = true;
116 m_username = std::forward<UsernameT>(value);
117 }
118 template <typename UsernameT = Aws::String>
119 DescribeUserResult& WithUsername(UsernameT&& value) {
120 SetUsername(std::forward<UsernameT>(value));
121 return *this;
122 }
124
126
129 inline bool GetReplicationUser() const { return m_replicationUser; }
130 inline void SetReplicationUser(bool value) {
131 m_replicationUserHasBeenSet = true;
132 m_replicationUser = value;
133 }
135 SetReplicationUser(value);
136 return *this;
137 }
139
141
142 inline const Aws::String& GetRequestId() const { return m_requestId; }
143 template <typename RequestIdT = Aws::String>
144 void SetRequestId(RequestIdT&& value) {
145 m_requestIdHasBeenSet = true;
146 m_requestId = std::forward<RequestIdT>(value);
147 }
148 template <typename RequestIdT = Aws::String>
149 DescribeUserResult& WithRequestId(RequestIdT&& value) {
150 SetRequestId(std::forward<RequestIdT>(value));
151 return *this;
152 }
154 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
155
156 private:
157 Aws::String m_brokerId;
158
159 bool m_consoleAccess{false};
160
162
163 UserPendingChanges m_pending;
164
165 Aws::String m_username;
166
167 bool m_replicationUser{false};
168
169 Aws::String m_requestId;
170 Aws::Http::HttpResponseCode m_HttpResponseCode;
171 bool m_brokerIdHasBeenSet = false;
172 bool m_consoleAccessHasBeenSet = false;
173 bool m_groupsHasBeenSet = false;
174 bool m_pendingHasBeenSet = false;
175 bool m_usernameHasBeenSet = false;
176 bool m_replicationUserHasBeenSet = false;
177 bool m_requestIdHasBeenSet = false;
178};
179
180} // namespace Model
181} // namespace MQ
182} // namespace Aws
const Aws::Vector< Aws::String > & GetGroups() const
AWS_MQ_API DescribeUserResult()=default
DescribeUserResult & WithPending(PendingT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DescribeUserResult & WithBrokerId(BrokerIdT &&value)
DescribeUserResult & WithReplicationUser(bool value)
const UserPendingChanges & GetPending() const
AWS_MQ_API DescribeUserResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeUserResult & AddGroups(GroupsT &&value)
DescribeUserResult & WithRequestId(RequestIdT &&value)
AWS_MQ_API DescribeUserResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeUserResult & WithUsername(UsernameT &&value)
const Aws::String & GetUsername() const
const Aws::String & GetBrokerId() const
DescribeUserResult & WithConsoleAccess(bool value)
void SetRequestId(RequestIdT &&value)
DescribeUserResult & WithGroups(GroupsT &&value)
const Aws::String & GetRequestId() 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