AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeUserResult.h
1
6#pragma once
7#include <aws/mq/MQ_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/mq/model/UserPendingChanges.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace MQ
26{
27namespace Model
28{
30 {
31 public:
32 AWS_MQ_API DescribeUserResult();
35
36
38
41 inline const Aws::String& GetBrokerId() const{ return m_brokerId; }
42 inline void SetBrokerId(const Aws::String& value) { m_brokerId = value; }
43 inline void SetBrokerId(Aws::String&& value) { m_brokerId = std::move(value); }
44 inline void SetBrokerId(const char* value) { m_brokerId.assign(value); }
45 inline DescribeUserResult& WithBrokerId(const Aws::String& value) { SetBrokerId(value); return *this;}
46 inline DescribeUserResult& WithBrokerId(Aws::String&& value) { SetBrokerId(std::move(value)); return *this;}
47 inline DescribeUserResult& WithBrokerId(const char* value) { SetBrokerId(value); return *this;}
49
51
54 inline bool GetConsoleAccess() const{ return m_consoleAccess; }
55 inline void SetConsoleAccess(bool value) { m_consoleAccess = value; }
56 inline DescribeUserResult& WithConsoleAccess(bool value) { SetConsoleAccess(value); return *this;}
58
60
65 inline const Aws::Vector<Aws::String>& GetGroups() const{ return m_groups; }
66 inline void SetGroups(const Aws::Vector<Aws::String>& value) { m_groups = value; }
67 inline void SetGroups(Aws::Vector<Aws::String>&& value) { m_groups = std::move(value); }
68 inline DescribeUserResult& WithGroups(const Aws::Vector<Aws::String>& value) { SetGroups(value); return *this;}
69 inline DescribeUserResult& WithGroups(Aws::Vector<Aws::String>&& value) { SetGroups(std::move(value)); return *this;}
70 inline DescribeUserResult& AddGroups(const Aws::String& value) { m_groups.push_back(value); return *this; }
71 inline DescribeUserResult& AddGroups(Aws::String&& value) { m_groups.push_back(std::move(value)); return *this; }
72 inline DescribeUserResult& AddGroups(const char* value) { m_groups.push_back(value); return *this; }
74
76
79 inline const UserPendingChanges& GetPending() const{ return m_pending; }
80 inline void SetPending(const UserPendingChanges& value) { m_pending = value; }
81 inline void SetPending(UserPendingChanges&& value) { m_pending = std::move(value); }
82 inline DescribeUserResult& WithPending(const UserPendingChanges& value) { SetPending(value); return *this;}
83 inline DescribeUserResult& WithPending(UserPendingChanges&& value) { SetPending(std::move(value)); return *this;}
85
87
92 inline const Aws::String& GetUsername() const{ return m_username; }
93 inline void SetUsername(const Aws::String& value) { m_username = value; }
94 inline void SetUsername(Aws::String&& value) { m_username = std::move(value); }
95 inline void SetUsername(const char* value) { m_username.assign(value); }
96 inline DescribeUserResult& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
97 inline DescribeUserResult& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
98 inline DescribeUserResult& WithUsername(const char* value) { SetUsername(value); return *this;}
100
102
105 inline bool GetReplicationUser() const{ return m_replicationUser; }
106 inline void SetReplicationUser(bool value) { m_replicationUser = value; }
107 inline DescribeUserResult& WithReplicationUser(bool value) { SetReplicationUser(value); return *this;}
109
111
112 inline const Aws::String& GetRequestId() const{ return m_requestId; }
113 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
114 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
115 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
116 inline DescribeUserResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
117 inline DescribeUserResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
118 inline DescribeUserResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
120 private:
121
122 Aws::String m_brokerId;
123
124 bool m_consoleAccess;
125
127
128 UserPendingChanges m_pending;
129
130 Aws::String m_username;
131
132 bool m_replicationUser;
133
134 Aws::String m_requestId;
135 };
136
137} // namespace Model
138} // namespace MQ
139} // namespace Aws
const Aws::Vector< Aws::String > & GetGroups() const
DescribeUserResult & WithRequestId(const Aws::String &value)
DescribeUserResult & WithUsername(const Aws::String &value)
DescribeUserResult & WithReplicationUser(bool value)
void SetRequestId(Aws::String &&value)
const UserPendingChanges & GetPending() const
AWS_MQ_API DescribeUserResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeUserResult & WithGroups(Aws::Vector< Aws::String > &&value)
DescribeUserResult & WithRequestId(const char *value)
DescribeUserResult & WithBrokerId(const char *value)
void SetPending(UserPendingChanges &&value)
void SetBrokerId(Aws::String &&value)
DescribeUserResult & WithPending(const UserPendingChanges &value)
void SetBrokerId(const Aws::String &value)
void SetUsername(const Aws::String &value)
DescribeUserResult & WithPending(UserPendingChanges &&value)
AWS_MQ_API DescribeUserResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetGroups(Aws::Vector< Aws::String > &&value)
DescribeUserResult & WithRequestId(Aws::String &&value)
DescribeUserResult & WithBrokerId(const Aws::String &value)
const Aws::String & GetUsername() const
void SetPending(const UserPendingChanges &value)
const Aws::String & GetBrokerId() const
DescribeUserResult & WithConsoleAccess(bool value)
DescribeUserResult & AddGroups(Aws::String &&value)
DescribeUserResult & AddGroups(const Aws::String &value)
DescribeUserResult & WithGroups(const Aws::Vector< Aws::String > &value)
DescribeUserResult & WithUsername(const char *value)
void SetGroups(const Aws::Vector< Aws::String > &value)
DescribeUserResult & WithBrokerId(Aws::String &&value)
DescribeUserResult & AddGroups(const char *value)
void SetRequestId(const Aws::String &value)
const Aws::String & GetRequestId() const
DescribeUserResult & WithUsername(Aws::String &&value)
void SetUsername(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue