/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace MQ { namespace Model { /** *

Returns a list of all broker users. Does not apply to RabbitMQ * brokers.

See Also:

AWS API * Reference

*/ class UserSummary { public: AWS_MQ_API UserSummary(); AWS_MQ_API UserSummary(Aws::Utils::Json::JsonView jsonValue); AWS_MQ_API UserSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MQ_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The type of change pending for the broker user.

*/ inline const ChangeType& GetPendingChange() const{ return m_pendingChange; } /** *

The type of change pending for the broker user.

*/ inline bool PendingChangeHasBeenSet() const { return m_pendingChangeHasBeenSet; } /** *

The type of change pending for the broker user.

*/ inline void SetPendingChange(const ChangeType& value) { m_pendingChangeHasBeenSet = true; m_pendingChange = value; } /** *

The type of change pending for the broker user.

*/ inline void SetPendingChange(ChangeType&& value) { m_pendingChangeHasBeenSet = true; m_pendingChange = std::move(value); } /** *

The type of change pending for the broker user.

*/ inline UserSummary& WithPendingChange(const ChangeType& value) { SetPendingChange(value); return *this;} /** *

The type of change pending for the broker user.

*/ inline UserSummary& WithPendingChange(ChangeType&& value) { SetPendingChange(std::move(value)); return *this;} /** *

Required. The username of the broker 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 broker user. This value can contain only * alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). * This value must be 2-100 characters long.

*/ inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; } /** *

Required. The username of the broker 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_usernameHasBeenSet = true; m_username = value; } /** *

Required. The username of the broker 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_usernameHasBeenSet = true; m_username = std::move(value); } /** *

Required. The username of the broker 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_usernameHasBeenSet = true; m_username.assign(value); } /** *

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

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

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

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

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

*/ inline UserSummary& WithUsername(const char* value) { SetUsername(value); return *this;} private: ChangeType m_pendingChange; bool m_pendingChangeHasBeenSet = false; Aws::String m_username; bool m_usernameHasBeenSet = false; }; } // namespace Model } // namespace MQ } // namespace Aws