/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace MQ { namespace Model { class DescribeUserResult { public: AWS_MQ_API DescribeUserResult(); AWS_MQ_API DescribeUserResult(const Aws::AmazonWebServiceResult& result); AWS_MQ_API DescribeUserResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Required. The unique ID that Amazon MQ generates for the broker.

*/ inline const Aws::String& GetBrokerId() const{ return m_brokerId; } /** *

Required. The unique ID that Amazon MQ generates for the broker.

*/ inline void SetBrokerId(const Aws::String& value) { m_brokerId = value; } /** *

Required. The unique ID that Amazon MQ generates for the broker.

*/ inline void SetBrokerId(Aws::String&& value) { m_brokerId = std::move(value); } /** *

Required. The unique ID that Amazon MQ generates for the broker.

*/ inline void SetBrokerId(const char* value) { m_brokerId.assign(value); } /** *

Required. The unique ID that Amazon MQ generates for the broker.

*/ inline DescribeUserResult& WithBrokerId(const Aws::String& value) { SetBrokerId(value); return *this;} /** *

Required. The unique ID that Amazon MQ generates for the broker.

*/ inline DescribeUserResult& WithBrokerId(Aws::String&& value) { SetBrokerId(std::move(value)); return *this;} /** *

Required. The unique ID that Amazon MQ generates for the broker.

*/ inline DescribeUserResult& WithBrokerId(const char* value) { SetBrokerId(value); return *this;} /** *

Enables access to the the ActiveMQ Web Console for the ActiveMQ user.

*/ inline bool GetConsoleAccess() const{ return m_consoleAccess; } /** *

Enables access to the the ActiveMQ Web Console for the ActiveMQ user.

*/ inline void SetConsoleAccess(bool value) { m_consoleAccess = value; } /** *

Enables access to the the ActiveMQ Web Console for the ActiveMQ user.

*/ inline DescribeUserResult& WithConsoleAccess(bool value) { SetConsoleAccess(value); return *this;} /** *

The list of groups (20 maximum) to which the ActiveMQ user belongs. This * value can contain only alphanumeric characters, dashes, periods, underscores, * and tildes (- . _ ~). This value must be 2-100 characters long.

*/ inline const Aws::Vector& GetGroups() const{ return m_groups; } /** *

The list of groups (20 maximum) to which the ActiveMQ user belongs. This * value can contain only alphanumeric characters, dashes, periods, underscores, * and tildes (- . _ ~). This value must be 2-100 characters long.

*/ inline void SetGroups(const Aws::Vector& value) { m_groups = value; } /** *

The list of groups (20 maximum) to which the ActiveMQ user belongs. This * value can contain only alphanumeric characters, dashes, periods, underscores, * and tildes (- . _ ~). This value must be 2-100 characters long.

*/ inline void SetGroups(Aws::Vector&& value) { m_groups = std::move(value); } /** *

The list of groups (20 maximum) to which the ActiveMQ user belongs. This * value can contain only alphanumeric characters, dashes, periods, underscores, * and tildes (- . _ ~). This value must be 2-100 characters long.

*/ inline DescribeUserResult& WithGroups(const Aws::Vector& value) { SetGroups(value); return *this;} /** *

The list of groups (20 maximum) to which the ActiveMQ user belongs. This * value can contain only alphanumeric characters, dashes, periods, underscores, * and tildes (- . _ ~). This value must be 2-100 characters long.

*/ inline DescribeUserResult& WithGroups(Aws::Vector&& value) { SetGroups(std::move(value)); return *this;} /** *

The list of groups (20 maximum) to which the ActiveMQ user belongs. This * value can contain only alphanumeric characters, dashes, periods, underscores, * and tildes (- . _ ~). This value must be 2-100 characters long.

*/ inline DescribeUserResult& AddGroups(const Aws::String& value) { m_groups.push_back(value); return *this; } /** *

The list of groups (20 maximum) to which the ActiveMQ user belongs. This * value can contain only alphanumeric characters, dashes, periods, underscores, * and tildes (- . _ ~). This value must be 2-100 characters long.

*/ inline DescribeUserResult& AddGroups(Aws::String&& value) { m_groups.push_back(std::move(value)); return *this; } /** *

The list of groups (20 maximum) to which the ActiveMQ user belongs. This * value can contain only alphanumeric characters, dashes, periods, underscores, * and tildes (- . _ ~). This value must be 2-100 characters long.

*/ inline DescribeUserResult& AddGroups(const char* value) { m_groups.push_back(value); return *this; } /** *

The status of the changes pending for the ActiveMQ user.

*/ inline const UserPendingChanges& GetPending() const{ return m_pending; } /** *

The status of the changes pending for the ActiveMQ user.

*/ inline void SetPending(const UserPendingChanges& value) { m_pending = value; } /** *

The status of the changes pending for the ActiveMQ user.

*/ inline void SetPending(UserPendingChanges&& value) { m_pending = std::move(value); } /** *

The status of the changes pending for the ActiveMQ user.

*/ inline DescribeUserResult& WithPending(const UserPendingChanges& value) { SetPending(value); return *this;} /** *

The status of the changes pending for the ActiveMQ user.

*/ inline DescribeUserResult& WithPending(UserPendingChanges&& value) { SetPending(std::move(value)); return *this;} /** *

Required. The username of the ActiveMQ user. This value can contain only * alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). * This value must be 2-100 characters long.

*/ inline const Aws::String& GetUsername() const{ return m_username; } /** *

Required. The username of the ActiveMQ user. This value can contain only * alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). * This value must be 2-100 characters long.

*/ inline void SetUsername(const Aws::String& value) { m_username = value; } /** *

Required. The username of the ActiveMQ user. This value can contain only * alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). * This value must be 2-100 characters long.

*/ inline void SetUsername(Aws::String&& value) { m_username = std::move(value); } /** *

Required. The username of the ActiveMQ user. This value can contain only * alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). * This value must be 2-100 characters long.

*/ inline void SetUsername(const char* value) { m_username.assign(value); } /** *

Required. The username of the ActiveMQ user. This value can contain only * alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). * This value must be 2-100 characters long.

*/ inline DescribeUserResult& WithUsername(const Aws::String& value) { SetUsername(value); return *this;} /** *

Required. The username of the ActiveMQ user. This value can contain only * alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). * This value must be 2-100 characters long.

*/ inline DescribeUserResult& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;} /** *

Required. The username of the ActiveMQ user. This value can contain only * alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). * This value must be 2-100 characters long.

*/ inline DescribeUserResult& WithUsername(const char* value) { SetUsername(value); return *this;} /** *

Describes whether the user is intended for data replication

*/ inline bool GetReplicationUser() const{ return m_replicationUser; } /** *

Describes whether the user is intended for data replication

*/ inline void SetReplicationUser(bool value) { m_replicationUser = value; } /** *

Describes whether the user is intended for data replication

*/ inline DescribeUserResult& WithReplicationUser(bool value) { SetReplicationUser(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeUserResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeUserResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeUserResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_brokerId; bool m_consoleAccess; Aws::Vector m_groups; UserPendingChanges m_pending; Aws::String m_username; bool m_replicationUser; Aws::String m_requestId; }; } // namespace Model } // namespace MQ } // namespace Aws